/* AI Intelligence Brief — pastel pillar design system.
   Pillar pairs follow The Guardian's published approach: saturated hue for
   kickers/borders + near-white tint for card washes; warm cream ground per
   Semafor. Typography: Newsreader (editorial serif) + Instrument Sans. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #faf8f1;
  --panel: #fffef9;
  --ink: #211e1a;
  --ink-2: #575249;
  --ink-3: #8f897d;
  --rule: rgba(33,30,26,0.13);
  --rule-strong: #211e1a;

  --p-risk: #98333f;      --t-risk: #faeeec;
  --p-econ: #4d53bd;      --t-econ: #f1f1fb;
  --p-open: #0e7a5f;      --t-open: #e9f4ee;
  --p-health: #bb3b80;    --t-health: #feeef7;
  --p-infra: #b25e09;     --t-infra: #fcf3e3;
  --p-research: #8a7048;  --t-research: #f9f4ea;

  --claret: #98333f;
  --up: #1a6f45;
  --down: #b4373a;
  --shadow: 0 1px 2px rgba(33,30,26,0.04), 0 6px 20px rgba(33,30,26,0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--claret); color: #fff; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--claret); }
a:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(152,51,63,0.5); border-radius: 2px; }

.serif { font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.label { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }

.masthead { padding: 34px 0 0; }
.masthead-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.wordmark { font-family: 'Newsreader', Georgia, serif; font-size: 27px; font-weight: 600; letter-spacing: 0.01em; }
.wordmark .sub {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; background: var(--claret); border-radius: 3px;
  padding: 3px 9px; margin-left: 14px; vertical-align: 3px;
}
.masthead-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px;
  border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
  margin-top: 14px; padding: 9px 0; font-size: 12.5px; color: var(--ink-2);
}

section { padding: 44px 0 0; }
.kicker-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.kicker { display: flex; align-items: baseline; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--kc, var(--claret)); align-self: center; }
.kicker h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kc, var(--ink)); }
.kicker-note { font-size: 12px; color: var(--ink-3); }

.band-lead { background: var(--t-risk); border-bottom: 1px solid var(--rule); padding: 40px 0 44px; margin-top: 30px; }
.lead-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .lead-grid { grid-template-columns: 1fr; gap: 32px; } }
.lead .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lead .eyebrow .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--p-risk); }
.lead h1 {
  margin: 0 0 16px; font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 600; line-height: 1.12;
  letter-spacing: -0.018em; text-wrap: balance;
}
.lead .dek { margin: 0 0 20px; font-family: 'Newsreader', Georgia, serif; font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 58ch; }
.block { border-top: 1px solid rgba(152,51,63,0.18); padding: 12px 0; max-width: 62ch; }
.block .b-label { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--p-risk); margin-right: 10px; }
.block p { display: inline; margin: 0; font-size: 14.5px; color: var(--ink-2); }
.sources { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.sources a, .signal .src a { text-decoration: underline; text-decoration-color: rgba(33,30,26,0.25); text-underline-offset: 2px; }

.rail { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 6px 22px 10px; }
.rail .rail-title { border-bottom: 2px solid var(--rule-strong); padding: 12px 0 8px; margin-bottom: 2px; }
.rail-item { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--rule); padding: 13px 0; }
.rail-item:last-child { border-bottom: none; }
.rail-item .fig { font-family: 'Newsreader', Georgia, serif; font-size: 28px; font-weight: 600; line-height: 1.05; min-width: 104px; max-width: 45%; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fig.d-up { color: var(--up); } .fig.d-down { color: var(--down); }
.rail-item .what { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; min-width: 0; }

.signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.signal {
  border-radius: 12px; box-shadow: var(--shadow);
  border: 1px solid var(--rule); border-top: 4px solid var(--pc, var(--p-econ));
  background: var(--pt, var(--t-econ)); padding: 20px 24px 18px;
}
.signal:nth-child(4n+1) { --pc: var(--p-econ); --pt: var(--t-econ); }
.signal:nth-child(4n+2) { --pc: var(--p-open); --pt: var(--t-open); }
.signal:nth-child(4n+3) { --pc: var(--p-health); --pt: var(--t-health); }
.signal:nth-child(4n+4) { --pc: var(--p-infra); --pt: var(--t-infra); }
.signal .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--pc); }
.signal h3 { margin: 8px 0 10px; font-family: 'Newsreader', Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.22; text-wrap: balance; }
.signal .why { font-size: 13.5px; color: var(--ink-2); }
.signal .src { display: block; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }

.watch { border-top: 2px solid var(--rule-strong); }
.watch-row { display: grid; grid-template-columns: 130px 1.6fr 1fr; gap: 8px 28px; border-bottom: 1px solid var(--rule); padding: 14px 0; align-items: baseline; }
@media (max-width: 880px) { .watch-row { grid-template-columns: 120px 1fr; } .watch-row .w-why { grid-column: 2; text-align: left; } }
.watch-row .w-date { font-size: 11px; font-weight: 700; color: var(--p-open); background: var(--t-open); border-radius: 999px; padding: 3px 10px; text-align: center; justify-self: start; }
.watch-row .w-what { font-size: 14px; }
.watch-row .w-what b { font-family: 'Newsreader', Georgia, serif; font-size: 16.5px; font-weight: 600; }
.watch-row .w-why { font-size: 12px; color: var(--ink-3); text-align: right; }

.wire { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wire:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .wire, .wire:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wire, .wire:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; } }
.wire-col { border-radius: 12px; border: 1px solid var(--rule); border-top: 4px solid var(--pc, var(--p-econ)); background: var(--panel); box-shadow: var(--shadow); padding: 16px 20px 12px; }
.wire-col:nth-child(4n+1) { --pc: var(--p-econ); }
.wire-col:nth-child(4n+2) { --pc: var(--p-infra); }
.wire-col:nth-child(4n+3) { --pc: var(--p-risk); }
.wire-col:nth-child(4n+4) { --pc: var(--p-research); }
.wire-col h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pc); }
.wire-col ul { list-style: none; margin: 0; padding: 0; }
.wire-col li { border-top: 1px solid var(--rule); padding: 9px 0; font-size: 13px; line-height: 1.45; }
.wire-col li:first-child { border-top: none; }
.wire-col li .meta { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.unv { color: var(--claret); font-weight: 700; cursor: help; }

.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.voice { background: var(--t-research); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 18px 20px; position: relative; }
.voice::before { content: "\201C"; position: absolute; top: 6px; right: 16px; font-family: 'Newsreader', Georgia, serif; font-size: 40px; color: var(--p-research); opacity: 0.35; line-height: 1; }
.voice .quote { font-family: 'Newsreader', Georgia, serif; font-size: 16.5px; line-height: 1.4; margin: 0 0 10px; }
.voice .who { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.voice .who a { color: var(--p-research); font-weight: 700; margin-left: 10px; }

.subscribe { display: grid; place-items: center; }
.sub-box {
  background: var(--t-econ); border: 1px solid var(--rule); border-top: 4px solid var(--p-econ);
  border-radius: 12px; box-shadow: var(--shadow); padding: 26px 34px; text-align: center;
  width: min(560px, 100%);
}
.sub-title { font-family: 'Newsreader', Georgia, serif; font-size: 22px; font-weight: 600; }
.sub-note { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 16px; }
.sub-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sub-form input {
  flex: 1 1 240px; max-width: 320px; padding: 10px 14px; font-size: 14px;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--ink);
}
.sub-form input:focus { outline: none; border-color: var(--p-econ); box-shadow: 0 0 0 2px rgba(77,83,189,0.25); }
.sub-form button {
  padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: var(--p-econ); color: #fff; border: none; border-radius: 8px;
}
.sub-form button:hover { background: #3f45a5; }

.fin { text-align: center; padding: 56px 0 8px; }
.fin .check { color: var(--up); font-weight: 700; }
.fin .line1 { font-family: 'Newsreader', Georgia, serif; font-size: 21px; font-weight: 600; margin: 0 0 4px; }
.fin .line2 { font-size: 12px; color: var(--ink-3); }

footer { margin-top: 40px; border-top: 1px solid var(--rule); padding: 16px 0 40px; text-align: center; font-size: 11.5px; color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
  .masthead, .band-lead, section, .fin { animation: settle 0.55s cubic-bezier(0.23, 1, 0.32, 1) both; }
  .band-lead { animation-delay: 0.06s; }
  section:nth-of-type(1) { animation-delay: 0.12s; }
  section:nth-of-type(2) { animation-delay: 0.18s; }
  section:nth-of-type(3) { animation-delay: 0.24s; }
  section:nth-of-type(4) { animation-delay: 0.30s; }
  .fin { animation-delay: 0.36s; }
  @keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Headline links — inherit editorial color, underline on hover only */
.hl { color: inherit; text-decoration: none; }
.hl:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
