/* ============================================================
   blueteam.news — landing page
   Warm watchfloor broadsheet, matching the product:
   cream ink on warm ink, one lifted IBM-blue accent,
   Newsreader (serif headlines) · Inter (UI) · JetBrains Mono (data).
   Self-hosted fonts, no CDN — practicing the page's own posture.
   ============================================================ */

/* ── Self-hosted fonts ── */
@font-face { font-family:'Newsreader'; font-style:normal; font-weight:200 800; font-display:swap; src:url('assets/fonts/newsreader-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family:'Newsreader'; font-style:italic; font-weight:200 800; font-display:swap; src:url('assets/fonts/newsreader-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap; src:url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:100 800; font-display:swap; src:url('assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

/* The landing is its OWN broadsheet world — a self-contained palette that mirrors
   the Wall's watchfloor tokens (warm paper, cream ink, one IBM-blue accent).
   It deliberately does NOT import the app's tokens.css (the landing ships as a
   standalone static page with no CSS build step). --accent below is therefore
   the ONE sanctioned copy of the brand hue; tokens.css `--brand` is the source
   of truth — if it moves, this literal must move with it. */
:root {
  --bg: #0e0c0a;
  --bg-elev: #16130f;
  --ink: #f2ede2;
  --ink-2: #c5beb0;
  --ink-3: #9a9182;
  --faint: #8f8775;   /* lifted from #7d7567: every --faint use is real prose (captions, egress note); 5.2:1 on --bg-elev clears AA, still below --ink-3 */
  --rule: rgba(242, 237, 226, 0.12);
  --rule-2: rgba(242, 237, 226, 0.30);
  --accent: #3b82f6;          /* MUST equal tokens.css --brand (see note above) */
  /* One brand blue only. Links/chrome derive from --accent via a
     tokenized lighten so they read on the dark ground without a second hue. */
  --link: color-mix(in srgb, var(--accent) 72%, #ffffff);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --measure: 760px;
  --pad: clamp(20px, 5vw, 88px);
  --section-y: clamp(52px, 6.5vw, 84px);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(59, 130, 246, 0.075), transparent 30rem),
    radial-gradient(circle at 8% 34%, rgba(242, 237, 226, 0.025), transparent 28rem),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }
em { font-style: italic; color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent);
  border-radius: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 12px; z-index: 100;
  padding: 8px 12px; border-radius: 6px; background: var(--accent); color: #04101f;
  font-weight: 700; transform: translateY(-160%); transition: transform 120ms ease;
}
.skip-link:focus { transform: translateY(0); }

.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px;
}
.chip {
  font-family: var(--mono); font-size: 0.86em; color: var(--ink-2);
  background: rgba(242, 237, 226, 0.06); border: 1px solid var(--rule-2);
  border-radius: 4px; padding: 2px 7px; white-space: nowrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 8px; cursor: pointer;
  transition: filter 180ms ease, background 180ms ease, border-color 180ms ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #04101f; border: 1px solid var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { filter: brightness(0.92); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-ghost:active { background: var(--rule); }
.star-count { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.star-count::before { content: '· '; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px var(--pad);
  background: rgba(14, 12, 10, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-2);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}
.brand { display: inline-flex; align-items: baseline; line-height: 1; }
/* Single-line release wordmark. The .NEWS suffix carries the brand blue, matching
   the edition export masthead without duplicating the domain beneath it. */
.brand-name { display: inline-block; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: 0.14em; text-transform: uppercase; }
.brand-suffix { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.link-quiet { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink-3); }
.link-quiet:hover { color: var(--ink); }
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-eyebrow .kicker { margin: 0; }
.release-badge {
  display: inline-flex; align-items: center; min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, var(--rule-2));
  border-radius: 999px; padding: 2px 9px;
  color: var(--link); background: rgba(59, 130, 246, 0.09);
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── Layout primitives ── */
main { display: block; }
.band, .note { padding: var(--section-y) var(--pad); border-top: 1px solid var(--rule); max-width: 1240px; margin: 0 auto; }
.band-head { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 28px; }
.band-lede, .band-foot { max-width: var(--measure); }
.band-lede { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; }
.band-foot { color: var(--ink-3); margin: 28px 0 0; font-size: 16px; }
.band-prose { max-width: var(--measure); }
.band-prose.wide { max-width: 860px; }
.band-prose p { margin: 0 0 18px; }

/* ── Hero ── */
.hero {
  padding: clamp(52px, 8vh, 96px) var(--pad) clamp(44px, 6vh, 72px);
  max-width: 1240px; margin: 0 auto;
}
.hero-copy { max-width: 820px; min-width: 0; }
.hero-head {
  font-family: var(--serif); font-weight: 760; font-size: clamp(40px, 5vw, 70px);
  line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 22px;
  text-wrap: balance;
}
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); margin: 0 0 22px; max-width: 38em; text-wrap: pretty; }
.hero-tagline { margin: 0 0 24px; color: var(--ink-3); font-family: var(--serif); font-size: clamp(17px, 1.25vw, 19px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin: 0; padding: 1px;
  border: 1px solid var(--rule); border-radius: 9px; overflow: hidden;
  background: var(--rule);
}
.hero-proof div { min-width: 0; padding: 11px 12px; background: rgba(14, 12, 10, 0.86); }
.hero-proof dt {
  margin: 0 0 3px; color: var(--faint); font-family: var(--mono);
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-proof dd { margin: 0; color: var(--ink-2); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
/* ── Code blocks ── */
.code { position: relative; background: #0a0f17; border: 1px solid var(--rule-2); border-radius: 10px; overflow: hidden; }
.code-toolbar {
  min-height: 48px; padding: 7px 9px 7px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--rule); background: rgba(242, 237, 226, 0.025);
}
.code-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink); white-space: pre; }
.copy {
  min-width: 86px; min-height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); background: rgba(242, 237, 226, 0.06); border: 1px solid var(--rule-2);
  border-radius: 6px; padding: 5px 9px; cursor: pointer; transition: all 160ms ease;
}
.copy:hover { color: var(--ink); border-color: var(--ink-3); }
.copy.copied { color: var(--link); border-color: var(--accent); }

/* ── Egress (trust gate) ── */
.band-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.band-grid > *, .surface, .step-body { min-width: 0; }
.egress {
  font-family: var(--mono); font-size: 14px; background: var(--bg-elev);
  border: 1px solid var(--rule-2); border-radius: 12px; padding: 22px 24px; color: var(--ink-2);
}
.egress-label { font-size: 11px; letter-spacing: 0.2em; color: var(--accent); display: block; margin-bottom: 16px; }
.egress-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.egress-row .arrow { color: var(--link); }
.egress-row.optional { color: var(--ink-3); }
.egress-note { color: var(--faint); font-size: 12px; margin-left: auto; }
.egress-stop { margin-top: 14px; color: var(--faint); font-style: normal; font-size: 12.5px; text-align: center; }
.trust-links {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.025em;
}
.trust-links a { color: var(--ink-2); }
.trust-links a:hover { color: var(--link); }

/* ── Three surfaces ── */
.surfaces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.surface { border: 1px solid var(--rule); border-radius: 14px; padding: clamp(18px, 2vw, 24px); background: linear-gradient(155deg, rgba(242,237,226,0.035), rgba(22,19,15,0.72) 58%, rgba(14,12,10,0.56)); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16); }
.surface-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.surface-briefing {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--rule-2));
  background: linear-gradient(135deg, rgba(59,130,246,0.10), var(--bg-elev) 55%, rgba(242,237,226,0.025));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}
.surface-featured .surface-thumb { margin: 0; }
.surface-copy { min-width: 0; }
.surface-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 1px solid var(--rule-2); border-radius: 8px; display: block; margin-bottom: 16px; background: #05070d; }
.surface-kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.surface-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--ink-2); background: rgba(242,237,226,0.05); border: 1px solid var(--rule-2); border-radius: 4px; padding: 1px 6px; text-transform: none; }
.surface h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(21px, 2vw, 27px); line-height: 1.15; color: var(--ink); margin: 10px 0 12px; }
.surface p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; }
.surface .chip { display: inline-block; }
.experience-modes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; margin-top: clamp(22px, 3vw, 34px); overflow: hidden;
  border: 1px solid var(--rule-2); border-radius: 12px; background: var(--rule-2);
}
.experience-mode { background: var(--bg); padding: clamp(18px, 2.4vw, 26px); }
.experience-mode-full { background: var(--bg-elev); }
.experience-label {
  display: block; margin-bottom: 7px; font-family: var(--mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.14em; color: var(--accent);
}
.experience-mode strong { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); }
.experience-mode p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ── Three tiers ── */
.horizons { display: grid; gap: 2px; border: 1px solid var(--rule-2); border-radius: 12px; overflow: hidden; }
.horizon { display: grid; grid-template-columns: 64px 150px 130px minmax(0, 1fr); align-items: baseline; gap: 18px; padding: 18px 22px; background: var(--bg); }
.horizon + .horizon { border-top: 1px solid var(--rule); }
.h-tag { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.h-name { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.h-when { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.h-desc { color: var(--ink-2); font-size: 16px; }
.horizon.h1 .h-tag { color: #f87171; }
.horizon.h2 .h-tag { color: #fbbf24; }
.horizon.h3 .h-tag { color: #a78bfa; }
.horizon.h1 { box-shadow: inset 3px 0 0 #f87171; }
.horizon.h2 { box-shadow: inset 3px 0 0 #fbbf24; }
.horizon.h3 { box-shadow: inset 3px 0 0 #a78bfa; }

/* ── Pipeline row ── */
.pipeline {
  font-family: var(--mono); font-size: 14px; color: var(--ink); letter-spacing: 0.02em;
  background: var(--bg-elev); border: 1px solid var(--rule-2); border-radius: 10px;
  padding: 16px 20px; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.pipeline span { color: var(--link); }

/* ── Facts grid ── */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule-2); border: 1px solid var(--rule-2); border-radius: 12px; overflow: hidden; margin-top: 32px; }
.fact { background: var(--bg); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.fact-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.fact-v { font-family: var(--mono); font-size: 16px; color: var(--ink); }

/* ── Quick start steps ── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 900px; }
#start { background: linear-gradient(135deg, rgba(242,237,226,0.025), var(--bg-elev)); }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; }
.step-n { font-family: var(--serif); font-weight: 760; font-size: 30px; color: var(--accent); line-height: 1; }
.step-body h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); margin: 0 0 12px; }
.step-note { font-size: 15.5px; color: var(--ink-2); margin: 12px 0 0; }

/* ── Honest note ── */
.note { max-width: 1120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px); }
.note .kicker { grid-column: 1 / -1; margin-bottom: -4px; }
.note-body { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--rule-2); padding: clamp(40px, 7vh, 72px) var(--pad); text-align: center; max-width: 1240px; margin: 0 auto; }
.footer-meta { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--ink-3); }
.footer-meta strong { color: var(--ink); }
.footer-meta a { color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 22px 0; font-size: 15px; }

/* ── Responsive ── */
@media (max-width: 880px) {
  .hero-copy { max-width: var(--measure); }
  .band-grid { grid-template-columns: 1fr; }
  .surfaces { grid-template-columns: 1fr; }
  .surface-featured { grid-template-columns: 1fr; }
  .surface-featured .surface-thumb { margin-bottom: 16px; }
  .experience-modes { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .horizon { grid-template-columns: 48px 1fr; grid-template-areas: "tag name" "tag when" "desc desc"; row-gap: 6px; }
  .h-tag { grid-area: tag; } .h-name { grid-area: name; } .h-when { grid-area: when; } .h-desc { grid-area: desc; }
  .note { grid-template-columns: 1fr; }
  .note .kicker { grid-column: 1; }
  .copy { min-height: 44px; }
  .trust-links a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { padding-block: 11px; }
  .topbar-actions { gap: 10px; }
  .topbar .link-quiet { display: none; }
  .topbar .btn { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .brand-name { font-size: 19px; }
  .hero { padding-top: 40px; }
  .hero-head { font-size: clamp(38px, 12vw, 52px); }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof dd { white-space: normal; }
  .code-toolbar { min-height: 60px; }
  .code pre { padding: 16px; overflow-x: visible; }
  .code code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .trust-links { gap-block: 0; }
  .footer-links { gap: 4px 16px; }
  .facts { grid-template-columns: 1fr; }
  .band-head { margin-bottom: 22px; }
  .horizon { padding: 16px 18px; }
  .steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .steps li:first-child .code { margin-left: -46px; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 17px; letter-spacing: 0.1em; }
  .topbar .btn { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { background-attachment: scroll; }
  * { transition: none !important; }
}

/* ── 404 ── */
.error-page { min-height: 100vh; display: grid; place-items: center; }
.error-shell { width: min(720px, 100%); padding: var(--pad); }
.error-brand { margin-bottom: clamp(38px, 8vh, 76px); }
.error-code { font-family: var(--serif); font-size: clamp(72px, 16vw, 144px); line-height: 0.8; color: var(--ink); margin: 0 0 28px; }
.error-shell .note-body { max-width: 30em; margin-bottom: 20px; }
