:root {
  --ink: #17212b;
  --paper: #f6f1e8;
  --panel: #fffaf0;
  --line: #d9cab7;
  --teal: #0b6f72;
  --green: #47724c;
  --blue: #365f8d;
  --plum: #57364f;
  --rust: #a84f2f;
  --gold: #c7952d;
  --muted: #5b6874;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf6ed 0%, #efe2d0 48%, #f7efe5 100%);
  font: 16px/1.56 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #084e52; text-underline-offset: 3px; }
header.hero, header.page {
  padding: 52px clamp(18px, 5vw, 76px) 34px;
  background: linear-gradient(115deg, rgba(11,111,114,.18), rgba(199,149,45,.14), rgba(87,54,79,.12)), #f7efe3;
  border-bottom: 1px solid var(--line);
}
.hero-grid { min-height: 76vh; display: grid; grid-template-columns: minmax(0,1.06fr) minmax(320px,.94fr); gap: 28px; align-items: center; }
h1 { margin: 12px 0 18px; font-size: clamp(40px, 6.4vw, 84px); line-height: .96; letter-spacing: 0; }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: clamp(21px, 2vw, 28px); line-height: 1.15; letter-spacing: 0; }
.lede { max-width: 980px; color: #31404e; font-size: 20px; }
nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px clamp(12px, 4vw, 64px); background: rgba(246,240,230,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
nav a, .button, button.button { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); background: rgba(255,250,240,.92); color: var(--ink); border-radius: 8px; text-decoration: none; font-weight: 800; white-space: nowrap; cursor: pointer; }
.button.primary, button.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.button.good { background: var(--green); color: #fff; border-color: var(--green); }
.button.warn { background: var(--rust); color: #fff; border-color: var(--rust); }
main { padding-bottom: 72px; }
section { padding: 52px clamp(18px, 5vw, 76px); border-bottom: 1px solid rgba(216,201,181,.78); }
.wide { max-width: 1320px; }
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.panel, .mission-card, .task-card { background: rgba(255,250,240,.92); border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: 0 8px 24px rgba(22,32,42,.06); }
.mission-card { display: flex; flex-direction: column; gap: 10px; }
.task-card { border-left: 6px solid var(--teal); }
.tag { display: inline-block; margin-bottom: 10px; color: #fff; background: var(--teal); border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.tag.rust { background: var(--rust); }
.tag.gold { background: var(--gold); color: #20170a; }
.tag.green { background: var(--green); }
.tag.blue { background: var(--blue); }
.tag.plum { background: var(--plum); }
.diagram { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; overflow-x: auto; }
.diagram svg { width: 100%; min-width: 720px; height: auto; display: block; }
.callout { border-left: 6px solid var(--teal); background: rgba(11,111,114,.08); padding: 16px 18px; border-radius: 8px; margin: 20px 0; }
.callout.warn { border-left-color: var(--rust); background: rgba(168,79,47,.1); }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
pre { overflow: auto; white-space: pre-wrap; background: #18222d; color: #f6efe5; padding: 18px; border-radius: 8px; border: 1px solid #2d3c49; line-height: 1.45; }
textarea, input, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fffdf8; color: var(--ink); font: inherit; }
textarea { min-height: 150px; resize: vertical; }
details { background: rgba(255,250,240,.88); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
summary { cursor: pointer; font-weight: 900; }
.checklist label { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; align-items: start; margin: 10px 0; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); margin-top: 3px; }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: rgba(255,250,240,.84); }
th, td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #eadbc7; }
tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-flex; border-radius: 99px; padding: 4px 9px; font-size: 12px; font-weight: 900; background: #eadbc7; }
.status-approved { background: rgba(71,114,76,.15); color: #244b2c; }
.status-revise { background: rgba(199,149,45,.2); color: #5b410c; }
.status-rejected { background: rgba(168,79,47,.16); color: #71311d; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.listing-card { background: #fffdf8; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.score { height: 12px; background: #eadbc7; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.score span { display: block; height: 100%; background: linear-gradient(90deg, var(--rust), var(--gold), var(--green)); }
footer { padding: 32px clamp(18px, 5vw, 76px); background: #16202a; color: #f6efe5; }
footer a { color: #f4c766; }
@media (max-width: 900px) { .hero-grid, .two, .three, .four, .compare { grid-template-columns: 1fr; } section { padding-top: 42px; padding-bottom: 42px; } }
@media print { nav, .progress-row, .button { display: none !important; } body { background: white; } section { page-break-inside: avoid; } }
