:root {
  --ink: #101d2d;
  --paper: #f4f0e8;
  --cream: #fffaf0;
  --gold: #f2cf6d;
  --blue: #b8d7dc;
  --line: rgba(16, 29, 45, 0.19);
  --muted: #5c6670;
  --caught: #d5e9da;
  --partial: #f8e4a8;
  --drift: #efb2a5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.hero { background: var(--ink); color: var(--cream); padding: 0 clamp(1.25rem, 5vw, 5rem) 4.75rem; }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.19); }
.brand { font-size: .78rem; letter-spacing: .2em; font-weight: 800; text-decoration: none; }
.nav-link { font-size: .9rem; text-underline-offset: .3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; padding-top: clamp(4rem, 9vw, 8rem); }
.eyebrow { margin: 0 0 1.2rem; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .17em; }
.eyebrow.dark { color: #7b6321; }
h1 { max-width: 900px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 7vw, 7rem); font-weight: 400; line-height: .92; letter-spacing: -.055em; }
.lede { max-width: 730px; margin: 2rem 0 0; color: #cdd4db; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.55; }
.principle-card { border: 1px solid rgba(255,255,255,.3); padding: 1.7rem; background: rgba(255,255,255,.035); }
.principle-card p { margin: 1.2rem 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; line-height: 1.45; }
.principle-card .small { color: #aeb8c3; font-family: inherit; font-size: .85rem; }
.card-number { color: var(--gold); font-size: .75rem; letter-spacing: .13em; }
.rule { display: block; width: 42px; border-top: 2px solid var(--gold); }

.section { padding: clamp(3.75rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5rem); }
.setup { background: var(--cream); }
.section-heading { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: 2rem; align-items: end; margin-bottom: 2.4rem; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; line-height: 1.03; letter-spacing: -.035em; }
.setup-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .55rem; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.7); color: var(--ink); padding: .82rem .85rem; }
textarea { min-height: 92px; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(242,207,109,.75); outline-offset: 2px; }

.summary-band { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--blue); border-block: 1px solid var(--line); }
.summary-band div { padding: 2rem clamp(1.2rem, 4vw, 4rem); border-right: 1px solid var(--line); }
.summary-band div:last-child { border-right: 0; }
.summary-band strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 400; }
.summary-band span { color: #384754; font-size: .78rem; font-weight: 700; }

.split-heading { grid-template-columns: 1.5fr .6fr; }
.section-note { margin: 0; color: var(--muted); line-height: 1.6; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; min-width: 980px; border-collapse: collapse; table-layout: fixed; }
th { padding: 1rem .7rem; text-align: left; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
th:nth-child(1) { width: 15%; } th:nth-child(2) { width: 18%; } th:nth-child(3), th:nth-child(4) { width: 33.5%; }
td { vertical-align: top; padding: .8rem .7rem; border-bottom: 1px solid var(--line); }
.dimension { font-weight: 780; }
.dimension small { display: block; margin-top: .3rem; color: var(--muted); font-weight: 500; }
tr[data-state="caught"] { background: color-mix(in srgb, var(--caught) 45%, transparent); }
tr[data-state="partial"] { background: color-mix(in srgb, var(--partial) 45%, transparent); }
tr[data-state="drift"] { background: color-mix(in srgb, var(--drift) 38%, transparent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding-top: 1.5rem; }
button { min-height: 44px; border: 1px solid var(--ink); background: transparent; padding: .7rem 1rem; cursor: pointer; }
button:hover { background: var(--cream); }
button.primary { background: var(--ink); color: white; }
button.primary:hover { background: #26384b; }
button.quiet { border-color: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: .22rem; }
#actionStatus { margin-left: auto; color: var(--muted); font-size: .85rem; }

.agenda { background: var(--cream); border-top: 1px solid var(--line); }
.agenda-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.agenda-grid article { min-height: 260px; padding: 1.5rem; border-right: 1px solid var(--line); }
.agenda-grid article:last-child { border-right: 0; }
.agenda-grid span { color: #8d742a; font-size: .75rem; font-weight: 800; }
.agenda-grid h3 { margin: 3rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 400; }
.agenda-grid p, .agenda-grid li { color: var(--muted); line-height: 1.55; }
.agenda-grid ul { padding-left: 1.15rem; }

.context { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 7rem); background: var(--gold); }
.context h2 { margin: 0; max-width: 520px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 400; line-height: .98; }
.context-copy { max-width: 680px; font-size: 1.08rem; line-height: 1.65; }
.cta { display: inline-block; margin-top: 1.2rem; padding-bottom: .25rem; border-bottom: 2px solid var(--ink); font-weight: 800; text-decoration: none; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.25rem, 5vw, 5rem); background: var(--ink); color: #aeb8c3; font-size: .75rem; }

@media (max-width: 800px) {
  .hero-grid, .section-heading, .split-heading, .context { grid-template-columns: 1fr; }
  .setup-grid, .agenda-grid { grid-template-columns: 1fr; }
  .summary-band { grid-template-columns: repeat(2, 1fr); }
  .summary-band div:nth-child(2) { border-right: 0; }
  .agenda-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .agenda-grid article:last-child { border-bottom: 0; }
  #actionStatus { width: 100%; margin: .5rem 0 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
