/* Debunkables site. Brand tokens: brand/social/README.md. Two themes: paper (light) and ink (dark).
   No data-theme on <html> = follow the OS setting; site.js sets data-theme when a visitor picks one. */
:root {
  --ink: #111214;
  --paper: #F3F0E8;
  --yellow: #F5D90A;
  --true: #4CC38A;
  --misleading: #F5A524;
  --false: #FF5C5C;
  --complicated: #8C9CFF;
  --neutral: #C9C5BA;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5E5B54;
  --line: #D6D2C6;
  --mark-ink: var(--ink);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="paper"]) {
    --bg: var(--ink);
    --fg: var(--paper);
    --muted: #8A8880;
    --line: #282826;
    --mark-ink: var(--yellow);
    color-scheme: dark;
  }
}
:root[data-theme="ink"] {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: #8A8880;
  --line: #282826;
  --mark-ink: var(--yellow);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 18px/1.6 'Archivo', sans-serif; }
a { color: inherit; }
a:hover { opacity: 0.75; }
p { margin: 0; }
img, svg { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.display { margin: 0; font-weight: 900; font-stretch: 72%; letter-spacing: -0.01em; }
.h1 { font-size: clamp(56px, 11vw, 160px); line-height: 0.88; }
.h2 { font-size: clamp(40px, 5vw, 64px); line-height: 0.95; }
.h3 { font-size: clamp(32px, 4vw, 48px); line-height: 1; }
.hl { background: var(--yellow); color: var(--ink); padding: 0 0.06em; }
.section { border-top: 1px solid var(--line); padding: 72px 0; }
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split > :first-child { flex: 1 1 240px; }
.split > :last-child { flex: 3 1 520px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.btn { display: inline-block; text-decoration: none; background: var(--yellow); color: var(--ink); padding: 16px 22px; }
.btn.outline { background: none; color: var(--fg); border: 1px solid var(--fg); padding: 15px 22px; }
.btn.small { padding: 10px 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.035em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav a { text-decoration: none; }
.mark .b { fill: var(--yellow); stroke: var(--mark-ink); stroke-width: 24; stroke-linejoin: round; }
.mark .i { fill: var(--mark-ink); stroke: var(--mark-ink); stroke-width: 6; stroke-linejoin: round; }

/* Toggle groups: theme switch and verdict filter */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg.tight { gap: 0; }
.seg.tight button + button { margin-left: -1px; }
.seg button { font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: 0.14em; min-height: 44px; padding: 0 12px; cursor: pointer; background: none; color: var(--fg); border: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
html:not(.js) .js-only { display: none; }

/* Verdict stamps. Always on an ink chip, so they pass contrast on paper too. */
.stamp { --c: var(--neutral); display: inline-block; transform: rotate(-3deg); background: var(--ink); color: var(--c); border: 3px solid var(--c); outline: 1px solid var(--c); outline-offset: 3px; padding: 4px 12px; font-weight: 900; font-stretch: 72%; font-size: 20px; line-height: 1.1; white-space: nowrap; }
.stamp.md { border-width: 4px; outline-width: 2px; outline-offset: 4px; padding: 6px 16px; font-size: 30px; }
.stamp.lg { transform: rotate(-4deg); border-width: 6px; outline-width: 2px; outline-offset: 6px; padding: 8px 24px; font-size: 56px; line-height: 1; }
.stamp.flat { transform: none; outline: none; border-width: 2px; padding: 2px 10px; font-size: 17px; line-height: 1.2; }
.v-true { --c: var(--true); }
.v-misleading { --c: var(--misleading); }
.v-false { --c: var(--false); }
.v-complicated { --c: var(--complicated); }

/* Home */
.hero { padding: 96px 0 80px; }
.hero .lede { max-width: 620px; font-size: 22px; line-height: 1.5; }
.latest { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.latest > * { flex: 1 1 420px; min-width: 0; }
.thumb { display: block; aspect-ratio: 16 / 9; background: var(--ink); box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; text-decoration: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .lines { position: absolute; right: 6%; top: 12%; text-align: right; font-weight: 900; font-stretch: 72%; font-size: clamp(36px, 5.4vw, 76px); line-height: 0.88; color: var(--paper); }
.thumb .lines span { display: block; color: var(--yellow); }
.thumb .stamp { position: absolute; left: 6%; bottom: 14%; transform: rotate(-8deg); background: none; border-width: 4px; outline-width: 2px; outline-offset: 4px; font-size: clamp(28px, 3.6vw, 48px); line-height: 1; }
.cases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.case .no { width: 96px; }
.case .verdict { width: 200px; }
.case .text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.case .claim { font-size: clamp(26px, 3vw, 36px); line-height: 1; }
.case .title { font-size: 16px; }
.verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.verdicts > div { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.steps li { display: flex; gap: 20px; }
.steps li > .mono { padding-top: 4px; }
.steps.ruled li:not(:last-child) { padding-bottom: 24px; border-bottom: 1px solid var(--line); }

/* Case page */
.claim-head { padding-top: 56px; }
.video { margin-top: 48px; aspect-ratio: 16 / 9; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }
.video.poster { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.video.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.video.poster .btn { position: relative; font-size: 14px; }
.video.poster .soon { position: relative; background: var(--ink); color: var(--paper); padding: 12px 16px; font-size: 14px; }
.video .placeholder { height: 100%; border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #8A8880; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers > div { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.numbers .big { font-size: clamp(56px, 6vw, 84px); line-height: 0.9; }
.numbers .what { font-size: 17px; }
.phrases { border-top: 1px solid var(--line); }
.phrase { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.phrase .said { flex: 1 1 260px; font-size: 26px; line-height: 1.1; }
.phrase .label { width: 170px; }
.phrase .why { flex: 2 1 380px; min-width: 0; font-size: 17px; }
.sources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sources li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sources .kind { width: 120px; font-size: 12px; }
.sources a { flex: 1 1 420px; min-width: 0; text-underline-offset: 4px; }
.sources .note { font-size: 12px; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 28px; border: 1px solid var(--line); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 56px; }
.site-footer .wordmark { font-size: 20px; }
