/* Shared look for the documents we hand to Jasen (the hub, fact check, website fixes, drafts).
   Same drafting-sheet language as the search plan: cool paper, blueprint blue, a title block. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,500..800&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --bg: #F3F5F6;
  --surface: #FFFFFF;
  --fg: #15202A;
  --muted: #55646E;
  --line: #D4DCE1;
  --grid: rgba(29, 95, 176, 0.07);
  --accent: #1D5FB0;
  --accent-soft: #E2EBF7;
  --red: #B23A27;
  --red-soft: #FAE8E4;
  --green: #25774A;
  --green-soft: #E0F1E6;
  --mark: #FFE45C;
  --mark-ink: #3A2F00;
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1418;
    --surface: #151E24;
    --fg: #E3E9ED;
    --muted: #94A3AD;
    --line: #27343D;
    --grid: rgba(120, 169, 234, 0.06);
    --accent: #7AABEB;
    --accent-soft: #1A2A3E;
    --red: #F08B77;
    --red-soft: #3A1F1A;
    --green: #6DCB94;
    --green-soft: #16301F;
    --mark: #F2D43D;
    --mark-ink: #2A2200;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--accent-soft); padding: 0.05em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.hero { background-color: var(--surface); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: 48px 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; align-items: end; }
.crumb { margin: 0 0 14px; font-size: 14px; }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 10px 0 16px; font-family: var(--font-display); font-variation-settings: "wdth" 84; font-weight: 760; font-size: clamp(2.1rem, 5.4vw, 3.3rem); line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
.lede { max-width: 60ch; font-size: 1.125rem; line-height: 1.55; }
.titleblock { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--fg); background: var(--surface); font-family: var(--font-mono); }
.titleblock div { padding: 8px 10px; border-right: 1px solid var(--fg); border-bottom: 1px solid var(--fg); min-width: 0; }
.titleblock div:nth-child(2n) { border-right: 0; }
.titleblock div:nth-last-child(-n+2) { border-bottom: 0; }
.titleblock dt { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.titleblock dd { margin: 2px 0 0; font-size: 14px; }

main section { padding-block: 48px; }
main section + section { border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-family: var(--font-display); font-variation-settings: "wdth" 90; font-weight: 720; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.15; text-wrap: balance; }
h3 { margin: 0 0 6px; font-family: var(--font-display); font-variation-settings: "wdth" 92; font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.intro { margin: 0 0 24px; max-width: 68ch; color: var(--muted); }
.prose > * + * { margin-top: 0.9em; }
.prose { max-width: 70ch; }
.prose ul, .prose ol { margin: 0.6em 0 0; padding-left: 1.25em; }
.prose li + li { margin-top: 0.3em; }

.pill { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.pill-ok { background: var(--green-soft); color: var(--green); }
.pill-need { background: var(--mark); color: var(--mark-ink); }
.pill-warn { background: var(--red-soft); color: var(--red); }
.pill-info { background: var(--accent-soft); color: var(--accent); }

/* Deliverables on the hub */
.deliverables { display: grid; gap: 28px; }
.deliverable { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.deliverable:first-child { border-top: 0; padding-top: 0; }
.deliverable img { border: 1px solid var(--line); border-radius: 6px; }
.deliverable h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.deliverable p { max-width: 62ch; }
.deliverable p + p, .deliverable p + ul { margin-top: 0.6em; }
.deliverable ul { margin: 0.6em 0 0; padding-left: 1.2em; max-width: 62ch; }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.thumbs img:first-child { grid-column: 1 / -1; }
.open { display: inline-block; margin-top: 12px; padding: 9px 16px; background: var(--accent); color: var(--surface); border-radius: 6px; font-weight: 600; text-decoration: none; }
.open:hover { filter: brightness(1.1); }
.open + .open { margin-left: 8px; background: transparent; color: var(--accent); border: 1.5px solid var(--accent); padding: 7.5px 14px; }
.doc-icon { aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: 6px; background-color: var(--surface); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; display: grid; place-items: center; padding: 16px; font-family: var(--font-display); font-variation-settings: "wdth" 84; font-weight: 760; font-size: 1.5rem; line-height: 1.1; text-align: center; color: var(--accent); }

/* Numbers row */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.figures div { padding: 18px 20px; min-width: 0; border-left: 1px solid var(--line); }
.figures div:first-child { border-left: 0; }
.figures b { display: block; font-family: var(--font-display); font-variation-settings: "wdth" 84; font-weight: 760; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures span { font-size: 14px; color: var(--muted); }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--fg); }
td q { font-style: italic; quotes: "\201C" "\201D"; }
.table-scroll table { min-width: 720px; }
.src { font-size: 13.5px; color: var(--muted); }

/* Checklists */
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; max-width: 76ch; }
.checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 15px; height: 15px; margin-top: 4px; border: 1.5px solid var(--fg); border-radius: 2px; }
.checks strong { font-weight: 600; }
ol.numbered { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 12px; max-width: 76ch; }

/* Copy blocks */
.copyblock { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 14px; }
.copyblock header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.copyblock .body { padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.6; }
.copyblock pre.body { margin: 0; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; max-height: 420px; overflow: auto; white-space: pre; overflow-wrap: normal; }
.copybtn { font: inherit; font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 4px 12px; border: 1.5px solid var(--accent); border-radius: 6px; background: transparent; color: var(--accent); cursor: pointer; }
.copybtn:hover { background: var(--accent); color: var(--surface); }
.count { font-variant-numeric: tabular-nums; }
mark, .fill { background: var(--mark); color: var(--mark-ink); padding: 0.05em 0.3em; border-radius: 2px; font-weight: 600; }

.note { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 4px; max-width: 76ch; font-size: 15px; }
.note-warn { border-left-color: var(--red); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; }
.preview-frame { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #0B0F12; margin-top: 14px; }

footer { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer .wrap { padding-block: 28px 48px; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .titleblock { max-width: 360px; }
  .deliverable { grid-template-columns: minmax(0, 1fr); }
  .deliverable > :first-child { max-width: 360px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(odd) { border-left: 0; }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .two { grid-template-columns: minmax(0, 1fr); }
  main section { padding-block: 40px; }
}
