/* built from design-system/colors_and_type.css - edit there */
/* Alex Cleanthous design system - tokens, font faces, type roles.
   Dark by default. Black paper, white ink, one signal colour (electric blue, the accent the site has carried since 2024).
   Fonts: Reckless Standard XL (display), Matter (UI/body/shout), Commit Mono (terminal, eyebrows, data).
   Font files live in ../fonts/ (trial files until the Displaay licence is bought; then base64-embed here). */

@font-face { font-family: "Signifier"; src: url(/assets/fonts/Signifier-bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url(/assets/fonts/Matter-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url(/assets/fonts/Matter-Medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url(/assets/fonts/Matter-SemiBold.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Commit Mono"; src: url(/assets/fonts/CommitMono-400-Regular.woff2) format("woff2"), url(/assets/fonts/CommitMono-400-Regular.otf) format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Commit Mono"; src: url(/assets/fonts/CommitMono-700-Regular.woff2) format("woff2"), url(/assets/fonts/CommitMono-700-Regular.otf) format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* brand */
  --brand: #070808;
  --signal: #FFFFFF;
  --signal-ink: #070808;

  /* dark paper (default) */
  --bg-base: #070808;
  --bg-alt: #0F1011;
  --bg-card: #070808;
  --border: #232425;
  --rule: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,.84);
  --text-muted: rgba(255,255,255,.6);

  /* semantic (rare on this site; used in dashboards) */
  --success: #4ADE80; --success-bg: rgba(74,222,128,.12);
  --warning: #FFD166; --warning-bg: rgba(255,209,102,.12);
  --danger: #FF5C5C;  --danger-bg: rgba(255,92,92,.12);

  /* shape */
  --r-0: 0; --r-pill: 50px;
  --space: 8px;
  --shadow: none;
  --shadow-strip: 0 30px 60px -20px rgba(0,0,0,.6);
  --wrap-max: 1360px; --gutter: 48px;

  /* type */
  --font-display: "Signifier", Georgia, "Times New Roman", serif;
  --font-heading: "Signifier", Georgia, serif;
  --font-body: "Matter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Commit Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: 160ms ease;
}

/* light paper: one section per page, or print */
.paper-light, [data-paper="light"] {
  --bg-base: #F5F5F5; --bg-alt: #EAE9E7; --bg-card: #FFFFFF; --border: #E0DEDC; --rule: #070808;
  --text-primary: #070808; --text-secondary: #232425; --text-muted: #64666C;
  background: var(--bg-base); color: var(--text-primary);
}

/* base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-base); color: var(--text-primary); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.wrap { width: 100%; max-width: var(--wrap-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 767px) { :root { --gutter: 20px; } }

/* type roles */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; line-height: 1; }
.display em, .display .it { font-style: normal; font-weight: 700; }
.h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6.6vw, 104px); letter-spacing: -.02em; line-height: 1; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.2vw, 60px); letter-spacing: -.015em; line-height: 1.04; }
.h3 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -.01em; line-height: 1.1; }
.shout { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.display .shout, .h1 .shout { font-size: 1em; }
.question { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.5; }
.question:before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--signal); vertical-align: middle; margin-right: 14px; }
.lede { font-size: 19px; line-height: 1.5; color: var(--text-secondary); }
.eyebrow { font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: 14px; }
.caption { font-size: 14px; color: var(--text-muted); }
.fact { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.015em; font-size: clamp(36px, 3.4vw, 48px); line-height: 1; }
.fact-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }

/* buttons and links */
.btn { font: inherit; font-family: var(--font-body); font-weight: 500; font-size: 15px; padding: 14px 30px; border-radius: var(--r-pill); border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.btn:hover { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); }
.btn-primary { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); }
.btn-primary:hover { background: #D9D9D9; color: #070808; border-color: #D9D9D9; }
.go { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; transition: color var(--ease); }
.go:after { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.go:hover { opacity: .7; }
.u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.u:hover { opacity: .7; }

/* rows (dashed grid) */
.rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px dashed var(--border); }
.row { padding: 24px 22px 28px; border-right: 1px dashed var(--border); border-bottom: 1px dashed var(--border); min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.row:nth-child(4n) { border-right: 0; }
.row .eyebrow { margin-bottom: 14px; }
.row h3 { font-family: var(--font-heading); font-weight: 700; font-size: 28px; margin-bottom: 12px; letter-spacing: -.01em; line-height: 1.1; }
.row p { font-size: 16px; line-height: 1.55; color: var(--text-secondary); margin: 0; flex: 1; }
.row .go { margin-top: 18px; font-size: 14px; }
.row:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 1023px) { .rows { grid-template-columns: 1fr 1fr; } .row:nth-child(2n) { border-right: 0; } }
@media (max-width: 600px) { .rows { grid-template-columns: 1fr; } .row { border-right: 0 !important; padding: 20px 0 24px; } }

/* numbered card */
.card { position: relative; border: 1px solid var(--border); background: var(--bg-card); padding: 28px 26px 30px; display: flex; flex-direction: column; min-width: 0; transition: border-color var(--ease); }
.card:hover { border-color: var(--text-primary); }
.card .num { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); margin-bottom: 44px; }
.card h3 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(28px, 2.4vw, 34px); margin-bottom: 16px; letter-spacing: -.01em; line-height: 1.08; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-secondary); }

/* facts bar */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 32px 0; }
.facts div { min-width: 0; }
.facts dt { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.015em; font-size: clamp(36px, 3.4vw, 48px); line-height: 1; }
.facts dd { margin: 10px 0 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 1023px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 24px 0; } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; gap: 0; padding: 8px 0; } .facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); } .facts div:last-child { border-bottom: 0; } .facts dt { font-size: 30px; white-space: nowrap; } .facts dd { margin: 0; font-size: 11px; text-align: right; } }
