/* Open Newsrooms — shared styles */

/* ---------- Fonts (self-hosted) ---------- */
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-400-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-400-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-500-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-500-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-500-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/newsreader-italic-300-800-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/newsreader-italic-300-800-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/newsreader-italic-300-800-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/newsreader-normal-300-800-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/newsreader-normal-300-800-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/newsreader-normal-300-800-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1a1815;
  --paper: #f5f1e8;
  --red: #b3261e;
  --muted: #6b655a;
  --muted-light: #b8b2a6;
  --rule-light: #d8d3c8;
  --error: #ff8a80;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;
  --gutter: 32px;
  --section-y: 56px;
  --max: 1100px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Anchor targets stop below the sticky header instead of under it. */
html { scroll-padding-top: 104px; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); }
a { color: var(--ink); }
a:hover { color: var(--red); }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, h1, h2, li { text-wrap: pretty; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: var(--max); margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.label { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px; padding: 20px var(--gutter); border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.logo { display: flex; align-items: flex-end; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 51px; height: 51px; margin-bottom: 9px; padding-top: 24px;
  background: var(--red); color: var(--paper);
  font-size: 80px; line-height: .5; font-weight: 700; letter-spacing: -0.06em;
}
.logo-text { font-size: 30px; line-height: 1; letter-spacing: -0.02em; font-weight: 500; }
.logo-text em { font-weight: 400; }
.logo:hover .logo-text { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 24px; font-family: var(--mono); font-size: 16px; }
.site-nav a { text-decoration: none; }
/* Plain nav links mark the current page with an underline rule. The boxed
   button must be excluded: the shorter padding-bottom would shrink it. */
.site-nav a[aria-current="page"]:not(.nav-join) { border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.nav-join { display: inline-block; padding: 12px 24px; border: 1px solid var(--ink); }
.nav-join[aria-current="page"] {
  color: var(--red); border-color: var(--red);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) var(--gutter); border-bottom: 1px solid var(--ink); }
.section--hero { padding-top: 72px; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .label { color: var(--muted-light); }
.section--plain { border-bottom: 0; }

/* Label/heading column + content column */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(44px, 7vw, 104px); line-height: .98; letter-spacing: -0.03em;
  font-weight: 500; font-variation-settings: 'opsz' 72;
}
.statement {
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.025em;
  font-weight: 500; font-variation-settings: 'opsz' 72;
}
.heading { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.vision { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 400; font-style: italic; }
.prose { display: flex; flex-direction: column; gap: 22px; font-size: 21px; line-height: 1.45; }
.lede { font-size: 26px; line-height: 1.35; font-weight: 500; }
.body-text { font-size: 21px; line-height: 1.45; }

/* ---------- Belief cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
}
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.card-title { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.card-body { font-size: 17px; line-height: 1.45; }

/* Home: the three principles, each linking to its section on How it works. */
.card--link { color: var(--ink); text-decoration: none; }
.card--link .icon { margin-bottom: 8px; }
.card--link:hover { color: var(--ink); }
.card--link:hover .card-title, .card--link:hover .card-more { color: var(--red); }
.card-more { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Build list ---------- */
.build-list li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 20px 0; border-top: 1px solid var(--ink);
}
.build-list li:first-child { border-top: 0; padding-top: 0; }
.build-list li:last-child { padding-bottom: 0; }
.build-marker { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.build-num { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.build-text { font-size: 20px; line-height: 1.4; }
.build-text strong { font-weight: 600; }

/* ---------- Icons (32×32, drawn with borders) ---------- */
.icon { position: relative; flex: none; width: 32px; height: 32px; }
.icon i { position: absolute; display: block; }

.icon--safety i:nth-child(1) { left: 0; top: 4px; width: 20px; height: 16px; border: 1.5px solid var(--ink); }
.icon--safety i:nth-child(2) { left: 12px; top: 12px; width: 20px; height: 16px; border: 1.5px solid var(--red); background: var(--paper); }

.icon--identity { display: flex; align-items: center; justify-content: center; }
.icon--identity i:nth-child(1) { position: relative; width: 22px; height: 22px; border: 1.5px solid var(--ink); transform: rotate(45deg); }
.icon--identity i:nth-child(1)::after { content: ""; position: absolute; inset: 6px; background: var(--red); }

.icon--provenance { border: 1.5px solid var(--ink); border-radius: 50%; }
.icon--provenance i { inset: 10px; background: var(--red); border-radius: 50%; }

.icon--portability { border: 1.5px dashed var(--ink); border-radius: 50%; }
.icon--portability i { inset: 11px; border: 1.5px solid var(--red); border-radius: 50%; }

.icon--offline i:nth-child(1) { left: 0; right: 0; top: 15px; height: 1.5px; background: var(--ink); }
.icon--offline i:nth-child(2) { left: 0; top: 6px; width: 1.5px; height: 20px; background: var(--ink); }
.icon--offline i:nth-child(3) { right: 0; top: 6px; width: 1.5px; height: 20px; background: var(--ink); }
.icon--offline i:nth-child(4) { left: 8px; top: 11px; width: 1.5px; height: 10px; background: var(--red); }
.icon--offline i:nth-child(5) { right: 8px; top: 11px; width: 1.5px; height: 10px; background: var(--red); }

.icon--publishing { border: 1.5px solid var(--ink); }
.icon--publishing i { height: 1.5px; left: 8px; right: 8px; background: var(--ink); }
.icon--publishing i:nth-child(1) { top: 10px; }
.icon--publishing i:nth-child(2) { top: 16px; }
.icon--publishing i:nth-child(3) { top: 22px; right: 14px; background: var(--red); }

.icon--keys i:nth-child(1) { left: 8px; top: 0; width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 50%; }
.icon--keys i:nth-child(2) { left: 15px; top: 15px; width: 1.5px; height: 17px; background: var(--ink); }
.icon--keys i:nth-child(3) { left: 15px; top: 26px; width: 8px; height: 1.5px; background: var(--red); }

.icon--workstation { border: 1.5px solid var(--ink); }
.icon--workstation i { inset: 7px; border: 1.5px solid var(--red); }

/* Three linked nodes, one in red: many independent operators, no gatekeeper. */
.icon--network i { z-index: 1; width: 10px; height: 10px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.icon--network i:nth-child(1) { left: 11px; top: 1px; }
.icon--network i:nth-child(2) { left: 1px; top: 21px; }
.icon--network i:nth-child(3) { left: 21px; top: 21px; border-color: var(--red); background: var(--red); }
.icon--network::before, .icon--network::after {
  content: ""; position: absolute; top: 5px; width: 1.5px; height: 22px; background: var(--ink);
}
.icon--network::before { left: 10.25px; transform: rotate(26.6deg); }
.icon--network::after { left: 20.25px; transform: rotate(-26.6deg); }

/* Icons on the "is / is not" panel */
.pillars { display: flex; flex-direction: column; margin-top: auto; border-top: 1px solid var(--ink); }
.pillars li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--rule-light); font-size: 18px;
}
.pillars li:last-child { border-bottom: 0; }

/* ---------- Is / is not panels ---------- */
.panel-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
}
.panel {
  display: flex; flex-direction: column; gap: 24px; padding: 40px 32px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.panel-heading { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.panel-heading em { font-weight: 400; }
.panel-text { font-size: 19px; line-height: 1.45; }
.not-list { display: flex; flex-direction: column; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.01em; font-weight: 500; }
.not-list li { padding: 12px 0; border-bottom: 1px solid var(--rule-light); }
.not-list li:last-child { border-bottom: 0; color: var(--red); }

/* ---------- Call to action ---------- */
.cta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 24px; }
.cta-text { font-size: clamp(28px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.02em; font-weight: 500; font-style: italic; }
.btn {
  display: inline-block; padding: 14px 22px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--paper); background: var(--red); border-color: var(--red); }

/* ---------- Join ---------- */
.join { padding-top: 72px; padding-bottom: 80px; border-bottom: 0; }
.join-callout { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.join-mission { font-size: 21px; line-height: 1.45; max-width: 760px; }
.join-cta { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -0.025em; font-weight: 500; font-style: italic; padding-top: 8px; }
.join-box { display: flex; flex-direction: column; gap: 16px; max-width: 640px; padding-top: 24px; border-top: 1px solid var(--muted); }
.join-intro, .join-thanks { font-size: 19px; line-height: 1.45; }
.join-thanks { font-style: italic; }
.join-note { font-family: var(--mono); font-size: 11px; color: var(--muted-light); }

.signup { position: relative; display: flex; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 14px 16px;
  font-family: var(--mono); font-size: 14px;
  background: transparent; color: var(--paper); border: 1px solid var(--paper); border-radius: 0; outline: none;
}
.signup input[type="email"]:focus { border-color: var(--red); }
.signup .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.signup .btn:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
.signup .btn:disabled { opacity: .7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { font-family: var(--mono); font-size: 13px; color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 20px var(--gutter); border-top: 1px solid var(--ink);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}

/* ---------- Placeholders awaiting copy ---------- */
/* Content not yet decided in docs/content; deliberately visible as unfinished. */
.tbc {
  font-family: var(--mono); font-size: .85em; color: var(--muted);
  border-bottom: 1px dashed var(--muted-light);
}
.section--dark .tbc { color: var(--muted-light); }

/* ---------- Home: hero ---------- */
.hero-lede { max-width: 760px; font-weight: 400; }
.hero-stage { font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--muted); }
.section--quiet { background: rgba(0, 0, 0, .025); }
.section--dark a:not(.btn) { color: var(--paper); }
.section--dark a:not(.btn):hover { color: var(--muted-light); }
.section--dark .hero-stage { color: var(--muted-light); }
.btn--ghost { background: transparent; color: var(--ink); }

/* ---------- Illustrations ---------- */
.figure { display: block; }
.figure img { display: block; width: 100%; height: auto; }

/* ---------- Home: what we're working towards ---------- */
/* Each row pairs a problem (left) with what we aim for instead (right). */
.aims { display: flex; flex-direction: column; }
.aims li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px;
  padding: 28px 0; border-top: 1px solid var(--ink);
}
.aim-problem { font-family: var(--mono); font-size: 14px; line-height: 1.55; color: var(--muted); }
.aim-problem .cite { font-size: 12px; white-space: normal; }
.aim-answer { display: flex; flex-direction: column; gap: 10px; }
.aim-answer p { font-size: 21px; line-height: 1.45; }

/* ---------- Manifesto ---------- */
.manifesto-list { max-width: 820px; }
.manifesto-list .belief-text p { font-size: 21px; line-height: 1.45; }
.hiw-figure { margin: 8px 0; }

/* ---------- Home: the problem ---------- */
.statements { display: flex; flex-direction: column; }
.statement-item {
  padding: 22px 0; border-top: 1px solid var(--ink);
  font-size: 21px; line-height: 1.45;
}
.statement-item:first-child { border-top: 0; padding-top: 0; }
.statement-item:last-child { padding-bottom: 0; }
.statement-item strong { font-weight: 600; }

/* ---------- Home: people and org meta ---------- */
.people { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.people-list { display: flex; flex-direction: column; font-size: 19px; line-height: 1.4; }
.people-list li { padding: 12px 0; border-bottom: 1px solid var(--rule-light); }
.people-list li:last-child { border-bottom: 0; }
.org-meta, .colophon { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.org-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.org-logo { display: inline-flex; }
.org-logo img { display: block; width: auto; height: 34px; }
.org-logo--of img { height: 43px; }

/* Inline source citation, quieter than the sentence it follows. */
.cite { font-family: var(--mono); font-size: .7em; color: var(--muted); white-space: nowrap; }
.cite a { color: var(--muted); }
.cite a:hover { color: var(--red); }
.colophon { font-style: normal; }
.onward { font-family: var(--mono); font-size: 14px; }

/* ---------- Button rows ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.section--dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section--dark .btn:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
/* Destination not yet known: looks like a button, does nothing. */
.btn--tbc {
  background: transparent; color: var(--muted-light);
  border-style: dashed; border-color: var(--muted-light); cursor: not-allowed;
}
.section--dark .btn--tbc { background: transparent; color: var(--muted-light); border-color: var(--muted-light); }
.section--dark .btn--tbc:hover { background: transparent; color: var(--muted-light); border-color: var(--muted-light); }

/* ---------- Principles: beliefs ---------- */
.belief-list { display: flex; flex-direction: column; }
.belief-list li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 24px 0; border-top: 1px solid var(--ink);
}
.belief-list li:first-child { border-top: 0; padding-top: 0; }
.belief-list li:last-child { padding-bottom: 0; }
.belief-num { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 8px; }
.belief-text { display: flex; flex-direction: column; gap: 10px; }
.belief-title { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.belief-text p { font-size: 18px; line-height: 1.5; }
.belief-text code { font-family: var(--mono); font-size: .9em; }

/* ---------- Principles: how we work ---------- */
.work-list { display: flex; flex-direction: column; gap: 16px; font-size: 19px; line-height: 1.45; }
.work-list li { padding-left: 20px; position: relative; }
.work-list li::before { content: "—"; position: absolute; left: 0; color: var(--muted-light); }

/* ---------- Open Call ---------- */
.group-jump {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--mono); font-size: 14px;
}
.og-group .heading { font-size: clamp(28px, 3vw, 40px); }

/* ---------- Forms ---------- */
.signup-block { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.signup-thanks { font-size: 19px; line-height: 1.45; font-style: italic; }
.signup-note { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Light-background variant of the dark-section signup styling. */
.section:not(.section--dark) .signup input[type="email"] {
  color: var(--ink); border-color: var(--ink);
}
.section:not(.section--dark) .signup .btn {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.section:not(.section--dark) .signup .btn:hover {
  background: var(--red); border-color: var(--red);
}

.build-form { display: flex; flex-direction: column; gap: 14px; }
.build-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.build-form .optional { color: var(--muted-light); }
.build-form input, .build-form textarea {
  padding: 12px 14px; font-family: var(--mono); font-size: 14px;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 0; outline: none;
}
.build-form textarea { resize: vertical; }
.build-form input:focus, .build-form textarea:focus { border-color: var(--red); }
.build-form .btn { align-self: flex-start; }
.build-form .btn:disabled { opacity: .7; cursor: wait; }

/* Checkbox rows run across, not stacked like the labelled fields. */
.build-form .check-row {
  flex-direction: row; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.45; cursor: pointer;
}
.build-form .check-row input { flex: none; width: 16px; height: 16px; margin-top: 2px; padding: 0; accent-color: var(--red); }

/* The working group form sits on the dark section: ink on ink is invisible. */
.section--dark .build-form label,
.section--dark .build-form .optional,
.section--dark .signup-note { color: var(--muted-light); }
.section--dark .build-form input,
.section--dark .build-form textarea { color: var(--paper); border-color: var(--paper); }
.section--dark .build-form input:focus,
.section--dark .build-form textarea:focus { border-color: var(--red); }
.section--dark .build-form input::placeholder { color: var(--muted); }

/* ---------- Questionnaire ---------- */
/* Labels come from translations, so capitals are applied here (and follow the page language). */
.label--caps { text-transform: uppercase; }
.q-risk { color: var(--red); }

.q-langs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-family: var(--mono); font-size: 14px; }
.q-langs span[aria-current] { border-bottom: 1.5px solid var(--ink); }
.q-langs button {
  padding: 0; font: inherit; color: var(--ink); background: none; border: 0;
  text-decoration: underline; cursor: pointer;
}
.q-langs button:hover { color: var(--red); }

.q-alert { font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--red); }
.q-hint { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.section--dark .q-hint { color: var(--muted-light); }

/* Dark "how we protect you" panel */
.q-protect .work-list { font-size: 19px; }
.q-stored summary { font-family: var(--mono); font-size: 14px; cursor: pointer; }
.q-stored .q-hint { margin: 10px 0; }
.q-stored pre {
  margin: 0; padding: 12px; white-space: pre-wrap; word-break: break-all;
  font-family: var(--mono); font-size: 11px; line-height: 1.5; border: 1px solid var(--muted);
}
.q-protect a { color: var(--paper); }
.q-protect a:hover { color: var(--red); }

/* Questions */
.q-heading { font-size: clamp(28px, 3vw, 40px); }
.q-fields { display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.q-fields > .q-hint { margin-top: -16px; }
.q { display: flex; flex-direction: column; gap: 8px; }
.q-label { font-size: 20px; line-height: 1.35; font-weight: 500; }
.q-form input[type="text"], .q-form textarea, .q-form select {
  width: 100%; padding: 12px 14px; font-family: var(--mono); font-size: 14px; line-height: 1.5;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 0; outline: none;
}
.q-form textarea { resize: vertical; min-height: 7em; }
.q-form input:focus, .q-form textarea:focus, .q-form select:focus { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

/* Native selects lose their arrow once restyled; draw one (no images: the CSP forbids data: URIs). */
.q-select { position: relative; display: block; }
.q-select select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.q-select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
  pointer-events: none;
}

.q-rank { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.q-rank li {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rule-light); font-size: 18px; line-height: 1.35;
}
.q-rank li:last-child { border-bottom: 0; }

/* "I have more time": a full-width bar that opens the optional sections. */
.q-more > summary {
  display: block; list-style: none; cursor: pointer;
  padding-top: 28px; padding-bottom: 28px; background: rgba(0, 0, 0, .025);
  font-family: var(--mono); font-size: 16px;
}
.q-more > summary::-webkit-details-marker { display: none; }
.q-more > summary .container { display: flex; gap: 14px; align-items: baseline; }
.q-more > summary .container::before { content: "+"; color: var(--red); font-size: 20px; line-height: 1; }
.q-more[open] > summary .container::before { content: "−"; }
.q-more > summary:hover { color: var(--red); }

.q-form .send { align-self: flex-start; margin-top: 8px; font-size: 14px; padding: 16px 28px; }
.q-form .send:disabled { opacity: .7; cursor: wait; }

/* ---------- Resources ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.res-starter { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; }
.res-starter strong, .work-list strong { font-weight: 600; }
.res-start a { color: var(--paper); }
.res-start a:hover { color: var(--red); }

.res-jump { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--mono); font-size: 14px; }
.res-jump a { text-decoration: none; }
.res-jump a span { color: var(--muted); }
.res-jump a:hover span { color: var(--red); }

/* Heading column stays in view while its list scrolls past. */
.res-head { display: flex; flex-direction: column; gap: 12px; align-self: start; position: sticky; top: 124px; }
.res-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.res-intro { font-size: 18px; line-height: 1.45; color: var(--muted); }
.res-groups { display: flex; flex-direction: column; gap: 40px; }
.res-group { display: flex; flex-direction: column; gap: 12px; }
.res-group h4 { margin: 0; font-weight: 400; }
.res-list { border-top: 1px solid var(--ink); }
.res-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px;
  padding: 14px 0; border-bottom: 1px solid var(--rule-light);
}
.res-list li:last-child { border-bottom: 0; }
.res-name { font-size: 21px; line-height: 1.3; font-weight: 600; }
.res-name a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.res-meta { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); text-align: right; padding-top: 5px; }
.res-desc { grid-column: 1 / -1; font-size: 18px; line-height: 1.45; }
.res-tag { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.res-note { font-size: 17px; line-height: 1.5; font-style: italic; }

/* ---------- Footer ---------- */
.footer-line { max-width: 100ch; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.footer-meta a { text-decoration: none; }

/* ---------- Building Blocks ---------- */
.bb-callout { padding: 20px 24px; border-left: 3px solid var(--red); background: rgba(0, 0, 0, .035); font-size: 19px; line-height: 1.45; font-style: italic; }
.bb-group { background: rgba(0, 0, 0, .025); }
.bb-group .heading { font-size: clamp(28px, 3vw, 40px); }
.bb-gap { font-size: 21px; line-height: 1.4; }
.res-jump--sub { gap: 8px 20px; }
.res-legend { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); }
.res-legend strong { font-weight: 600; color: var(--ink); }

/* ---------- How it works ---------- */
.hiw-list { display: flex; flex-direction: column; }
.hiw-list > li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--rule-light);
}
.hiw-list > li:first-child { border-top: 0; padding-top: 0; }
.hiw-list > li:last-child { padding-bottom: 0; }
.hiw-text { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.hiw-text > p { font-size: 19px; line-height: 1.5; }
.hiw-text > .belief-title { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.hiw-text > .hiw-headline { font-size: 21px; line-height: 1.3; font-style: italic; }
.hiw-more { margin-top: 6px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.hiw-more > summary {
  display: flex; gap: 12px; align-items: baseline; padding: 14px 0; list-style: none; cursor: pointer;
  font-family: var(--mono); font-size: 14px;
}
.hiw-more > summary::-webkit-details-marker { display: none; }
.hiw-more > summary::before { content: "+"; color: var(--red); font-size: 18px; line-height: 1; }
.hiw-more[open] > summary::before { content: "−"; }
.hiw-more > summary:hover { color: var(--red); }
.hiw-detail { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 24px; font-size: 18px; line-height: 1.5; }
.hiw-detail strong { font-weight: 600; }
.hiw-detail code { font-family: var(--mono); font-size: .9em; }
.hiw-detail .work-list { font-size: 18px; }
.hiw-detail .work-list li::before { color: var(--muted); }

.status-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 18px; line-height: 1.4; }
.status-table thead th { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); text-align: left; padding: 10px 0; }
.status-table tbody th, .status-table td { padding: 14px 0; border-top: 1px solid var(--rule-light); text-align: left; vertical-align: top; }
.status-table tbody th { width: 42%; padding-right: 24px; font-weight: 600; }
.status-table td { position: relative; padding-left: 20px; }
.status-table td::before {
  content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; border: 1.5px solid var(--muted); border-radius: 50%;
}
.status--running td::before { background: var(--red); border-color: var(--red); }
.status--next td::before { border-color: var(--red); }
.status--external td { color: var(--muted); }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --section-y: 44px; }

  .split, .aims li { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section--hero, .join { padding-top: 52px; }
  .join { padding-bottom: 56px; }

  /* Sticky header stays shallow once the nav wraps onto its own line. */
  html { scroll-padding-top: 124px; }
  .site-header { gap: 10px; padding: 12px var(--gutter); }
  .logo { gap: 10px; }
  .logo-mark { width: 40px; height: 40px; margin-bottom: 7px; padding-top: 19px; font-size: 63px; }
  .logo-text { font-size: 22px; }
  .site-nav { flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
  .nav-join { white-space: nowrap; }
  .nav-join { padding: 8px 14px; }

  .prose { font-size: 19px; gap: 18px; }
  .lede { font-size: 22px; }
  .body-text, .join-mission { font-size: 19px; }
  .card-title { font-size: 22px; }
  .build-list li { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .build-text { font-size: 18px; }
  .panel { padding: 28px 20px; }
  .statement-item { font-size: 19px; }
  .belief-list li { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .belief-title { font-size: 21px; }
  .belief-text p, .work-list, .people-list { font-size: 18px; }
  .footer-meta { justify-content: flex-start; }
  .org-logo img { height: 30px; }
  .org-logo--of img { height: 38px; }
  .org-meta { gap: 20px; }
  .cite { white-space: normal; }
  .q-label { font-size: 18px; }
  .q-protect .work-list { font-size: 18px; }
  .q-rank li { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; font-size: 17px; }
  .res-head { position: static; }
  .hiw-list > li { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .hiw-text > p, .hiw-detail, .hiw-detail .work-list { font-size: 17px; }
  .bb-gap { font-size: 19px; }
  .status-table, .status-table tbody tr, .status-table tbody th, .status-table td { display: block; width: auto; }
  .status-table thead { display: none; }
  .status-table tbody th { padding: 14px 0 4px; }
  .status-table td { border-top: 0; padding-top: 0; }
  .status-table td::before { top: 7px; }
  .res-name { font-size: 19px; }
  .res-desc { font-size: 17px; }
}

@media (max-width: 480px) {
  .site-nav { gap: 13px; font-size: 13px; }

  .signup .btn { flex: 1 1 100%; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .cta .btn { width: 100%; text-align: center; }
  .q-form .send { align-self: stretch; }
}
