:root {
  --cobalt: #1746d1;
  --papaya: #ff8b5c;
  --lemon: #f4e75b;
  --paper: #f7f8f2;
  --carbon: #111318;
  --periwinkle: #c9d1ff;
  --quiet: #606675;
  --line: rgba(17, 19, 24, .18);
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--carbon); background: var(--paper); font-family: var(--body); font-size: 18px; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { text-decoration-style: wavy; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--papaya); outline-offset: 4px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 12px 16px; background: var(--lemon); font-family: var(--mono); }
.skip:focus { top: 16px; }

.site-head { min-height: 116px; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 2px solid var(--carbon); background: var(--cobalt); color: white; }
.wordmark { display: grid; grid-template-columns: 1fr 1.16fr .9fr; align-items: center; gap: 0; padding: 18px 28px; font-family: var(--display); font-size: clamp(1.35rem, 3vw, 3.2rem); font-weight: 800; font-stretch: condensed; line-height: .82; letter-spacing: -.075em; text-decoration: none; text-transform: uppercase; }
.wordmark span:nth-child(2) { color: var(--lemon); transform: translateY(.18em) rotate(-1.5deg); }
.wordmark span:nth-child(3) { text-align: right; }
.site-head nav { display: flex; align-items: stretch; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; }
.site-head nav a { display: grid; place-items: center; max-width: 140px; padding: 16px; border-left: 1px solid rgba(255,255,255,.35); text-align: center; text-decoration: none; }
.site-head nav a:hover { background: white; color: var(--carbon); }
.site-head nav .nav-ad { background: var(--papaya); color: var(--carbon); }

main { overflow: hidden; }
.eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); min-height: 650px; border-bottom: 2px solid var(--carbon); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(54px, 8vw, 120px) clamp(26px, 6vw, 92px); background: var(--periwinkle); }
.hero h1 { max-width: 980px; margin: 0; font-family: var(--display); font-size: clamp(3.5rem, 8vw, 8.4rem); font-weight: 700; line-height: .82; letter-spacing: -.07em; }
.hero h1 em { display: block; color: var(--cobalt); font-family: var(--body); font-size: .68em; font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.hero-dek { max-width: 680px; margin: 40px 0 0; font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.2; }
.subtitle-machine { display: flex; flex-direction: column; justify-content: center; background: var(--lemon); border-left: 2px solid var(--carbon); }
.subtitle-machine > div { padding: 32px; border-bottom: 2px solid var(--carbon); }
.subtitle-machine span { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .08em; }
.subtitle-machine p { margin: 16px 0 0; font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 2.4rem); font-weight: 650; line-height: 1; letter-spacing: -.04em; }
.subtitle-machine > div:nth-child(2) { background: var(--papaya); }
.subtitle-machine > a { margin: 32px; align-self: flex-start; font-family: var(--mono); font-size: .75rem; font-weight: 600; }

.status-band { display: grid; grid-template-columns: .7fr 1.3fr; border-bottom: 2px solid var(--carbon); }
.status-band > div { padding: 28px 36px; border-right: 2px solid var(--carbon); }
.status-band > div p:last-child { margin: 0; }
.status-band ul { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.status-band li { display: grid; align-content: center; padding: 20px; border-right: 1px solid var(--line); font-family: var(--mono); text-transform: uppercase; }
.status-band li:last-child { border-right: 0; }
.status-band li span, .status-band li small { font-size: .62rem; }
.status-band li b { color: var(--cobalt); font-size: .78rem; }
.status-band li[data-state="cached"] b { color: #9c4e00; }

.ad-slot { margin: clamp(28px, 5vw, 72px); padding: clamp(24px, 4vw, 50px); border: 2px dashed var(--carbon); background: repeating-linear-gradient(-45deg, rgba(23,70,209,.06), rgba(23,70,209,.06) 10px, transparent 10px, transparent 20px); }
.ad-slot span { font-family: var(--mono); font-size: .66rem; font-weight: 600; }
.ad-slot p { max-width: 900px; margin: 18px 0; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.ad-slot a { font-family: var(--mono); font-size: .78rem; font-weight: 600; }

.wire { border-top: 2px solid var(--carbon); }
.wire-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding: 44px clamp(24px, 5vw, 72px); background: var(--cobalt); color: white; }
.wire h2, .products h2, .placements h2 { margin: 0; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 5rem); line-height: .9; letter-spacing: -.06em; }
.wire-head > p { margin: 0; font-family: var(--mono); font-size: .72rem; }
.filters { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--carbon); background: var(--paper); }
.filters button { padding: 16px 20px; border: 0; border-right: 1px solid var(--line); background: transparent; font-family: var(--mono); font-size: .68rem; cursor: pointer; }
.filters button span { opacity: .56; }
.filters button.active { background: var(--lemon); box-shadow: inset 0 -4px 0 var(--carbon); }
.filters label { display: flex; align-items: center; flex: 1 1 290px; margin-left: auto; padding-left: 20px; font-family: var(--mono); font-size: .62rem; }
.filters input { min-width: 150px; width: 100%; height: 100%; margin-left: 12px; padding: 14px 18px; border: 0; border-left: 1px solid var(--line); background: white; font-family: var(--mono); font-size: .75rem; }
.story-list { margin: 0; padding: 0; list-style: none; }
.story-card { display: grid; grid-template-columns: 78px minmax(0, 1.5fr) minmax(250px, .5fr); border-bottom: 1px solid var(--carbon); }
.story-card[hidden] { display: none; }
.story-index { padding: 24px 16px; border-right: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; color: var(--quiet); }
.story-card article { padding: 25px clamp(22px, 4vw, 54px) 30px; }
.story-meta, .evidence-line { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-family: var(--mono); font-size: .59rem; text-transform: uppercase; }
.story-meta > * { padding-right: 9px; border-right: 1px solid var(--line); }
.story-meta > *:last-child { border: 0; }
.product { padding: 5px 8px !important; border: 1px solid currentColor !important; font-weight: 600; }
.product-seiche { color: #984014; }
.product-liquilens { color: var(--cobalt); }
.product-liquilens-undertow { color: #5b3c95; }
.product-myquant { color: #00604e; }
.story-card h3 { max-width: 1000px; margin: 20px 0 10px; font-family: var(--display); font-size: clamp(1.65rem, 3vw, 3rem); line-height: .98; letter-spacing: -.045em; }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--cobalt); }
.story-card article > p { max-width: 900px; margin: 0 0 20px; line-height: 1.35; }
.evidence-line span { padding: 5px 8px; background: rgba(23,70,209,.08); }
.story-card aside { padding: 28px; border-left: 1px solid var(--line); background: rgba(201,209,255,.2); font-size: .9rem; }
.story-card aside b { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.story-card aside p { line-height: 1.3; }
.story-card aside a { font-family: var(--mono); font-size: .66rem; font-weight: 600; }
.no-results { padding: 80px; text-align: center; font-family: var(--display); font-size: 2rem; }

.products { padding: clamp(60px, 8vw, 120px) clamp(24px, 5vw, 72px); background: var(--papaya); }
.products > div { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border: 2px solid var(--carbon); }
.products a { min-height: 280px; padding: 28px; border-right: 2px solid var(--carbon); text-decoration: none; }
.products a:last-child { border-right: 0; }
.products a:hover { background: var(--lemon); }
.products span { font-family: var(--mono); font-size: .65rem; }
.products h3 { margin: 70px 0 10px; font-family: var(--display); font-size: 3rem; letter-spacing: -.05em; }
.products p { margin: 0; }

.evidence-network { display: grid; grid-template-columns: 1.1fr .9fr; border-top: 2px solid var(--carbon); background: var(--lemon); }
.evidence-network > div { padding: clamp(42px, 6vw, 84px) clamp(24px, 5vw, 72px); }
.evidence-network h2 { max-width: 760px; margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: .88; letter-spacing: -.06em; }
.evidence-network__route { border-left: 2px solid var(--carbon); background: var(--carbon); color: white; }
.evidence-network__route span, .evidence-network__route a { font-family: var(--mono); font-size: .68rem; font-weight: 600; }
.evidence-network__route h3 { margin: clamp(44px, 6vw, 86px) 0 12px; color: var(--papaya); font-family: var(--display); font-size: clamp(2.8rem, 5vw, 5rem); line-height: .9; letter-spacing: -.055em; }
.evidence-network__route p { max-width: 560px; margin: 0 0 28px; line-height: 1.35; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 30px clamp(24px, 5vw, 72px); background: var(--carbon); color: white; font-family: var(--mono); font-size: .65rem; }
footer p { margin: 0; }

.article-page { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 120px) clamp(22px, 6vw, 80px); }
.article-page > header { max-width: 970px; }
.article-page h1, .advertise-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(3.5rem, 8vw, 8rem); line-height: .84; letter-spacing: -.07em; }
.article-dek { max-width: 760px; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.18; }
.byline { display: flex; gap: 18px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.article-boundary { display: grid; grid-template-columns: 160px 1fr; gap: 12px 24px; margin: 60px 0; padding: 28px; background: var(--lemon); border: 2px solid var(--carbon); }
.article-boundary b { font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }
.article-boundary p { margin: 0; }
.article-body { max-width: 760px; margin-left: min(18vw, 230px); }
.article-body section { margin: 70px 0; }
.article-body h2, .source-box h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.6rem); line-height: .95; letter-spacing: -.05em; }
.article-body p { font-size: 1.25rem; line-height: 1.55; }
.source-box { margin-top: 80px; padding: 38px; background: var(--periwinkle); border: 2px solid var(--carbon); }
.source-box li { margin: 12px 0; }

.advertise-page { background: var(--lemon); }
.advertise-hero { min-height: 720px; padding: clamp(60px, 9vw, 140px) clamp(24px, 7vw, 100px); }
.advertise-hero h1 em { color: var(--cobalt); font-family: var(--body); font-weight: 400; }
.advertise-hero > p:not(.eyebrow) { max-width: 760px; font-size: 1.5rem; }
.big-cta { display: inline-block; margin-top: 30px; padding: 18px 22px; background: var(--carbon); color: white; font-family: var(--mono); font-size: .75rem; text-decoration: none; }
.ad-principles { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 2px solid var(--carbon); background: var(--paper); }
.ad-principles article { min-height: 310px; padding: 30px; border-right: 2px solid var(--carbon); }
.ad-principles article:last-child { border-right: 0; }
.ad-principles span { font-family: var(--mono); }
.ad-principles h2 { margin-top: 80px; font-family: var(--display); font-size: 2.2rem; }
.placements { padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 100px); background: var(--cobalt); color: white; }
.placements > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.placements article { padding: 30px; border: 2px dashed white; }
.placements b, .placements span { font-family: var(--mono); font-size: .7rem; }
.placements p { font-size: 1.4rem; }

@media (max-width: 900px) {
  .site-head { grid-template-columns: 1fr; }
  .site-head nav { border-top: 1px solid rgba(255,255,255,.35); }
  .site-head nav a { max-width: none; flex: 1; border-left: 0; border-right: 1px solid rgba(255,255,255,.35); }
  .hero { grid-template-columns: 1fr; }
  .subtitle-machine { border-left: 0; border-top: 2px solid var(--carbon); }
  .status-band { grid-template-columns: 1fr; }
  .status-band > div { border-right: 0; border-bottom: 2px solid var(--carbon); }
  .story-card { grid-template-columns: 54px 1fr; }
  .story-card aside { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); }
  .products > div, .ad-principles { grid-template-columns: 1fr; }
  .products a, .ad-principles article { min-height: 220px; border-right: 0; border-bottom: 2px solid var(--carbon); }
  .products a:last-child, .ad-principles article:last-child { border-bottom: 0; }
  .products h3, .ad-principles h2 { margin-top: 40px; }
  .evidence-network { grid-template-columns: 1fr; }
  .evidence-network__route { border-left: 0; border-top: 2px solid var(--carbon); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wordmark { grid-template-columns: 1fr; gap: 2px; padding: 20px; font-size: 1.9rem; }
  .wordmark span:nth-child(2) { transform: none; }
  .wordmark span:nth-child(3) { text-align: left; }
  .site-head nav { flex-wrap: wrap; }
  .site-head nav a { min-height: 54px; padding: 10px; font-size: .58rem; }
  .hero { min-height: 0; }
  .hero-copy { padding: 70px 22px; }
  .hero h1 { font-size: 3.65rem; }
  .status-band ul { grid-template-columns: 1fr; }
  .status-band li { border-right: 0; border-bottom: 1px solid var(--line); }
  .ad-slot { margin: 22px; }
  .wire-head { align-items: start; flex-direction: column; }
  .filters { position: static; }
  .filters button { flex: 1 1 50%; }
  .filters label { min-height: 58px; padding-left: 12px; }
  .story-card { grid-template-columns: 1fr; }
  .story-index { display: none; }
  .story-card aside { grid-column: auto; }
  .products { padding-inline: 22px; }
  .placements > div { grid-template-columns: 1fr; }
  .article-boundary { grid-template-columns: 1fr; }
  .article-body { margin-left: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
