/* ============================================================
   True World Map — design tokens
   Monochrome chrome, two accents. The map is the only colour.
   ============================================================ */

:root {
  /* — type — */
  --font-sans: Inter, -apple-system, system-ui, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* — ink — */
  --text:        #333333;
  --text-2:      #666666;
  --text-muted:  #999999;
  --text-ghost:  #aaaaaa;   /* greyed-out headline words */

  /* — ground — */
  --bg:          #ffffff;
  --surface:     #fbfbfb;
  --surface-2:   #f3f4f6;
  --line:        #dcdcdc;
  --line-strong: #bcbcbc;

  /* — the argument: orange = true, grey = distorted — */
  --equal-earth:     #e8833a;
  --equal-earth-sub: #fdf1e7;
  --mercator:        #8e9ba6;
  --mercator-sub:    #eef1f3;

  /* — controls — */
  --btn:      #000000;
  --btn-text: #ffffff;

  /* — shape — */
  --r-sm:   8px;
  --r-md:   20px;
  --r-pill: 100px;

  /* — space (4px base) — */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --maxw: 1180px;
  --shadow-float: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.08);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

/* ---------- type scale ----------
   Tight negative tracking is the signature. Do not remove it. */
h1, h2, h3 { margin: 0 0 var(--s-4); font-weight: 700; }

h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -3px;
}
h2 {
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -1.5px;
}
h3 {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.3;
  letter-spacing: -.6px;
}
p { margin: 0 0 var(--s-4); color: var(--text-2); }

.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 62ch; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ---------- the two headline moves ---------- */

/* 1. grey out the connective tissue so the eye reads the argument */
.ghost { color: var(--text-ghost); }

/* 2. inline pill — the headline IS the hero graphic */
.pill {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .04em .42em .12em;
  border-radius: var(--r-pill);
  letter-spacing: -2px;
  white-space: nowrap;
}
.pill--true { background: var(--equal-earth-sub); color: var(--equal-earth); }
.pill--lie  { background: var(--mercator-sub);   color: var(--mercator); }
.pill svg, .pill .ico { width: .82em; height: .82em; flex: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: clamp(56px, 9vw, 128px); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- surfaces ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
/* Flat by default — hairlines, not shadows. Shadow only floats over the map. */
.float {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-float);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 11px 20px;
  background: var(--btn); color: var(--btn-text);
  border: 1px solid var(--btn); border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; letter-spacing: -.2px;
  cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), opacity .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); opacity: .88; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); }

/* ---------- data display ---------- */
.stat { font-size: clamp(44px, 8vw, 88px); font-weight: 700; letter-spacing: -4px; line-height: 1; }
.stat--true { color: var(--equal-earth); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- map primitives ---------- */
.land        { fill: #e4e6e8; stroke: #fff; stroke-width: .5; }
.land--true  { fill: var(--equal-earth); }
.land--lie   { fill: var(--mercator); }
.graticule   { fill: none; stroke: #e9ebed; stroke-width: .5; }
.sphere      { fill: var(--surface); }

/* ---------- a11y / motion ---------- */
:focus-visible { outline: 2px solid var(--equal-earth); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
