:root {
  --paper: #f6f0e5;
  --sheet: #fffdf8;
  --ink: #172820;
  --muted: #58645d;
  --forest: #194f3d;
  --forest-soft: #dce9df;
  --clay: #9a432e;
  --clay-soft: #f1ddd4;
  --gold: #b8872e;
  --line: #d7cdbd;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 8% 3%, rgba(184,135,46,.08), transparent 22rem), var(--paper);
  font: 17px/1.72 var(--sans);
}
a { color: var(--forest); text-underline-offset: .2em; }
a:hover { color: var(--clay); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: var(--ink); color: #fff; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,253,248,.96); }
.site-header__inner, .site-footer__inner { max-width: 1180px; margin: auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand strong { font: 700 1.75rem/1 var(--serif); letter-spacing: -.04em; }
.brand small { margin-top: .3rem; color: var(--muted); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 1rem; font-size: .86rem; font-weight: 700; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.hero { max-width: 1120px; margin: 0 auto; padding: 3.5rem 2rem 2.5rem; display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 4rem; align-items: end; }
.eyebrow { margin: 0 0 1rem; color: var(--clay); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 17ch; font: 600 clamp(3rem, 6vw, 5.1rem)/.98 var(--serif); letter-spacing: -.05em; text-wrap: balance; }
.hero__lede { margin: 1.5rem 0 0; max-width: 680px; color: #35443d; font: 400 clamp(1.15rem, 2vw, 1.38rem)/1.58 var(--serif); }
.meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; color: var(--muted); font-size: .82rem; }
.hero__note { align-self: center; border-top: 2px solid var(--clay); padding: 1.25rem .3rem; transform: rotate(-1.2deg); }
.hero__note strong { display: block; color: var(--clay); font: 700 1.55rem/1.2 var(--hand); }
.hero__note p { margin: .65rem 0 0; color: var(--muted); font-size: .9rem; }
.switcher { max-width: 1120px; margin: 0 auto 2.5rem; padding: 0 2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.switcher a { border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); padding: .55rem .9rem; min-height: 44px; display: inline-flex; align-items: center; font-size: .84rem; font-weight: 800; text-decoration: none; }
.switcher a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.reading-layout { max-width: 1180px; margin: auto; padding: 1rem 2rem 6rem; display: grid; grid-template-columns: 210px minmax(0, 640px) 220px; gap: 3.5rem; align-items: start; }
.toc { position: sticky; top: 1.5rem; font-size: .82rem; }
.toc p { margin: 0 0 .8rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.toc a { display: block; padding: .35rem 0; line-height: 1.35; text-decoration: none; }
.article { min-width: 0; }
.article > :first-child { margin-top: 0; }
.article p { margin: 0 0 1.35rem; }
.article h2 { margin: 3.5rem 0 1rem; font: 600 clamp(1.75rem, 3vw, 2.35rem)/1.12 var(--serif); letter-spacing: -.025em; }
.article h2::before { content: ""; display: block; width: 3.25rem; border-top: 3px solid var(--clay); margin-bottom: 1rem; }
.article h3 { margin: 2.4rem 0 .8rem; font: 700 1.25rem/1.25 var(--serif); }
.article blockquote { margin: 2rem 0; padding: .25rem 1.25rem; border-left: 4px solid var(--gold); color: #344139; font-family: var(--serif); font-size: 1.12rem; }
.article li { margin-bottom: .6rem; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.article code { font-size: .88em; background: #eee7da; padding: .08em .25em; border-radius: 3px; }
.source-table-wrap { margin: 2rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
caption { padding: 1.2rem; text-align: left; font: 600 1.2rem/1.25 var(--serif); }
th, td { padding: .75rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: #314139; background: #f0eadf; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.rail { position: sticky; top: 1.5rem; }
.rail-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); box-shadow: 8px 8px 0 var(--forest-soft); transform: rotate(.6deg); }
.rail-card strong { color: var(--forest); font: 700 1.18rem/1.2 var(--hand); }
.rail-card p { margin: .65rem 0 0; color: var(--muted); font-size: .87rem; }
.mobile-toc { display: none; max-width: 640px; margin: 0 auto 2rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; }
.mobile-toc summary { min-height: 44px; padding: .8rem 1rem; cursor: pointer; font-weight: 800; }
.mobile-toc nav { padding: 0 1rem 1rem; }
.mobile-toc a { display: block; min-height: 44px; padding: .55rem 0; }
.cost-wrap { max-width: 940px; margin: 0 auto; padding: 0 2rem 6rem; }
.cost-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1rem, 3vw, 2rem); box-shadow: 12px 12px 0 var(--clay-soft); }
.cost-intro { max-width: 720px; margin-bottom: 1.5rem; color: var(--muted); }
.cost-table td:nth-child(2), .cost-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.cost-table strong { font-size: 1.05rem; }
.cost-bar { display: block; width: 100%; min-width: 110px; height: .55rem; border-radius: 999px; background: #e7dfd2; overflow: hidden; }
.cost-bar i { display: block; width: var(--pct); height: 100%; background: var(--forest); }
.source-note { margin: 1.5rem 0 0; padding: 1rem 1.15rem; border-left: 4px solid var(--gold); background: #fbf6eb; color: #3f4a44; font-size: .88rem; }
.unavailable { max-width: 720px; margin: 0 auto 6rem; padding: 2rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; }
.unavailable h2 { font: 600 2rem/1.15 var(--serif); }
.site-footer { border-top: 1px solid var(--line); background: var(--sheet); color: var(--muted); font-size: .82rem; }
.site-footer p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero__note { max-width: 420px; }
  .reading-layout { grid-template-columns: minmax(0, 640px) 190px; justify-content: center; gap: 2.5rem; }
  .toc { display: none; }
  .mobile-toc { display: block; margin-left: 2rem; margin-right: 2rem; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; line-height: 1.68; }
  .site-header__inner, .site-footer__inner { padding: .85rem 1rem; }
  .site-nav a:not(.language-link) { display: none; }
  .hero { padding: 2.6rem 1rem 2rem; }
  h1 { max-width: 18ch; font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero__lede { font-size: 1.12rem; }
  .hero__note { display: none; }
  .switcher { padding: 0 1rem; }
  .reading-layout { display: block; padding: 1rem 1rem 4rem; }
  .rail { position: static; margin-top: 3rem; }
  .mobile-toc { margin: 0 1rem 2rem; }
  .cost-wrap { padding: 0 1rem 4rem; }
  .cost-card { padding: .8rem; box-shadow: 6px 6px 0 var(--clay-soft); }
  .source-table-wrap { border: 0; overflow: visible; background: transparent; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  tr { margin-bottom: .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); overflow: hidden; }
  td { display: grid; grid-template-columns: minmax(7.5rem, 42%) 1fr; gap: .75rem; border-bottom: 1px solid var(--line); }
  td::before { content: attr(data-label); color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  tr td:last-child { border-bottom: 0; }
  caption { display: block; width: 100%; padding: 1rem 0; }
  .cost-bar { min-width: 0; }
}
@media print {
  .site-header, .site-footer, .toc, .mobile-toc, .rail, .switcher { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .reading-layout, .cost-wrap { display: block; max-width: 72ch; padding: 0; margin: 0 auto; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
