/* Fonts are served from this site (SIL Open Font License, fonts/OFL.txt): no third-party requests. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
/* Layout: a calm black page that alternates text sections with pixel art; the Volt band closes it. */
:root {
  --carbon: #000000;
  --graphite: #0E0E0E;
  --line: #222222;
  --dim: #3A3A3A;
  --fog: #A3A3A3;
  --white: #FFFFFF;
  --volt: #D4FF3A;
  --ink: #0A0A0A;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--carbon); color: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--carbon); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
canvas { display: block; width: 100%; height: 100%; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 7px; height: 7px; background: var(--volt); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }
.sub { font-family: var(--mono); font-size: 14px; line-height: 1.75; color: var(--fog); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; background: var(--white); color: var(--carbon); }
.btn:hover { background: #D9D9D9; }
.btn-secondary { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--dim); }
.btn-secondary:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--fog); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
[hidden] { display: none !important; }
section, .post { scroll-margin-top: 84px; }
.nav-links a[aria-current="page"] { color: var(--volt); }

/* News page */
.news-head { padding-top: clamp(56px, 8vw, 104px); }
.news-head .wrap { display: flex; flex-direction: column; gap: 18px; }
.news-head h1 { font-size: clamp(44px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.045em; }
.news-art { height: clamp(90px, 11vw, 140px); margin-top: clamp(32px, 5vw, 56px); }
.posts { padding-block: clamp(48px, 7vw, 88px); }
.post { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 48px; padding-block: 36px; border-top: 1px solid var(--line); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post .meta { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); }
.post .body { display: flex; flex-direction: column; gap: 14px; max-width: 68ch; }
.post h2 { font-size: clamp(24px, 3vw, 32px); }
@media (max-width: 760px) { .post { grid-template-columns: minmax(0, 1fr); } .post .meta { flex-direction: row; flex-wrap: wrap; gap: 12px; } }

/* Header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--carbon); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup svg { width: 22px; height: 22px; flex: none; }
.lockup span { font-size: 21px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.nav-links a:hover { color: var(--fog); }
.nav .btn { min-height: 40px; padding: 0 14px; font-size: 11px; }
@media (max-width: 480px) { .nav { gap: 14px; } .nav-links { gap: 14px; } .nav .btn { padding: 0 10px; } }
@media (max-width: 359px) { .nav-links { display: none; } }

/* Hero */
.hero { padding-top: clamp(96px, 13vw, 176px); text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hero h1 { font-size: clamp(44px, 8vw, 100px); line-height: 0.98; letter-spacing: -0.045em; }
.hero .actions { margin-top: 8px; }
.hero-art { height: clamp(150px, 20vw, 250px); margin-top: clamp(80px, 11vw, 144px); }
/* Powered by Cogitan: a small credit in its own band between the hero art and the next section.
   Same light grey as body text, so it reads as deliberate; brightens to white on hover. */
.powered { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: clamp(56px, 7vw, 80px); }
.powered-label { font-family: var(--mono); font-size: 10px; line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fog); }
.powered-logo { display: block; padding: 0 18px; color: var(--fog); transition: color 0.2s; }
.powered-logo:hover, .powered-logo:focus-visible { color: var(--white); }
.powered-logo svg { display: block; height: 22px; width: auto; } /* about 83px wide, over the brand guide 80px minimum */

section.block { padding-block: clamp(120px, 15vw, 208px); border-top: 1px solid var(--line); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 104px; align-items: end; margin-bottom: clamp(64px, 8vw, 104px); }
.head .label { grid-column: 1 / -1; }
@media (max-width: 860px) { .head { grid-template-columns: minmax(0, 1fr); } }

/* Problem facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 18px; padding: 44px 44px 8px 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 44px; }
.fact .num { font-family: var(--mono); font-size: clamp(36px, 4.4vw, 54px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact cite { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--fog); }
.fact cite a { text-underline-offset: 3px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact + .fact { border-left: 0; padding: 32px 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--graphite); display: flex; flex-direction: column; }
.step .art { aspect-ratio: 16 / 9; max-width: 100%; }
.step .text { padding: 32px 32px 40px; display: flex; flex-direction: column; gap: 12px; }
.step .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fog); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* What you get */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px 120px; }
.list { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.list .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); padding-top: 2px; }
.grades { display: grid; grid-template-columns: 48px minmax(0, 1fr); margin: 16px 0 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
.grades dt, .grades dd { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.grades dd { color: var(--fog); }
.col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } .list li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Engagements */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { border: 1px solid var(--line); padding: 40px 36px 44px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Volt band, the call to action */
.band { background: var(--volt); color: var(--ink); padding-top: clamp(120px, 15vw, 208px); }
.band .wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.band .label { color: var(--ink); }
.band .label::before { background: var(--ink); }
.band h2 { font-size: clamp(40px, 7vw, 88px); }
.band .sub { color: var(--ink); }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.address { font-family: var(--mono); font-size: 15px; padding: 11px 16px; border: 1px solid var(--ink); user-select: all; }
.band .btn { background: var(--ink); color: var(--volt); }
.band .btn:hover { background: #262626; }
.note { font-family: var(--mono); font-size: 12px; min-height: 18px; }
.band-art { height: clamp(110px, 14vw, 170px); margin-top: clamp(88px, 11vw, 144px); }

footer { padding-block: 28px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
footer p { font-family: var(--mono); font-size: 12px; color: var(--fog); }
.card .later { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); box-shadow: inset 0 0 0 1px var(--dim); padding: 2px 8px; }
.card.soon h3, .card.soon .sub { color: var(--fog); }
.address { color: inherit; text-decoration: none; }
.group-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); padding-top: clamp(40px, 6vw, 72px); padding-bottom: 8px; }
.group-title:first-child { padding-top: 0; }
.post .out { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-underline-offset: 4px; align-self: flex-start; }
.post .out:hover { color: var(--volt); }
.empty { padding-block: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post time { color: var(--fog); }
.notfound { padding-block: clamp(96px, 13vw, 176px); }
.notfound .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

/* Article pages (/news/<slug>) */
.post h2 a.post-link { text-decoration: none; }
.post h2 a.post-link:hover { color: var(--volt); }
.article { padding-block: clamp(48px, 7vw, 88px) clamp(96px, 12vw, 160px); }
.article .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.article .back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); text-decoration: none; margin-bottom: clamp(16px, 3vw, 32px); }
.article .back:hover { color: var(--white); }
.article h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; max-width: 20ch; }
.prose { display: flex; flex-direction: column; gap: 20px; max-width: 68ch; margin-top: 8px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose p, .prose li { font-family: var(--mono); font-size: 15px; line-height: 1.8; color: #CFCFCF; }
.prose a { text-underline-offset: 3px; }
.prose a:hover { color: var(--volt); }
.article-cta { max-width: 68ch; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--fog); }
.article-cta a { color: var(--white); text-underline-offset: 3px; }
.article-cta a:hover { color: var(--volt); }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.02em; margin-top: 20px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.prose li::marker { color: var(--volt); }
.prose strong { color: var(--white); font-weight: 500; }
.prose .sources li { font-size: 13px; line-height: 1.7; color: var(--fog); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.prose caption { caption-side: top; text-align: left; padding: 14px 16px; color: var(--fog); font-size: 12px; border-bottom: 1px solid var(--line); }
.prose th, .prose td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.prose th:first-child, .prose td:first-child { text-align: left; }
.prose thead th { color: var(--fog); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td { color: #CFCFCF; }
/* Let the article column shrink to the screen so a wide table scrolls inside its box, not the page. */
.prose { align-self: stretch; min-width: 0; }
.table-wrap { max-width: 100%; }
