:root {
  color-scheme: light;
  --ink: #272a2d;
  --muted: #666b70;
  --orange: #c45c2a;
  --orange-pale: #fff1e6;
  --paper: #fffdf9;
  --line: #e5ddd2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; line-height: 1.85; }
a { color: #8f3f19; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #202326; outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .6rem 1rem; background: white; z-index: 2; }
.skip-link:focus { top: 1rem; }
.article-header { border-bottom: 1px solid var(--line); background: #fff; }
.article-header__inner, main, .article-footer__inner { width: min(100% - 2rem, 780px); margin-inline: auto; }
.article-header__inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--ink); font-weight: 800; text-decoration: none; }
.article-header nav, .article-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .84rem; }
main { padding: 2rem 0 4rem; }
.breadcrumbs { margin: 0 0 1.8rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: inherit; }
.article-type { margin: 0 0 .4rem; color: var(--orange); font-size: .76rem; font-weight: 850; letter-spacing: .1em; }
h1 { max-width: 22ch; margin: 0; font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.3; letter-spacing: -.025em; }
.article-lead { margin: 1rem 0 2rem; color: #44494d; font-size: 1.08rem; }
.article-takeaway { margin: 1.5rem 0 2rem; padding: 1rem 1.1rem; border-left: 5px solid var(--orange); background: var(--orange-pale); }
.article-takeaway strong { display: block; margin-bottom: .25rem; }
article section { margin: 2.2rem 0; }
h2 { margin: 0 0 .7rem; font-size: 1.4rem; line-height: 1.5; }
h3 { margin: 1.3rem 0 .4rem; font-size: 1.05rem; }
p { margin: .55rem 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .35rem; }
.sample-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.sample-table th, .sample-table td { padding: .65rem .7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.sample-table th { background: #f4eee5; }
.sample-table td.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.formula { overflow-wrap: anywhere; padding: .75rem .9rem; border-radius: .45rem; background: #f3f0ea; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: .9rem; }
.tool-callout { margin: 2.5rem 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: .65rem; background: #fff; }
.tool-callout a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 850; }
.article-footer { padding: 1.2rem 0; border-top: 1px solid var(--line); background: #fff; }
.article-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.article-footer small { color: var(--muted); }
@media (max-width: 540px) {
  .article-header__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: .75rem 0; }
  main { padding-top: 1.4rem; }
  .sample-table { font-size: .82rem; }
  .sample-table th, .sample-table td { padding: .5rem .45rem; }
  .article-footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
