/* ColdWatch — a standing census, written as a long read.
   Layout: a single reading column (~68ch) the narrative runs down,
   with the map, charts, depth and trend breaking wider as evidence.
   Type: Newsreader for the prose, IBM Plex Mono for the data.
   A cold dark palette held back to one muted steel-teal, no glow. */
:root {
  --ink: #0a151a;        /* page */
  --ink-2: #0e1d22;      /* raised bands */
  --ink-3: #132a30;      /* cards */
  --paper: #e9f0ef;      /* primary text */
  --muted: #9fb3b6;      /* secondary text */
  --faint: #708a8f;      /* captions / labels */
  --frost: #cfe6e8;
  --ice: #6fb9c4;        /* accent, steel-teal */
  --signal: #3f98a4;     /* accent, deeper */
  --warning: #e08a6f;    /* trend endpoint, sparing */
  --rule: rgba(207, 230, 232, .14);
  --rule-soft: rgba(207, 230, 232, .08);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
a { color: inherit; }
em { font-style: italic; color: var(--frost); }
sup { font-feature-settings: "sups"; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .7rem 1rem; background: var(--paper); color: var(--ink); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:where(a, summary, button):focus-visible {
  outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 2px;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 66px; padding: 0 clamp(1.1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
  background: rgba(7, 19, 28, .9); backdrop-filter: blur(16px);
}
.brand, .footer-brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-weight: 600; letter-spacing: -.01em; text-decoration: none;
}
.brand-mark { position: relative; width: 24px; height: 24px; display: inline-block; flex: 0 0 auto; }
.brand-mark span { position: absolute; left: 11px; top: 1px; width: 2px; height: 22px; background: var(--ice); }
.brand-mark span:nth-child(2) { transform: rotate(60deg); }
.brand-mark span:nth-child(3) { transform: rotate(-60deg); }
.site-header nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); }
.site-header nav a {
  color: #b7cbd0; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .01em; text-decoration: none;
}
.site-header nav a:hover, .site-header nav a:focus { color: var(--ice); }
.status-pill {
  justify-self: end; display: inline-flex; align-items: center; gap: .5rem;
  color: #a9bec3; font-family: var(--mono); font-size: .72rem;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* ---- Shared section rhythm ---- */
main { display: block; }
main > section {
  padding-inline: clamp(1.1rem, 6vw, 7rem);
  padding-block: clamp(2.8rem, 6vw, 5rem);
}
.prose > *, .section-intro, .standfirst, .count-say, .count-next,
.notice, .depth-window, .addr { max-width: 68ch; }
.section-head { margin-bottom: 1.4rem; }
.section-head h2, .prose > h2 {
  margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.08; letter-spacing: -.03em;
}
.section-intro {
  margin: 0 0 2rem; color: var(--muted); font-size: 1.05rem;
}
.prose > h2 { margin-bottom: 1rem; }
.prose > p { margin: 0 0 1.15rem; color: #cdddde; }
.prose > p:last-child { margin-bottom: 0; }

/* ---- Masthead ---- */
.masthead {
  padding-top: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(180deg, #0c1c22, var(--ink));
}
.eyebrow {
  display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0 0 1.5rem;
  color: var(--faint); font-style: italic; font-size: 1rem;
}
.eyebrow span { position: relative; }
.eyebrow span + span::before {
  content: "·"; position: absolute; left: -.7rem; top: 0; color: var(--faint);
}
.masthead h1 {
  margin: 0; max-width: 24ch;
  font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 500;
  line-height: 1.07; letter-spacing: -.015em;
}
.standfirst {
  margin: 1.5rem 0 0; color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.5;
}
.byline {
  display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin: 2.2rem 0 0;
  padding-top: 1.3rem; border-top: 1px solid var(--rule);
  color: var(--faint); font-family: var(--mono); font-size: .74rem;
}
.byline > span { position: relative; }
.byline > span + span::before {
  content: ""; position: absolute; left: -.8rem; top: 50%;
  width: 3px; height: 3px; border-radius: 50%; background: var(--rule); transform: translateY(-50%);
}

/* ---- The count ---- */
.count { padding-block: clamp(3rem, 7vw, 6rem); text-align: center; border-block: 1px solid var(--rule-soft); }
.visually-first { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.count-figure {
  margin: 0; color: var(--paper);
  font-size: clamp(4rem, 12vw, 9rem); font-weight: 500;
  line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.count-figure sup { color: var(--faint); font-family: var(--mono); font-size: .16em; top: -2.2em; left: .1em; }
.count-say { margin: 1.4rem auto 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.4; }
.count-say strong { color: var(--paper); font-weight: 600; }
.count-next { margin: 1.6rem auto 0; color: var(--faint); font-size: .92rem; }

/* ---- Notice ---- */
.notice {
  margin: 0; padding: 1.4rem 1.6rem; border-left: 3px solid var(--ice);
  background: var(--ink-3); border-radius: 0 6px 6px 0;
}
.notice p { margin: 0 0 .8rem; color: #cdddde; font-size: .98rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---- Map ---- */
.map-section { background: var(--ink-2); }
.map-section .section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--faint); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.map-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.map-legend i { width: 10px; height: 10px; border-radius: 2px; }
.legend-low { background: linear-gradient(90deg, #1b6e7c, var(--ice)); }
.legend-none { background: #1a2a33; border: 1px dashed #536a72; }
.map-wrap {
  position: relative; margin-top: .4rem; padding: .4rem;
  border: 1px solid var(--rule); border-radius: 8px; background: rgba(5, 16, 23, .6);
}
.europe-map { display: block; width: min(100%, 980px); height: auto; margin: 0 auto; max-width: 100%; }
.map-source { margin: .2rem 0 0 .4rem; color: var(--faint); font-family: var(--mono); font-size: .6rem; }
.map-callout {
  position: absolute; right: 1.2rem; bottom: 1.4rem; display: flex; gap: .8rem;
  max-width: 320px; padding: 1rem; border: 1px solid rgba(103, 210, 223, .3);
  border-radius: 6px; background: rgba(7, 19, 28, .94); color: #aec2c7; font-size: .8rem;
}
.map-callout p { margin: 0; }
.map-callout strong { color: var(--paper); }
.pulse-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: .35rem; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 5px rgba(103, 210, 223, .12); }

/* ---- Numbers: country + vendor charts ---- */
.numbers .section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.snapshot-stamp {
  display: grid; grid-template-columns: auto 1fr; gap: .05rem .9rem; align-items: center;
  padding: .7rem 1rem; border: 1px solid var(--rule); border-radius: 6px; font-family: var(--mono);
}
.snapshot-stamp span, .snapshot-stamp small { color: var(--faint); font-size: .62rem; text-transform: uppercase; }
.snapshot-stamp strong { grid-row: span 2; color: var(--ice); font-size: 1.05rem; }
.charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.chart-block { min-width: 0; }
.chart-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.3rem; }
.chart-title h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.chart-title span { color: var(--faint); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; text-align: right; }
.bar-chart { display: grid; gap: .9rem; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 150px) minmax(80px, 1fr) 58px; gap: .9rem; align-items: center; font-size: .85rem; }
.bar-row > div { height: 9px; background: #16292f; border-radius: 3px; overflow: hidden; }
.bar-row i { display: block; width: var(--value); height: 100%; background: linear-gradient(90deg, #167c8d, var(--ice)); }
.vendor-chart .bar-row i { background: linear-gradient(90deg, #1c7180, #74bec7); }
.bar-row strong { text-align: right; color: var(--frost); font-family: var(--mono); font-size: .8rem; font-variant-numeric: tabular-nums; }

/* ---- Depth ---- */
.depth { background: var(--ink-2); }
.depth-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.depth-metrics > div { padding: 1.3rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--ink-3); }
.depth-metrics strong { display: block; margin-bottom: .6rem; color: var(--ice); font-family: var(--mono); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1; font-variant-numeric: tabular-nums; }
.depth-metrics span { display: block; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.depth-window { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.4rem 0 0; color: var(--faint); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.depth-window time { color: var(--frost); }

/* ---- Trend ---- */
.trend .section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 1.5rem; }
.trend .section-head span { color: var(--faint); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.trend-grid { display: grid; grid-template-columns: 130px 1fr; gap: 2rem; align-items: center; }
.trend-number strong { display: block; color: var(--ice); font-family: var(--mono); font-size: 3.6rem; line-height: 1; }
.trend-number span { color: var(--faint); font-size: .74rem; }
.trend-plot svg { width: 100%; height: auto; }
.gridline { fill: none; stroke: rgba(189, 234, 240, .12); }
.trend-line { fill: none; stroke: var(--ice); stroke-width: 3; }
.trend-point { fill: var(--warning); stroke: var(--ink-2); stroke-width: 4; }
.trend-plot p { margin: 1rem 0 0; color: var(--faint); font-size: .8rem; max-width: 60ch; }

/* ---- Evidence / sources ---- */
.evidence { background: var(--ink-3); }
.source-strip { border-top: 1px solid var(--rule); }
.source-strip a { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 1rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.source-strip a:hover strong, .source-strip a:focus strong { color: var(--ice); }
.source-strip span { color: var(--faint); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; }
.source-strip strong { font-size: .95rem; }
.source-strip i { font-style: normal; color: var(--ice); }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 560;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ice); font-family: var(--mono); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq-body { padding: 0 0 1.2rem; }
.faq-body p { margin: 0; max-width: 68ch; color: var(--muted); font-size: .96rem; }

/* ---- Request data ---- */
.request { background: var(--ink-2); }
.request-inner { max-width: 760px; }
.request h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -.03em; }
.request > .request-inner > p { color: #cdddde; }
.who { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .1rem; }
.who li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; padding: .7rem 0; border-top: 1px solid var(--rule-soft); }
.who li span { color: var(--ice); font-family: var(--mono); }
.who li p { margin: 0; color: var(--muted); font-size: .95rem; }
.addr { color: var(--faint); font-size: .9rem; }

/* ---- Footer ---- */
footer {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2rem; align-items: start;
  padding: 2.2rem clamp(1.1rem, 6vw, 7rem); border-top: 1px solid var(--rule);
  color: var(--faint); background: #040c11; font-size: .78rem;
}
.footer-brand { color: var(--paper); }
footer p { margin: 0; max-width: 70ch; }
.review-note { color: #b78678; }
footer a { justify-self: end; grid-column: 3; grid-row: 1 / span 2; color: var(--frost); text-decoration: none; white-space: nowrap; }
footer a:hover { color: var(--ice); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .status-pill { grid-column: 2; }
  .charts { grid-template-columns: 1fr; gap: 3rem; }
  .map-callout { position: static; max-width: none; margin-top: .6rem; }
  .trend-grid { grid-template-columns: 1fr; gap: 1rem; }
  footer { grid-template-columns: 1fr; }
  footer a { justify-self: start; grid-column: 1; grid-row: auto; }
}
@media (max-width: 540px) {
  .depth-metrics { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 92px 1fr 50px; gap: .55rem; }
  .count-figure { font-size: 19vw; }
  .site-header { grid-template-columns: 1fr; }
  .status-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
