:root {
  color-scheme: dark;
  --ground: #16302b;
  --surface: #1c3a34;
  --line: #2f5a51;
  --ink: #f2e7d5;
  --ink-dim: #b6c8c1;
  --ink-faint: #91aaa2;
  --peach: #e9a88e;
  --teal: #6ea79c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.7 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--peach); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .5rem .8rem; background: var(--ink); color: var(--ground); }
.skip-link:focus { top: .75rem; }
.site-header, .site-footer, .hero-inner, .content-layout { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 20px/1 ui-serif, Georgia, serif; letter-spacing: -.025em; }
.brand img { width: 25px; height: 25px; }
.header-nav, .footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.header-nav a, .footer-nav a { color: var(--ink-dim); text-decoration: none; font-size: 13px; }
.header-nav a:hover, .footer-nav a:hover { color: var(--peach); }
.hero { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 75% 5%, rgba(110,167,156,.12), transparent 52%); }
.hero-inner { padding-top: 76px; padding-bottom: 74px; }
.eyebrow { margin: 0 0 18px; color: var(--peach); font-size: 11px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3 { font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 500; letter-spacing: -.025em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.04; }
.lede { max-width: 67ch; margin: 22px 0 0; color: var(--ink-dim); font-size: 16px; }
.updated { margin: 22px 0 0; color: var(--ink-faint); font-size: 13px; }
.content-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); padding-top: 58px; padding-bottom: 100px; }
.toc { align-self: start; position: sticky; top: 24px; }
.toc p { margin: 0 0 12px; color: var(--ink-faint); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.toc a { display: block; padding: 5px 0; color: var(--ink-dim); font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--peach); }
.prose { max-width: 730px; }
.prose section { padding: 0 0 25px; scroll-margin-top: 28px; }
.prose section + section { border-top: 1px solid var(--line); padding-top: 30px; }
.prose h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; }
.prose h3 { margin: 25px 0 8px; font-size: 1.15rem; }
.prose p, .prose ul { margin: 0 0 15px; color: var(--ink-dim); }
.prose li { padding-left: 4px; margin: 7px 0; }
.prose ul { padding-left: 21px; }
.prose strong { color: var(--ink); font-weight: 600; }
.callout { margin: 25px 0 30px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; margin-bottom: 8px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; min-height: 92px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 13px; }
@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .header-nav { gap: 11px; }
  .hero-inner { padding-top: 56px; padding-bottom: 54px; }
  .content-layout { display: block; padding-top: 40px; padding-bottom: 75px; }
  .toc { position: static; margin-bottom: 34px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .toc a { display: inline-block; margin-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
