/* Layout: an instrument readout. One cyan trace from the logo runs under the masthead;
   everything else is quiet type on blue-black, with monospace for times and labels. */
:root {
  --bg: #07090d; --surface: #0f141b; --raised: #161d27; --line: #232c38;
  --fg: #f5f5f7; --muted: #98a2ae; --accent: #3fd4f5; --accent-ink: #04222b;
  --hot: #ff6a4d; --ok: #46d27f;
  --g1a: #2997ff; --g1b: #a972ff; --g1c: #ff6482;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f7f9; --surface: #ffffff; --raised: #eef2f5; --line: #d6dde4;
    --fg: #0b1016; --muted: #55616d; --accent: #087f9c; --accent-ink: #ffffff;
    --hot: #c8401f; --ok: #177a43;
    --g1a: #0b6fd6; --g1b: #7a45d8; --g1c: #d83a5e;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f7f9; --surface: #ffffff; --raised: #eef2f5; --line: #d6dde4;
  --fg: #0b1016; --muted: #55616d; --accent: #087f9c; --accent-ink: #ffffff;
  --hot: #c8401f; --ok: #177a43;
  --g1a: #0b6fd6; --g1b: #7a45d8; --g1c: #d83a5e;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
.label { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.label.accent { color: var(--accent); }
.grad { background: linear-gradient(90deg, var(--g1a), var(--g1b) 55%, var(--g1c)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* masthead */
.mast { padding-block: 18px; }
.mast .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font: 800 1.02rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.brand em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 0.94rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font: 600 0.94rem/1 var(--body); text-decoration: none; border: 1px solid var(--line); color: var(--fg); background: transparent; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }

/* the trace */
.trace { display: block; width: 100%; height: 72px; color: var(--accent); }
.trace path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 70%, transparent)); }
.trace .base { stroke: var(--line); stroke-width: 1; filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .trace .sig { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.2,.7,.2,1) .15s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* hero */
.hero { padding-block: 28px 8px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.hero .lede { margin-top: 20px; color: var(--muted); max-width: 34rem; font-size: 1.12rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.feature { display: grid; gap: 14px; text-decoration: none; }
.feature h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.feature:hover h2 { color: var(--accent); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.thumb.tall { aspect-ratio: 9 / 16; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(6, 10, 14, 0.72); display: grid; place-items: center; backdrop-filter: blur(6px); }
.thumb .play::before { content: ""; border-left: 14px solid #f5f5f7; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* sections */
section { padding-block: 44px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-size: 1.7rem; font-weight: 800; }
.sec-head a { font-size: 0.94rem; color: var(--accent); text-decoration: none; }
.sec-head a:hover { text-decoration: underline; }

/* live band */
.live { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 26px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; }
.live h2 { font-size: 1.75rem; font-weight: 800; margin-top: 12px; }
.live h2 a { text-decoration: none; }
.live h2 a:hover { color: var(--accent); }
.live .dek { color: var(--muted); margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hot); border: 1px solid color-mix(in srgb, var(--hot) 45%, transparent); padding: 7px 10px; border-radius: 999px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); }
.status { margin-top: 18px; font: 500 0.85rem/1.4 var(--mono); color: var(--muted); }
.status b { color: var(--hot); font-weight: 500; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; }
.ticks li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 14px; padding-block: 12px; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; padding-top: 0; }
.ticks time, .tl time { font: 500 0.82rem/1.5 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.ticks span { font-size: 0.98rem; line-height: 1.4; }

/* story grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 26px; }
.card { display: grid; gap: 12px; align-content: start; text-decoration: none; }
.card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.22; letter-spacing: -0.012em; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--muted); font-size: 0.94rem; line-height: 1.45; }
.card .meta { display: flex; gap: 10px; align-items: center; }

/* shorts rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.rail a { scroll-snap-align: start; text-decoration: none; display: grid; gap: 10px; align-content: start; }
.rail h3 { font: 600 0.9rem/1.3 var(--body); letter-spacing: 0; }
.rail a:hover h3 { color: var(--accent); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.principles h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.principles p { color: var(--muted); font-size: 0.97rem; }

/* article */
.article { padding-block: 28px 20px; }
.crumb { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.article h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 16px; max-width: 20ch; }
.article .dek { color: var(--muted); font-size: 1.16rem; max-width: 42rem; margin-top: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; margin-top: 32px; align-items: start; }
.cols.shortonly { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.prose { display: grid; gap: 18px; max-width: 42rem; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin-top: 10px; }
.prose ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 8px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.measured { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 20px 22px 22px; display: grid; gap: 10px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px); background-size: 100% 8px; background-repeat: no-repeat; background-position: 0 0; }
.measured .label { margin-top: 8px; }
.measured p { font-size: 1.08rem; line-height: 1.5; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; white-space: nowrap; }
.sources, .prose ul.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.sources a { color: var(--accent); text-underline-offset: 3px; }
.side { display: grid; gap: 22px; align-content: start; }
.side > .label { margin-bottom: -10px; }
.sidecard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; }
.sidecard h3 { font: 600 0.95rem/1.3 var(--body); letter-spacing: 0; }
.sidecard:hover h3 { color: var(--accent); }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; display: grid; }
.tl li { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr) 84px; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); align-items: start; }
.tl li:first-child { border-top: 0; padding-top: 4px; }
.tl h3 { font-size: 1.16rem; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.tl p { color: var(--muted); font-size: 0.98rem; }
.tl .src { margin-top: 8px; font-size: 0.86rem; }
.tl .src a { color: var(--accent); text-underline-offset: 3px; }
.know { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 30px; padding-block: 24px; border-block: 1px solid var(--line); }
.know h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.know p { color: var(--muted); font-size: 0.96rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; line-height: 1.45; }
.checks li { padding-left: 18px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.checks.bad li::before { background: var(--hot); }

.tl .thumb .play, .sidecard .thumb .play { width: 28px; height: 28px; left: 6px; bottom: 6px; }
.tl .thumb .play::before { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 3px; }
.tl .thumb { border-radius: 10px; }
.morerow { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.morerow > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 36px; padding-block: 34px 44px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: grid; gap: 18px; }
footer .row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .small { font-size: 0.8rem; max-width: 46rem; }

@media (max-width: 860px) {
  .hero .wrap, .live, .cols, .cols.shortonly { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles, .know, .morerow > div { grid-template-columns: minmax(0, 1fr); }
  .cols.shortonly .thumb.tall { max-width: 260px; }
  .tl li { grid-template-columns: minmax(0, 1fr) 72px; }
  .tl li time { grid-column: 1 / -1; margin-bottom: -12px; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .nav { order: 3; width: 100%; }
  .ticks li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .trace { height: 52px; }
}

/* News-site layer: a headline river with a sidebar, and long-form article pages. */
.mast { padding-block: 16px 0; border-bottom: 1px solid var(--line); }
.mast .wrap + .wrap { margin-top: 12px; }
.nav.topics { gap: 4px 22px; padding-bottom: 12px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.nav.topics a { white-space: nowrap; font-weight: 500; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav.topics a[aria-current="page"] { border-bottom-color: var(--accent); }

.ticker { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; padding-block: 9px; flex-wrap: wrap; }
.ticker a { text-decoration: none; font-weight: 600; min-width: 0; }
.ticker a:hover { color: var(--accent); }
.ticker time { font: 500 0.78rem/1 var(--mono); color: var(--muted); }
.ticker .pill { padding: 5px 9px; }

.intro { padding-block: 30px 6px; display: grid; gap: 10px; }
.intro h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.intro p { color: var(--muted); max-width: 46rem; }

.front { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-block: 8px 30px; }
.river { display: grid; gap: 0; min-width: 0; }
.daybar { padding-block: 22px 10px; border-bottom: 1px solid var(--line); }
.item { padding-block: 26px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.item .meta, .article .meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.item .meta a, .article .meta a { text-decoration: none; }
.item h2 { font-size: 1.55rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.022em; }
.item h2 a { text-decoration: none; }
.item h2 a:hover { color: var(--accent); }
.itembody { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.itembody p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.itembody p b { color: var(--fg); font-weight: 600; }
.more { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.more:hover { text-decoration: underline; }
.item.first h2, .item.livelead h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.item.first .itembody, .item.livelead .itembody { grid-template-columns: minmax(0, 1fr); }
.item.livelead { padding-top: 14px; }

.rail-side { display: grid; gap: 22px; align-content: start; min-width: 0; }
.sidebox { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 20px; display: grid; gap: 14px; }
.sidebox.plain { border: 0; background: transparent; padding: 0; border-top: 1px solid var(--line); border-radius: 0; padding-top: 18px; }
.sidebox h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.2; }
.sidebox h3 a { text-decoration: none; }
.sidebox h3 a:hover { color: var(--accent); }
.sidebox .status { margin-top: 0; }
.sidebox .ticks li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 10px; }
.sidebox .more { margin-top: 0; }
.sidebox .sidecard h3 { font: 600 0.92rem/1.3 var(--body); letter-spacing: 0; }
.shortgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shortgrid .thumb { border-radius: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { text-decoration: none; font-size: 0.88rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* long-form article */
.articlepage { padding-top: 34px; }
.articlepage .article { padding: 0; min-width: 0; }
.articlepage .article h1 { max-width: none; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 14px; }
.articlepage .prose { margin-top: 28px; max-width: 44rem; font-size: 1.1rem; line-height: 1.68; gap: 20px; }
.articlepage .prose h2 { font-size: 1.45rem; font-weight: 800; margin-top: 16px; }
.articlepage .prose li { line-height: 1.55; }
.shortplayer { max-width: 300px; }
.storysofar { max-width: 44rem; font-size: 1.06rem; line-height: 1.65; }
.storysofar h2 { font-size: 1.7rem; font-weight: 800; margin-top: 8px; }

@media (max-width: 960px) {
  .front { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 620px) {
  .itembody { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .item h2 { font-size: 1.32rem; }
  .nav.topics { width: auto; order: 0; }
}

.sidebox .pill, .item .pill { justify-self: start; }

/* combined home: the first look's headline and Shorts row on the news feed */
.hero { padding-block: 34px 6px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.shortsband { padding-block: 34px 26px; border-block: 1px solid var(--line); background: var(--surface); margin-block: 6px 4px; }
.shortsband .sec-head { margin-bottom: 18px; }
.front + .shortsband + .front .river > .daybar:first-child { padding-top: 12px; }
