:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #52615c;
  --paper: #f5f5ef;
  --surface: #fffefa;
  --line: #d8ddd5;
  --accent: #b9ec6a;
  --accent-ink: #173321;
  --forest: #245c4d;
  --max: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--forest); }
a:focus-visible { outline: 3px solid #276b52; outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .75rem 1rem; background: var(--accent); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(245,245,239,.96); }
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 700; letter-spacing: -.04em; }
.brand img { width: 34px; height: 34px; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name small { margin-top: .32rem; color: var(--muted); font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; font-weight: 600; text-decoration: none; }
.nav-links .nav-cta { padding: .55rem .9rem; background: var(--ink); color: white; border-radius: 3px; }
.nav-links .nav-cta:hover { background: var(--forest); color: white; }
main { min-height: 62vh; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--forest); font: 700 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: var(--forest); }
.hero { padding: clamp(4rem, 8vw, 7.5rem) 0 5rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 780px; margin: 1.35rem 0 1.4rem; font: 400 clamp(3rem, 6.7vw, 6.6rem)/.98 var(--serif); letter-spacing: -.055em; }
h2 { font: 400 clamp(2.15rem, 4vw, 3.65rem)/1.05 var(--serif); letter-spacing: -.045em; }
h3 { font-size: 1.25rem; }
.lead { max-width: 650px; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.05rem; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: white; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--forest); border-color: var(--forest); color: white; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--surface); }
.system-panel { padding: 1.45rem; border: 1px solid var(--line); background: var(--surface); box-shadow: 10px 10px 0 var(--accent); }
.panel-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.panel-mark { width: .55rem; height: .55rem; border-radius: 50%; background: var(--forest); display: inline-block; margin-right: .4rem; }
.flow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.flow:last-of-type { border-bottom: 0; }
.flow strong { display: block; font-size: 1rem; }
.flow small { display: block; margin-top: .2rem; color: var(--muted); }
.flow-code { color: var(--forest); font: 600 .75rem var(--mono); }
.panel-foot { margin: .4rem 0 0; color: var(--muted); font-size: .78rem; }
.section { padding: clamp(3.75rem, 7vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 2.4rem; }
.section-heading p { max-width: 620px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(0,1.3fr); gap: clamp(2rem, 8vw, 8rem); }
.split-label { color: var(--forest); font: 700 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.feature-list { border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 5rem minmax(160px,.75fr) minmax(0,1.25fr); gap: 1.25rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.feature-row .index { color: var(--forest); font: 600 .8rem var(--mono); }
.feature-row h3 { margin: 0; }
.feature-row p { margin: 0; color: var(--muted); }
.callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--ink); color: white; }
.callout h2 { max-width: 650px; margin-bottom: .6rem; color: white; font-size: clamp(2rem, 3.5vw, 3rem); }
.callout p { max-width: 620px; margin: 0; color: #d0d9d3; }
.callout .button { white-space: nowrap; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.callout .button:hover { background: #d0f89a; }
.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 5.7vw, 5rem); }
.page-hero .lead { max-width: 720px; }
.prose { max-width: 820px; padding: 0 0 5rem; }
.prose h2 { margin-top: 2.5rem; font: 600 1.35rem/1.25 var(--sans); letter-spacing: -.025em; }
.prose h3 { margin-top: 1.8rem; font-size: 1.05rem; }
.prose p, .prose li { color: #394641; }
.prose li + li { margin-top: .45rem; }
.draft-note { margin: 1rem 0 2rem; padding: 1rem 1.15rem; background: #fff1cd; color: #4a3512; border: 1px solid #e7cd91; font-size: .92rem; }
.meta-line { color: var(--muted); font: 600 .75rem var(--mono); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.about-note { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.about-note p { color: var(--muted); }
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: #eeefe8; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 2.2rem 0; }
.footer-brand { color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: .86rem; }
.copyright { width: 100%; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
@media (max-width: 760px) {
  .wrap { width: min(var(--max), calc(100% - 2rem)); }
  .navbar { min-height: auto; padding: 1rem 0; align-items: flex-start; flex-direction: column; gap: .65rem; }
  .nav-links { width: 100%; gap: .5rem 1rem; flex-wrap: wrap; }
  .nav-links a { font-size: .84rem; }
  .nav-links .nav-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .system-panel { max-width: 560px; }
  .split { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-row { grid-template-columns: 2.6rem 1fr; gap: .7rem 1rem; }
  .feature-row p { grid-column: 2; }
  .callout { grid-template-columns: 1fr; }
  .callout .button { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; gap: .5rem; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
