/* fontrights.com — shared public stylesheet. Light theme only.
   Fonts are self-hosted, SIL Open Font License (see /fonts/<family>/OFL.txt). */
@font-face { font-family: "League Gothic"; src: url("/fonts/league-gothic/LeagueGothic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter/Inter-Variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #f3f2ec;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #55544e;
  --line: #dcdad1;
  --green: #00592f;       /* primary: wordmark, buttons, link text (7.6:1 on --bg) */
  --accent: #1e8a5a;      /* emerald: marks, rules, fills, large type only (3.9:1 on --bg) */
  --accent-ink: #00592f;  /* accent for text */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --prose: 680px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 16px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); }

/* Labels and numbers */
.label, .eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; }
.brand .wm { height: 26px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 15.5px; text-decoration: none; color: var(--muted); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav .nav-cta { color: var(--green); font-weight: 600; }

/* Type */
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; line-height: 1; }
h1 { font-size: clamp(52px, 8.4vw, 104px); max-width: 18ch; color: var(--ink); }
h2 { font-size: clamp(36px, 4.6vw, 54px); }
h3 { font-size: 21px; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(19px, 2.1vw, 22px); color: var(--muted); max-width: 40ch; line-height: 1.5; }

/* Sections */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 36px; }
.section-head .label { padding-top: 10px; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 8px; } .section-head .label { padding-top: 0; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 16.5px;
  padding: 13px 22px; border-radius: 3px; text-decoration: none;
  background: var(--green); color: #fff; border: 1px solid var(--green);
}
.btn:hover { background: #00401f; border-color: #00401f; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); background: transparent; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--green); }
.stat { padding: 20px 20px 22px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 20px; }
.stat:last-child { border-right: 0; }
.stat .num { display: block; font-family: var(--display); font-size: clamp(44px, 5.4vw, 64px); letter-spacing: .01em; line-height: 1; color: var(--green); }
.stat .label { display: block; margin-top: 8px; text-transform: none; letter-spacing: 0; font-size: 13.5px; line-height: 1.45; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.footnote { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 70ch; }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.card h3 { margin-top: 6px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.feature { border-top: 3px solid var(--accent); }
.card h3, .steps h3 { color: var(--ink); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 15px; color: var(--accent-ink); padding-top: 4px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 62ch; margin-bottom: 0; }
.steps p + p { margin-top: .8em; }
@media (max-width: 600px) { .steps > li { grid-template-columns: 1fr; gap: 6px; } }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 1.1em; }
.ticks li { position: relative; padding-left: 22px; margin: 0 0 .55em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--accent); }

/* Table */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
caption { text-align: left; font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
th, td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; border-bottom: 1px solid var(--ink); font-size: 14.5px; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }

/* Evidence specimen (decorative example record) */
.specimen { font-family: var(--mono); font-size: 14px; line-height: 1.75; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 22px 24px; }
.specimen dl { display: grid; grid-template-columns: 150px 1fr; gap: 2px 16px; margin: 0; }
.specimen dt { color: var(--muted); }
.specimen dd { margin: 0; overflow-wrap: anywhere; }
.specimen .tag { display: inline-block; background: var(--ink); color: var(--bg); padding: 0 8px; border-radius: 2px; }
.specimen .tag.hot { background: var(--accent); color: var(--ink); }
@media (max-width: 520px) { .specimen dl { grid-template-columns: 1fr; } .specimen dt { margin-top: 8px; } }

/* Callout */
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 1.6em 0; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 19.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--mono); font-size: 22px; color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; max-width: 66ch; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Articles */
.article-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list a { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 0; text-decoration: none; }
.article-list a:hover h2, .article-list a:hover h3 { color: var(--accent-ink); }
.article-list h2, .article-list h3 { font-size: 24px; margin-bottom: 8px; }
.article-list p { color: var(--muted); margin: 0; }
@media (max-width: 600px) { .article-list a { grid-template-columns: 1fr; gap: 6px; } }

.article-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.article-head h1 { max-width: 22ch; font-size: clamp(34px, 5vw, 54px); }
.article-meta { font-family: var(--sans); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; }
.article-body { padding: 48px 0 72px; }
.article-body h2 { font-size: 27px; margin-top: 1.8em; }
.article-body p, .article-body li { font-size: 18.5px; }
.article-body ul, .article-body ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .45em; }
.article-body .stats { margin: 2em 0; }
.article-end { margin-top: 3em; padding-top: 28px; border-top: 1px solid var(--ink); }

/* CTA band */
.cta-band { background: var(--green); color: #fff; padding: 64px 0; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: #e4efe8; max-width: 52ch; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--green); }
.cta-band .btn:hover { background: var(--bg); border-color: var(--bg); color: var(--green); }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: #8fbfa5; }
.cta-band .btn.ghost:hover { border-color: #fff; color: #fff; }
.cta-band a:not(.btn) { color: var(--bg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: flex-start; }
.site-footer .nav a { font-size: 15px; }
.site-footer small { font-size: 14px; display: block; }
.site-footer .fonts { margin-top: 8px; max-width: 60ch; }
.site-footer .fonts a { color: inherit; }

/* 404 */
.notfound { padding: 120px 0; }
.notfound .num { font-size: 15px; color: var(--accent-ink); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 52px 0; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .nav { gap: 2px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color .15s, background-color .15s, border-color .15s; }
}
