/* ==========================================================================
   Sorklin Group — design system
   Dark, quiet, a little smug. One stylesheet, no frameworks, no build step.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --bg: #05070b;
  --bg-2: #080b11;
  --panel: #0c111a;
  --panel-2: #101724;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #e9eef5;
  --dim: #93a1b3;
  --dim-2: #6a7786;

  --cyan: #5de1ff;
  --violet: #b085f5;
  --amber: #ffb454;
  --green: #7ee787;
  --red: #ff6f6f;

  --grad: linear-gradient(118deg, var(--cyan), var(--violet) 58%, var(--amber));
  --grad-soft: linear-gradient(118deg, rgba(93, 225, 255, 0.14), rgba(176, 133, 245, 0.14));

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: "Space Grotesk", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- base -- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* page-level ambience: a fixed grid + two soft blooms behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 420px at 12% -8%, rgba(93, 225, 255, 0.11), transparent 70%),
    radial-gradient(760px 460px at 88% 4%, rgba(176, 133, 245, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 0%, #000 30%, transparent 85%);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

::selection { background: rgba(93, 225, 255, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

svg { display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono { font-family: var(--mono); font-size: 0.86em; }
.dim { color: var(--dim); }
.accent { color: var(--cyan); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.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;
}

/* ----------------------------------------------------------------- nav -- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-nav.stuck {
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .mark .curve { stroke-dasharray: 66; stroke-dashoffset: 66; animation: draw 1.5s var(--ease) 0.15s forwards; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dim-2);
  font-weight: 400;
  line-height: 1;
  margin-top: 3px;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--dim);
  font-size: 14.5px;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.nav-links a.nav-cta {
  color: #04121a;
  background: var(--grad);
  font-weight: 600;
  margin-left: 6px;
}
.nav-links a.nav-cta:hover { filter: brightness(1.08); }

/* The nav's one external pill is a LinkedIn badge, not a call to action — so it is
   deliberately quieter than the gradient button it replaced. Hover borrows LinkedIn's
   own blue rather than the site palette, which is how brand badges should behave. */
.nav-links a.nav-cta.li {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-links a.nav-cta.li:hover {
  color: var(--ink);
  background: rgba(10, 102, 194, 0.16);
  border-color: rgba(10, 102, 194, 0.7);
  filter: none;
}
.li-mark { width: 15px; height: 15px; display: block; flex: none; }
.foot-grid .li-mark, .foot-blurb .li-mark, .prose .li-mark {
  width: 13px; height: 13px;
  display: inline-block; vertical-align: -2px; margin-right: 2px;
}
/* The about page's hero badge: bigger, and it warms up to brand blue on hover. */
.li-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 14.5px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.li-badge:hover { background: rgba(10, 102, 194, 0.18); border-color: rgba(10, 102, 194, .75); text-decoration: none; transform: translateY(-1px); }
.li-badge .li-mark { width: 19px; height: 19px; }
.li-badge small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 17px; height: 1.5px; background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-5.5px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { opacity: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(0) rotate(-90deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) - 6px);
    left: var(--pad); right: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: rgba(9, 12, 18, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--r);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: var(--r-sm); font-size: 15.5px; }
  .nav-links a.nav-cta { text-align: center; margin-left: 0; }
}

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(44px, 9vh, 104px)) 0 clamp(48px, 8vh, 96px);
  overflow: hidden;
}
#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* The hero copy column is roughly half the page, but .display sizes itself from
   the viewport — so the authored line breaks in a hero headline wrap early and
   the next line lands out of step with them. Size it from the column instead. */
.hero-copy { container-type: inline-size; }
.hero-copy .display { font-size: clamp(30px, 8.2cqw, 60px); }
@supports not (font-size: 1cqw) {
  .hero-copy .display { font-size: clamp(30px, 4.4vw, 58px); }
}
/* Too narrow for three authored lines to stay honest: let it flow and balance. */
@media (max-width: 560px) {
  .hero-copy .display .line { display: inline; }
  .hero-copy .display { text-wrap: balance; }
}

/* The home hero's terminal must not wrap its own output: a shell that breaks a
   command across lines reads as a broken site, and the longest line here is 59
   characters. So the terminal takes the wider column, and the type steps down
   before the text ever has to break. */
.hero-grid--term { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.hero-grid--term .terminal { font-size: clamp(11.5px, 1.02vw, 13px); }
@media (max-width: 980px) {
  .hero-grid--term { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(126, 231, 135, 0.6);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 231, 135, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(126, 231, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 231, 135, 0); }
}

.display {
  font-size: clamp(38px, 6.4vw, 74px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.display .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display .line { display: block; }

.lede {
  font-size: clamp(16.5px, 1.55vw, 19.5px);
  color: var(--dim);
  max-width: 54ch;
  margin-bottom: 30px;
}
.lede strong { color: var(--ink); font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 21px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 10px 34px -12px rgba(93, 225, 255, 0.5);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------ terminal -- */
.terminal {
  /* Pinned: the terminal is a dark screen in every theme — its text palette
     never follows the theme tokens, so it stays readable everywhere. */
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(16, 23, 36, 0.92), rgba(8, 11, 17, 0.94));
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a333f; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span {
  margin-left: 6px;
  font-size: 11px;
  color: #6a7787;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.terminal-body { padding: 16px 18px 20px; min-height: 268px; }
.terminal-body .ln { white-space: pre-wrap; overflow-wrap: break-word; }
.terminal-body .cmd { color: #e9eef5; }
.terminal-body .cmd::before { content: "$ "; color: #5de1ff; }
.terminal-body .ok { color: #7ee787; }
.terminal-body .warn { color: #ffb454; }
.terminal-body .out { color: #93a1b3; }
.terminal-body .key { color: #b085f5; }
.terminal-body .caret {
  display: inline-block;
  width: 8px; height: 15px;
  vertical-align: -2px;
  background: #5de1ff;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* ------------------------------------------------------------- ticker -- */
.ticker {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
  padding: 13px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: slide 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--dim-2);
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
}
.ticker-track span::after { content: "◆"; color: rgba(93, 225, 255, 0.4); font-size: 9px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections -- */
.section { padding: clamp(64px, 10vh, 116px) 0; position: relative; }
.section.tight { padding-block: clamp(44px, 6vh, 74px); }
.section-head { max-width: 62ch; margin-bottom: clamp(30px, 5vh, 52px); }
.section-head.center { margin-inline: auto; }
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: 0.6; }
.section-head.center .kicker { justify-content: center; }
h2.title { font-size: clamp(27px, 3.5vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--dim); font-size: 17px; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* --------------------------------------------------------------- cards -- */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}
.card::before {
  /* pointer-tracking glow; --mx/--my are set by site.js */
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(240px 180px at var(--mx, 50%) var(--my, 0%), rgba(93, 225, 255, 0.16), transparent 68%);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 26px 54px -28px rgba(0, 0, 0, 0.9);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { font-size: 20px; margin-bottom: 9px; }
.card p { color: var(--dim); font-size: 15px; }
.card .card-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim-2);
  margin-bottom: 16px;
}
.card .card-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim-2);
  line-height: 1.55;
}
.card .card-note b { color: var(--amber); font-weight: 500; }
.card-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--cyan);
}
.card-link .arrow { transition: transform 0.2s var(--ease); }
.card:hover .card-link .arrow { transform: translateX(4px); }
a.card { color: inherit; }
a.card:hover { text-decoration: none; }
.card.tint-cyan::after, .card.tint-violet::after, .card.tint-amber::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 2px;
  background: var(--cyan);
  opacity: 0.75;
}
.card.tint-violet::after { background: var(--violet); }
.card.tint-amber::after { background: var(--amber); }

/* --------------------------------------------------------------- stats -- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 780px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: rgba(8, 11, 17, 0.86); padding: 24px 22px; }
.stat .n {
  font-family: var(--sans);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .l {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim-2);
}

/* --------------------------------------------------------------- steps -- */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.step { position: relative; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.022); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 16.5px; margin-bottom: 7px; }
.step p { font-size: 14.5px; color: var(--dim); margin: 0; }

/* -------------------------------------------------------------- badges -- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  line-height: 1.5;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.live { color: var(--green); }
.badge.dev { color: var(--amber); }
.badge.soon { color: var(--dim-2); }
.badge.info { color: var(--cyan); }

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  margin: 0 5px 6px 0;
}

/* -------------------------------------------------------------- panels -- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014));
  padding: clamp(22px, 3vw, 32px);
}
.panel h3 { font-size: 19px; }
.panel.ink { background: rgba(6, 9, 14, 0.72); }

.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 180, 84, 0.34);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm);
  background: rgba(255, 180, 84, 0.06);
  font-size: 15px;
  color: var(--ink);
}
.callout .ico { flex: none; font-family: var(--mono); color: var(--amber); }
.callout a { color: var(--amber); }
.callout.info { border-color: rgba(93, 225, 255, 0.34); border-left-color: var(--cyan); background: rgba(93, 225, 255, 0.06); color: var(--ink); }
.callout.info .ico { color: var(--cyan); }
.callout.todo { border-style: dashed; }

/* --------------------------------------------------------------- table -- */
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim-2); font-weight: 400; }
table.spec td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td { color: var(--dim); }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
ul.ticks li { position: relative; padding-left: 26px; color: var(--dim); font-size: 15.5px; }
ul.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  font-family: var(--mono);
  color: var(--green);
  font-size: 13px;
}
ul.ticks li b { color: var(--ink); font-weight: 500; }
ul.dashes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.dashes li { position: relative; padding-left: 20px; color: var(--dim); font-size: 15px; }
ul.dashes li::before { content: "—"; position: absolute; left: 0; color: var(--dim-2); }

/* -------------------------------------------------------------- footer -- */
.site-foot {
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.7);
  padding: clamp(40px, 6vh, 66px) 0 30px;
  margin-top: clamp(30px, 6vh, 60px);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim-2);
  font-weight: 400;
  margin: 0 0 14px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--dim); font-size: 14.5px; }
.foot-grid a:hover { color: var(--cyan); text-decoration: none; }
.foot-blurb { color: var(--dim); font-size: 14.5px; max-width: 34ch; }
.foot-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim-2);
}
.foot-bottom button {
  font: inherit;
  color: var(--dim-2);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.foot-bottom button:hover { color: var(--ink); border-color: var(--line-2); }

/* ------------------------------------------------------- page header -- */
.page-head {
  padding: calc(var(--nav-h) + clamp(48px, 8vh, 96px)) 0 clamp(30px, 5vh, 54px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-head .display { font-size: clamp(32px, 5.2vw, 58px); margin-bottom: 18px; }
.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim-2);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumbs a { color: var(--dim-2); }
.crumbs a:hover { color: var(--cyan); text-decoration: none; }
.crumbs .sep { opacity: 0.5; }

/* ------------------------------------------------------------- reveal -- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------- corporate mode -- */
/* The "Make it corporate" toggle. Hides the jokes, swaps in board-safe copy. */
body.corporate [data-joke] { display: none !important; }
body.corporate [data-corp] { display: revert; }
[data-corp] { display: none; }
body.corporate { --cyan: #4a90d9; --violet: #6f7fa8; --amber: #8a9bb4; --grad: linear-gradient(118deg, #4a90d9, #6f7fa8); }
/* Gradient text uses color:transparent, so corporate mode has to undo that too —
   otherwise the headline silently disappears instead of going sober. */
body.corporate .display .grad,
body.corporate .stat .n { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.corp-note {
  display: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim-2);
}
body.corporate .corp-note { display: block; }

/* ----------------------------------------------------------- charts -- */
/* The loss-exceedance curve: pathLength="1" lets us draw it without knowing its length. */
figure.chart { margin: 0; }
.draw { width: 100%; height: auto; }
.draw .glow {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawline 2.1s var(--ease) 0.25s forwards;
  filter: drop-shadow(0 0 10px rgba(93, 225, 255, 0.35));
}
@keyframes drawline { to { stroke-dashoffset: 0; } }
.draw .fade { animation: fadein 0.9s var(--ease) 1.5s forwards; }
.draw .fade.d3 { animation-delay: 1.9s; }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .draw .glow { stroke-dashoffset: 0; }
  .draw .fade { opacity: 1; }
}

/* -------------------------------------------------------------- misc -- */
.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.prose { max-width: 68ch; }
.prose h3 { font-size: 20px; margin-top: 34px; }
.prose p { color: var(--dim); }
.prose strong { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════════════
   The Daily Brief (/news/) — feed chrome
   Colours ride the :root custom properties; category tints reuse the badge
   palette (security → cyan, AI → violet). No hardcoded hex here.
   ═══════════════════════════════════════════════════════════════════════ */
.badge.ai { color: var(--violet); }
/* industry pills (top-level NAICS sectors): the third badge colour — green.
   Sector names stay sentence case (some run long), unlike the topic tags.
   The dim variant is the standing "no industry assigned" answer. */
.badge.ind { color: var(--green); text-transform: none; letter-spacing: 0.05em; }
.badge.ind.unspec { color: var(--dim-2); }

/* the closing section: process, taxonomy, attribution */
#about-feed {
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 16px); /* the hero CTA deep-links here */
}
#about-feed .card ul.dashes { gap: 8px; margin-top: 12px; }
#about-feed .card ul.dashes li { font-size: 14px; }
#about-feed .card .card-note { margin-top: 14px; }
.news-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.news-controls[hidden] { display: none; }
.news-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.news-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.news-tab {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--dim);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.news-tab:hover { color: var(--ink); text-decoration: none; }
.news-tab[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.news-tab .n { color: var(--dim-2); margin-left: 7px; }
.news-tab[aria-pressed="true"] .n { color: var(--cyan); }
/* the industry filter: a native select styled to sit beside the topic tabs;
   the popup itself stays native (option colours follow the theme tokens) */
.news-indsel {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  max-width: 100%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.news-indsel:hover { color: var(--ink); }
.news-indsel:focus-visible { outline: 1px solid var(--cyan); outline-offset: 2px; }
.news-indsel option { color: var(--ink); background: var(--bg); }
.news-updated { font-size: 12px; }
.news-list { min-height: 120px; }
.news-loading { padding: 8px 0; }
.news-day { margin-bottom: 38px; }
.news-day:last-child { margin-bottom: 0; }
.news-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.news-date-d { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.news-date-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  border-radius: 999px;
  padding: 3px 9px;
  align-self: center;
}
.news-date-count { font-family: var(--mono); font-size: 11.5px; color: var(--dim-2); margin-left: auto; }
.news-items { display: grid; gap: 12px; }
/* deep links (#day-… / #story-…) must land below the fixed nav */
.news-day, .news-item { scroll-margin-top: calc(var(--nav-h) + 16px); }
.news-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  padding: 17px 20px 15px 22px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.news-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--cyan);
  opacity: 0.55;
}
.news-item.tint-ai::before { background: var(--violet); }
.news-item.tint-news::before { background: var(--dim-2); }
.news-item:hover { border-color: var(--line-2); transform: translateY(-2px); }
.news-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 9px; }
.news-meta .badge { margin: 0; }
.news-src { font-family: var(--mono); font-size: 11.5px; color: var(--dim-2); }
.news-headline { font-size: 16.5px; font-weight: 500; line-height: 1.45; margin: 0 0 7px; }
.news-headline-link { color: var(--ink); }
.news-headline-link:hover { color: var(--cyan); text-decoration: none; }
.news-headline-link .ext {
  font-family: var(--mono);
  font-size: 0.75em;
  color: var(--dim-2);
  margin-left: 7px;
  display: inline-block;
  transition: transform 0.2s var(--ease), color 0.2s;
}
.news-headline-link:hover .ext { color: var(--cyan); transform: translate(2px, -2px); }
.news-summary { color: var(--dim); font-size: 14.5px; margin: 0; max-width: 74ch; }

/* -- story internals: TL;DR standfirst + expandable body ----------------- */
.news-tldr { display: flex; gap: 9px; align-items: baseline; margin: 0 0 2px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.news-tldr .lbl {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.news-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s;
}
.news-details[open] { border-color: var(--line-2); }
.news-details summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim-2);
  user-select: none;
  border-radius: var(--r-sm);
}
.news-details summary::-webkit-details-marker { display: none; }
.news-details summary:hover { color: var(--cyan); }
.news-details summary .chev { margin-left: auto; font-size: 9px; transition: transform 0.2s var(--ease); }
.news-details[open] summary .chev { transform: rotate(90deg); }
.news-details[open] summary { color: var(--dim); border-bottom: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.news-details-body { padding: 14px 16px 16px; display: grid; gap: 12px; }
.news-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.news-details-body .news-summary { max-width: none; }
.news-details-body ul.dashes { gap: 8px; }
.news-details-body ul.dashes li { font-size: 13.5px; line-height: 1.55; }
.news-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.news-links a { color: var(--dim); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.news-links a:hover { color: var(--cyan); text-decoration: none; }
.news-links a .ext { font-family: var(--mono); font-size: 0.78em; color: var(--dim-2); margin-left: 6px; }
.news-links a:hover .ext { color: var(--cyan); }
.news-state {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 30px 26px;
  text-align: center;
  color: var(--dim);
}
.news-state h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.news-state .btn { margin-top: 14px; }
.news-more-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.news-more-row .btn[hidden] { display: none; }
.news-shown { font-size: 12px; }
.news-shown[hidden] { display: none; }

/* -- deep dives: card variant + generated article page ------------------- */
.badge.dive { color: var(--amber); }
.news-item.type-dive { border-color: rgba(255, 180, 84, 0.35); }
.news-item.type-dive::before { background: var(--amber); opacity: 0.8; }
.news-item.type-dive:hover { border-color: rgba(255, 180, 84, 0.6); }
.news-dive-cta { margin-top: 12px; }
.news-dive-link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--amber);
  text-decoration: none;
}
.news-dive-link .arrow { display: inline-block; margin-left: 6px; transition: transform 0.2s var(--ease); }
.news-dive-link:hover { color: var(--ink); }
.news-dive-link:hover .arrow { transform: translateX(3px); }

/* the deep-dive article page (/news/deep-dive/) — standfirst spans the page */
.dd-display { font-size: clamp(27px, 3.8vw, 46px) !important; }
#dd-summary { max-width: none; }
.dd-tldr {
  display: flex;
  gap: 10px;
  align-items: baseline;
  max-width: none;
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
}
.dd-tldr[hidden] { display: none; }
.dd-tldr .lbl {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.dd-block { margin-bottom: 26px; }
.dd-facts { margin-top: 12px; }
.dd-facts li { font-size: 14.5px; line-height: 1.65; }
.dd-sources { margin-top: 12px; }
.dd-sources li { font-size: 14.5px; }

/* -- homepage strip: latest headlines, pinned below the nav -------------- */
.brief-strip {
  position: sticky;
  top: var(--nav-h);
  z-index: 70; /* under the fixed nav (80), over the page */
  margin-top: var(--nav-h); /* clear the fixed nav at the top of the page */
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* the strip now provides the nav clearance the hero used to add itself */
.brief-strip + .hero { padding-top: clamp(44px, 9vh, 104px); }
.brief-strip-inner { display: flex; align-items: center; gap: 20px; padding-block: 11px; min-width: 0; }
.brief-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}
.brief-strip-label:hover { color: var(--ink); text-decoration: none; }
.brief-strip-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(93, 225, 255, 0.9);
  flex: none;
}
.brief-strip-items { display: flex; align-items: center; gap: 26px; min-width: 0; overflow: hidden; flex: 1; }
.brief-strip-item {
  color: var(--dim);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 36ch;
}
.brief-strip-item .src { font-family: var(--mono); font-size: 11px; color: var(--dim-2); margin-right: 6px; }
.brief-strip-item:hover { color: var(--ink); text-decoration: none; }
.brief-strip-item:hover .src { color: var(--cyan); }
.brief-strip-fallback { color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brief-strip-fallback .arrow { color: var(--cyan); }
.brief-strip-more { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.brief-strip-more:hover { color: var(--cyan); text-decoration: none; }
@media (max-width: 700px) {
  .brief-strip-items { gap: 0; }
  .brief-strip-item { max-width: none; }
  .brief-strip-item:not(:first-child) { display: none; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  #field { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   THEME SYSTEM — four looks, one stylesheet.
   Midnight (the original) is the default: no data-theme attribute needed.
   The footer's theme button sets data-theme on <html>; an inline snippet in
   each page head restores the saved theme before first paint. All four
   themes render the exact same HTML — this section only swaps tokens and
   adds a few scoped flourishes. Corporate mode (body.corporate) still wins
   over any theme's accent tokens, by design.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Daylight — light & professional ──────────────────────────────────── */
[data-theme="daylight"] {
  --bg: #f7f8fa;
  --bg-2: #eff1f4;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --line: #dfe4ec;
  --line-2: #c3ccd9;
  --ink: #17233b;
  --dim: #4a5872;
  --dim-2: #8593aa;
  --cyan: #1f5aa8;
  --violet: #6d5bd0;
  --amber: #b45309;
  --green: #15803d;
  --red: #b91c1c;
  --grad: linear-gradient(118deg, #0f766e, #4338ca 38%, #a21caf 64%, #b45309);
  --grad-soft: linear-gradient(118deg, rgba(15, 118, 110, 0.1), rgba(67, 56, 202, 0.08) 38%, rgba(162, 28, 175, 0.08) 64%, rgba(180, 83, 9, 0.1));
}
[data-theme="daylight"] body { background: linear-gradient(180deg, #ffffff, #f7f8fa 320px); }
[data-theme="daylight"] .site-nav, [data-theme="daylight"] .site-nav.stuck { background: rgba(255, 255, 255, 0.92); }
[data-theme="daylight"] .nav-toggle { background: rgba(255, 255, 255, 0.97); box-shadow: 0 24px 60px rgba(23, 35, 59, 0.18); }
[data-theme="daylight"] .nav-links a:hover, [data-theme="daylight"] .btn-ghost:hover { background: rgba(23, 35, 59, 0.06); }
[data-theme="daylight"] .btn-primary { color: #ffffff; box-shadow: 0 10px 30px -14px rgba(31, 90, 168, 0.55); }
[data-theme="daylight"] .card { background: #ffffff; box-shadow: 0 1px 2px rgba(23, 35, 59, 0.05), 0 1px 3px rgba(23, 35, 59, 0.08); }
[data-theme="daylight"] .card:hover { box-shadow: 0 12px 32px -14px rgba(23, 35, 59, 0.25); }
[data-theme="daylight"] .card::before { display: none; }
[data-theme="daylight"] .news-item { background: #ffffff; }
[data-theme="daylight"] .panel { background: #ffffff; box-shadow: 0 1px 2px rgba(23, 35, 59, 0.05), 0 1px 3px rgba(23, 35, 59, 0.08); }
[data-theme="daylight"] .panel.ink { background: #ffffff; border-color: var(--line); }
[data-theme="daylight"] .stat { background: #ffffff; box-shadow: 0 1px 2px rgba(23, 35, 59, 0.05), 0 1px 3px rgba(23, 35, 59, 0.08); }
[data-theme="daylight"] .step { background: #ffffff; }
[data-theme="daylight"] .news-tab[aria-pressed="true"] { background: #e8eefc; }
[data-theme="daylight"] .site-foot { background: #eff1f4; }
[data-theme="daylight"] .brief-strip { background: rgba(255, 255, 255, 0.94); }
[data-theme="daylight"] #field { display: none; }

/* ── Arcade — funky & fun ─────────────────────────────────────────────── */
[data-theme="arcade"] {
  --bg: #fff9ef;
  --bg-2: #fff3dd;
  --panel: #fffdf8;
  --panel-2: #fff8ec;
  --line: #e8dcc4;
  --line-2: #1c150e;
  --ink: #1c150e;
  --dim: #5c5142;
  --dim-2: #97896f;
  --cyan: #e11d48;
  --violet: #5b4bc4;
  --amber: #c2410c;
  --green: #0e8a5f;
  --red: #d92d20;
  --grad: linear-gradient(100deg, #ff4d6d, #6c5ce7);
  --grad-soft: linear-gradient(100deg, rgba(255, 77, 109, 0.12), rgba(108, 92, 231, 0.12));
}
[data-theme="arcade"] body { background: repeating-linear-gradient(45deg, rgba(255, 77, 109, 0.035) 0 14px, transparent 14px 28px), var(--bg); }
[data-theme="arcade"] .card, [data-theme="arcade"] .news-item, [data-theme="arcade"] .panel, [data-theme="arcade"] .panel.ink, [data-theme="arcade"] .stat, [data-theme="arcade"] .step, [data-theme="arcade"] .news-details { background: var(--panel); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
[data-theme="arcade"] .card:hover { box-shadow: 7px 7px 0 var(--ink); transform: translateY(-3px); }
[data-theme="arcade"] .card::before, [data-theme="arcade"] .news-item::before { display: none; }
[data-theme="arcade"] .news-tabs { background: var(--panel); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
[data-theme="arcade"] .news-tab[aria-pressed="true"] { background: var(--cyan); color: #fffdf8; }
[data-theme="arcade"] .news-indsel { background: var(--panel); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
[data-theme="arcade"] .news-indsel option { background: var(--panel); }
[data-theme="arcade"] .news-date { border-bottom-color: var(--ink); }
[data-theme="arcade"] .news-date-tag { background: var(--panel); color: var(--ink); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
[data-theme="arcade"] .site-nav, [data-theme="arcade"] .site-nav.stuck { background: rgba(255, 249, 239, 0.94); }
[data-theme="arcade"] .nav-toggle { background: rgba(255, 249, 239, 0.97); box-shadow: 0 24px 60px rgba(28, 21, 14, 0.18); }
[data-theme="arcade"] .nav-links a:hover, [data-theme="arcade"] .btn-ghost:hover { background: rgba(28, 21, 14, 0.06); }
[data-theme="arcade"] .btn { border-radius: 10px; }
[data-theme="arcade"] .btn-primary { color: #fffdf8; box-shadow: 3px 3px 0 var(--ink); }
[data-theme="arcade"] .btn-ghost { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
[data-theme="arcade"] .btn-primary:hover, [data-theme="arcade"] .btn-ghost:hover { box-shadow: 5px 5px 0 var(--ink); }
[data-theme="arcade"] .site-foot { background: var(--bg-2); }
[data-theme="arcade"] .brief-strip { background: var(--panel); border-bottom: 2px solid var(--ink); }
[data-theme="arcade"] .callout { border: 2px solid var(--ink); border-left-width: 6px; box-shadow: 4px 4px 0 var(--ink); background: #fff2cc; }
[data-theme="arcade"] .card-index { color: var(--violet); }
[data-theme="arcade"] .news-tldr .lbl, [data-theme="arcade"] .news-sub { color: var(--cyan); }
[data-theme="arcade"] .news-dive-link { color: var(--cyan); font-weight: 600; }
[data-theme="arcade"] #field { display: none; }

/* ── Press — editorial newsprint (my pick) ────────────────────────────── */
[data-theme="press"] {
  --bg: #fdf1e3;
  --bg-2: #fae9d4;
  --panel: #fff8ec;
  --panel-2: #fff3e0;
  --line: #e3d2b8;
  --line-2: #c9b28d;
  --ink: #201a12;
  --dim: #5f5344;
  --dim-2: #94836c;
  --cyan: #0f5499;
  --violet: #8a4b0f;
  --amber: #b45309;
  --green: #2f6b3a;
  --red: #b91c1c;
  --grad: linear-gradient(100deg, #0f5499, #8a4b0f);
  --grad-soft: linear-gradient(100deg, rgba(15, 84, 153, 0.1), rgba(138, 75, 15, 0.1));
  --r-sm: 0px;
  --r: 0px;
  --r-lg: 0px;
  --sans: "Newsreader", Georgia, "Times New Roman", serif;
}
[data-theme="press"] .display, [data-theme="press"] .title, [data-theme="press"] .card h3, [data-theme="press"] .news-date-d { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
[data-theme="press"] .btn { border-radius: 0; font-family: var(--body); }
[data-theme="press"] .badge { border-radius: 0; }
[data-theme="press"] .display .grad { background: none; color: var(--cyan); font-style: italic; -webkit-background-clip: initial; background-clip: initial; }
[data-theme="press"] .kicker { font-variant: all-small-caps; letter-spacing: .22em; text-transform: none; color: #8a4b0f; }
[data-theme="press"] .kicker::before { background: #8a4b0f; }
[data-theme="press"] .card-index, [data-theme="press"] .news-tldr .lbl, [data-theme="press"] .news-sub, [data-theme="press"] .news-dive-link { color: #8a4b0f; }
[data-theme="press"] .card, [data-theme="press"] .news-item, [data-theme="press"] .panel, [data-theme="press"] .panel.ink, [data-theme="press"] .stat, [data-theme="press"] .step, [data-theme="press"] .news-details { background: transparent; border-radius: 0; box-shadow: none; }
[data-theme="press"] .card { border: 0; border-top: 3px solid var(--ink); padding-left: 0; padding-right: 0; }
[data-theme="press"] .news-item { border: 0; border-top: 1px solid var(--ink); padding-left: 18px; }
[data-theme="press"] .news-item.type-dive { border-top: 3px solid var(--amber); }
[data-theme="press"] .news-item::before { display: none; }
[data-theme="press"] .news-date { border-bottom-color: var(--ink); }
[data-theme="press"] .news-date-tag { border-radius: 0; background: var(--ink); color: var(--bg); }
[data-theme="press"] .news-tabs { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; }
[data-theme="press"] .news-tab[aria-pressed="true"] { background: transparent; color: var(--ink); border-bottom: 3px solid var(--cyan); border-radius: 0; }
[data-theme="press"] .news-indsel { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; }
[data-theme="press"] .site-nav, [data-theme="press"] .site-nav.stuck { background: rgba(253, 241, 227, 0.94); }
[data-theme="press"] .nav-toggle { background: rgba(253, 241, 227, 0.97); box-shadow: 0 24px 60px rgba(32, 26, 18, 0.18); }
[data-theme="press"] .nav-links a:hover, [data-theme="press"] .btn-ghost:hover { background: rgba(32, 26, 18, 0.06); }
[data-theme="press"] .btn-primary { background: var(--ink); color: var(--bg); box-shadow: none; }
[data-theme="press"] .stat .n { background: none; color: var(--ink); font-family: var(--sans); }
[data-theme="press"] .site-foot { background: var(--bg-2); }
[data-theme="press"] .brief-strip { background: rgba(255, 248, 236, 0.94); }
[data-theme="press"] #field { display: none; }
[data-theme="press"] #dd-summary::first-letter { float: left; font-family: var(--sans); font-size: 3.1em; line-height: 0.82; padding: 4px 10px 0 0; font-weight: 600; color: var(--cyan); }

/* ── text selection per theme ───────────────────────────────────────────
   Midnight's soft cyan + white works on dark; light themes get a soft
   accent wash with dark ink instead of white-on-light. */
[data-theme="daylight"] ::selection { background: rgba(31, 90, 168, 0.24); color: var(--ink); }
[data-theme="arcade"] ::selection { background: rgba(255, 77, 109, 0.22); color: var(--ink); }
[data-theme="press"] ::selection { background: rgba(15, 84, 153, 0.22); color: var(--ink); }
