:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --white: #ffffff;
  --ink: #24332e;
  --muted: #59675f;
  --line: #dce2da;
  --accent: #2f614f;
  --tint: #edf2eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
a:focus-visible { outline: 3px solid #a36123; outline-offset: 5px; border-radius: 2px; }
p { margin: 0 0 1.1rem; }
h1, h2, h3 { line-height: 1.2; font-weight: 650; }
h1 { margin: 0 0 1.5rem; max-width: 14ch; font-size: clamp(2.5rem, 6vw, 4.35rem); letter-spacing: -.045em; }
h2 { margin: 0 0 1rem; font-size: 1.55rem; letter-spacing: -.025em; }
h3 { margin: 0 0 .85rem; font-size: 1.2rem; letter-spacing: -.015em; }
code { padding: .12rem .3rem; border-radius: 4px; background: var(--tint); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 2; background: var(--white); padding: .65rem 1rem; }
.skip-link:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { max-width: 1120px; min-height: 88px; margin: 0 auto; padding: 1rem 2rem; display: flex; gap: 1.4rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.12rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 31px; height: 34px; border: 1px solid var(--accent); border-radius: 3px 8px 3px 3px; color: var(--accent); font-family: Georgia, serif; font-size: 1.2rem; }
nav { display: flex; gap: 1.65rem; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: .88rem; text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5rem; }
nav a:hover { color: var(--ink); text-decoration: underline; }
.page { width: min(100%, 1120px); margin: 0 auto; padding: 4rem 2rem 5rem; }
.intro { padding: 1.7rem 0 4.5rem; }
.eyebrow { margin: 0 0 1.25rem; color: var(--accent); font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; }
.lede { max-width: 59ch; color: var(--muted); font-size: 1.13rem; line-height: 1.75; }
.button { display: inline-flex; gap: 1.5rem; align-items: center; margin-top: .85rem; padding: .8rem 1.25rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--white); font-weight: 550; font-size: .9rem; text-decoration: none; }
.button:hover { background: #244e3e; }
.section { border-top: 1px solid var(--line); padding-top: 2.25rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.section-heading > span { color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.card-number { color: var(--muted); font-size: .73rem; letter-spacing: .04em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card > p:not(.card-number) { color: var(--muted); font-size: .92rem; }
.text-link { margin-top: auto; font-size: .86rem; font-weight: 600; }
.note { margin-top: 2.5rem; padding: 1.65rem 1.8rem; border-left: 3px solid #7b9e88; border-radius: 0 5px 5px 0; background: var(--tint); }
.note h2 { font-size: 1.08rem; margin-bottom: .65rem; }
.note p { max-width: 80ch; color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.document { max-width: 864px; padding-top: 4.5rem; }
.document h1 { max-width: 16ch; font-size: clamp(2.4rem, 6vw, 3.5rem); }
.document .lede { max-width: 62ch; }
.prose-section { margin-top: 3rem; }
.prose-section h2 { font-size: 1.4rem; }
.prose-section > p { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: .95rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--tint); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td:first-child { white-space: nowrap; }
.next-link { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.next-link > span { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .75rem; }
.next-link a { font-weight: 600; }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.endpoint code { background: transparent; }
.endpoint > span:last-child { margin-left: auto; color: var(--muted); font-size: .8rem; }
.method { padding: .1rem .45rem; border-radius: 3px; background: var(--tint); color: var(--accent); font-size: .75rem; font-weight: 650; letter-spacing: .04em; }
.reading-list { padding-left: 1.3rem; color: var(--muted); }
.reading-list li { padding-left: .3rem; margin-bottom: .7rem; }
.error-page { min-height: 65vh; }
.error-help { margin-top: 2rem; color: var(--muted); font-size: .93rem; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer > div { max-width: 1120px; margin: 0 auto; padding: 1.65rem 2rem 2rem; display: flex; align-items: baseline; gap: 1.5rem; font-size: .78rem; }
.site-footer span { font-weight: 650; }
.site-footer p { margin: 0 auto 0 0; color: var(--muted); }
.visually-hidden { 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: 760px) {
  .header-inner { padding: 1.1rem 1.25rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  nav { gap: 1.3rem; }
  .page { padding: 2.8rem 1.25rem 3.5rem; }
  .intro { padding: 1rem 0 3rem; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 1.4rem; }
  .card > p:not(.card-number) { max-width: 58ch; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 1.35rem; }
  .note { padding: 1.3rem; }
  .site-footer > div { padding: 1.5rem 1.25rem; gap: .5rem 1rem; flex-wrap: wrap; }
  .site-footer p { flex-basis: 100%; order: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
