:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #0f2942;
  --ink-body: #243b53;
  --muted: #5c738a;
  --signal: #0c6c92;
  --signal-bright: #1ba3c8;
  --ember: #ea580c;
  --navy: #081c33;
  --line: rgba(15, 41, 66, 0.13);
  --line-strong: rgba(15, 41, 66, 0.26);
  --soft: #edf3f8;
  --shadow: 0 20px 50px -18px rgba(8, 28, 51, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--signal); }
img { max-width: 100%; height: auto; display: block; }

.spai-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem clamp(1.2rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.spai-brand {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.spai-brand { flex: none; }

.spai-brand .brand-lockup {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.4rem;
  white-space: nowrap;
}

.spai-brand .brand-lockup img {
  width: 1.75rem;
  height: auto;
  display: block;
  flex: none;
}

.spai-brand .brand-word { line-height: 1; color: inherit; }
.spai-brand .plus { color: var(--signal-bright); }

.spai-crumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--signal);
  border: 1px solid var(--line);
}

.spai-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.spai-links a {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
}

.spai-links a:hover {
  color: var(--ink);
  background: rgba(15, 41, 66, 0.06);
}

.spai-links a.cta {
  background: var(--navy);
  color: #ffffff;
}

.spai-links a.cta:hover {
  background: var(--signal);
}

.issue-shell {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.8rem) clamp(1.2rem, 4vw, 2.5rem) 5rem;
}

.issue-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--muted);
}

.issue-meta-bar strong {
  color: var(--ink);
}

.issue-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.15rem, 4.8vw, 3.55rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: min(18em, 100%);
}

.issue-Standfirst {
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  line-height: 1.6;
  color: #3d5870;
  max-width: 42rem;
  margin: 0 0 1.6rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.tag-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-showcase {
  margin: 0 0 2.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.65rem;
  box-shadow: var(--shadow);
}

.hero-showcase img,
.hero-showcase video {
  width: 100%;
  border-radius: 14px;
  display: block;
  background: #0b1220;
}

.still-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.still-row figure { margin: 0; }

.still-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #0b1220;
}

.still-row figcaption {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.hero-showcase figcaption {
  padding: 0.85rem 0.6rem 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0 0 3rem;
}

.kpi-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
}

.kpi-box strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.kpi-box span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.8rem;
}

.dispatch-sec {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.sec-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.45rem;
}

.dispatch-sec h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 1rem;
}

.dispatch-sec p {
  margin: 0 0 1.05rem;
  max-width: 68ch;
}

.dispatch-sec p:last-child { margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.25rem;
  margin-top: 1.4rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.25rem;
}

.feature-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.45rem;
}

.feature-card p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.plate-figure {
  margin: 1.6rem 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.65rem;
}

.plate-figure img {
  width: 100%;
  border-radius: 11px;
}

.plate-figure figcaption {
  padding: 0.75rem 0.5rem 0.25rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.plate-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.plate-pair figure {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem;
}

.plate-pair img {
  width: 100%;
  border-radius: 9px;
}

.plate-pair figcaption {
  padding: 0.65rem 0.35rem 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.specimen {
  background: var(--navy);
  color: #f1f5f9;
  border-radius: 20px;
  padding: clamp(1.5rem, 3.5vw, 2.3rem);
  box-shadow: var(--shadow);
}

.specimen .sec-kicker { color: #38bdf8; }
.specimen h2 { color: #ffffff; font-family: "Plus Jakarta Sans", sans-serif; margin: 0 0 0.6rem; }
.specimen > p { color: #cbd5e1; margin: 0 0 1.4rem; max-width: 64ch; }

.spec-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.spec-tab {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  cursor: pointer;
}

.spec-tab.is-active {
  background: #38bdf8;
  color: #061829;
  border-color: #38bdf8;
}

.spec-panel {
  background: #0f233d;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 1.25rem;
}

.code-block {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  background: #061222;
  color: #bae6fd;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0.75rem 0;
}

.callout-quote {
  border-left: 4px solid var(--signal-bright);
  background: var(--soft);
  padding: 1.1rem 1.35rem;
  border-radius: 0 12px 12px 0;
  margin: 1.4rem 0;
  color: var(--ink);
  font-weight: 500;
}

.conversion-box {
  margin-top: 3rem;
  background: linear-gradient(135deg, #07192e 0%, #0d3359 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.conversion-box h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0.3rem 0 0.5rem;
}

.conversion-box p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  max-width: 40rem;
}

.conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.conversion-actions a {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
}

.conversion-actions a.primary {
  background: #38bdf8;
  color: #061829;
}

.conversion-actions a.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.issue-pager {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.issue-pager a {
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.issue-pager a:hover {
  border-color: var(--line-strong);
}

@media (max-width: 720px) {
  .still-row { grid-template-columns: 1fr; }
  .conversion-box { padding: 1.4rem; }
  .issue-meta-bar { align-items: flex-start; }
  .hero-showcase figcaption,
  .plate-figure figcaption { display: block; }
}
