:root {
  --paper: #f7f5ef;
  --surface: #ffffff;
  --ink: #15211c;
  --muted: #55635c;
  --line: #dcd8cb;
  --accent: #0c6b4e;
  --accent-ink: #084a36;
  --wash: #e7f0ea;
  --gold: #e3b23c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* header */
.site-header { background: var(--ink); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 0.85rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; text-decoration: none; letter-spacing: 0.01em; }
.brand:hover { color: #fff; }
.brand-mark { width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--gold); box-shadow: 0.45rem 0 0 -0.12rem var(--accent), 0.45rem 0 0 0 #fff; margin-right: 0.45rem; }
.site-nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; font-size: 0.92rem; }
.site-nav a { color: #d7e2dc; text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* page head */
.page-head { padding-block: 2.75rem 1.75rem; max-width: 52rem; margin-inline: auto; }
.home .page-head { padding-top: 3.5rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
.intro { font-size: 1.2rem; color: #2d3a34; margin: 0 0 1rem; }
.byline { font-size: 0.88rem; color: var(--muted); margin: 0; }
.byline a { color: inherit; }
.hero-figure { margin: 0 auto 2.5rem; max-width: 60rem; }
.hero-figure img { border-radius: 14px; border: 1px solid var(--line); width: 100%; }

/* layout */
.layout { display: grid; gap: 2rem; max-width: 52rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.35rem; font-size: 0.95rem; }
.toc-head { font-weight: 700; margin: 0 0 0.4rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { margin: 0.2rem 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* prose */
.prose { min-width: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 2.75rem 0 0.85rem; scroll-margin-top: 1rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.9rem 0 0.5rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.35rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 4px solid var(--gold); color: #2d3a34; font-family: var(--serif); font-size: 1.1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.94rem; background: var(--surface); display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.prose thead th { background: var(--ink); color: #fff; text-align: left; font-family: var(--sans); font-weight: 600; }
.prose th, .prose td { padding: 0.7rem 0.9rem; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 6.5rem; }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.prose tbody th { text-align: left; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.prose figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }
.callout, .key-takeaways { background: var(--wash); border: 1px solid #c9ddd0; border-left: 5px solid var(--accent); border-radius: 10px; padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.key-takeaways { background: var(--surface); border-color: var(--line); border-left-color: var(--gold); }
.callout > :last-child, .key-takeaways > :last-child { margin-bottom: 0; }
.callout > :first-child, .key-takeaways > :first-child { margin-top: 0; }

/* faq */
.faq { margin-top: 3rem; }
.faq-item { border-top: 1px solid var(--line); padding: 1.1rem 0 0.2rem; }
.faq-item h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }

/* cards */
.guides, .related { margin: 3.5rem 0 0; padding-top: 2.25rem; border-top: 2px solid var(--ink); }
.guides h2, .related h2 { margin: 0 0 1.25rem; font-size: 1.6rem; }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.card { display: flex; flex-direction: column; gap: 0.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.25rem; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.card-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.card-text { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* footer */
.site-footer { background: var(--ink); color: #c9d5cf; margin-top: 4.5rem; font-size: 0.93rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); padding-block: 2.75rem 1.5rem; }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: #fff; font-weight: 700; margin: 0 0 0.5rem; }
.footer-head { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #93a59c; margin: 0 0 0.6rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2 10rem; }
.site-footer li { margin: 0.3rem 0; break-inside: avoid; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.disclosure { color: #93a59c; }
.footer-base { border-top: 1px solid #2c3a34; padding-block: 1rem 1.5rem; color: #93a59c; font-size: 0.85rem; }
.footer-base p { margin: 0; }

@media (min-width: 62rem) {
  .layout { max-width: 70rem; grid-template-columns: 15rem minmax(0, 46rem); gap: 3rem; align-items: start; }
  .layout > .prose:only-child { grid-column: 1 / -1; max-width: 52rem; margin-inline: auto; }
  .toc { position: sticky; top: 1.25rem; padding: 1rem 1.1rem; font-size: 0.88rem; }
  .toc ol { columns: 1; }
  .page-head { max-width: 70rem; }
  .page-head > * { max-width: 52rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
@media print { .site-header, .site-footer, .toc, .guides, .related { display: none; } body { background: #fff; } }

/* HTML sitemap */
.sitemap-list { list-style: none; padding-left: 0; }
.sitemap-list li { margin: 0 0 1rem; }
.sitemap-list a { font-weight: 700; }
