:root {
  --haleon: #2fe900;
  --bg: #050704;
  --ink: #f7fff2;
  --muted: #b9c7b2;
  --quiet: #7f8f78;
  --surface: rgba(12, 18, 10, 0.86);
  --surface-solid: #10170d;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(47, 233, 0, 0.42);
  --shadow: rgba(0, 0, 0, 0.5);
  --control: rgba(0, 0, 0, 0.86);
  --control-hover: rgba(255, 255, 255, 0.09);
  --red: #ff6b6b;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

body[data-theme="light"] {
  --bg: #f7faf5;
  --ink: #0f170d;
  --muted: #394736;
  --quiet: #6a7765;
  --surface: rgba(255, 255, 255, 0.93);
  --surface-solid: #ffffff;
  --panel: rgba(27, 51, 20, 0.065);
  --panel-strong: rgba(27, 51, 20, 0.12);
  --border: rgba(31, 54, 25, 0.18);
  --border-strong: rgba(31, 161, 0, 0.5);
  --shadow: rgba(25, 42, 18, 0.13);
  --control: rgba(255, 255, 255, 0.92);
  --control-hover: rgba(27, 51, 20, 0.08);
  --red: #c63a43;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  container-type: size;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 233, 0, 0.14), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(47, 233, 0, 0.09), transparent 24%),
    linear-gradient(135deg, rgba(47, 233, 0, 0.08), transparent 40%);
}

body[data-theme="light"]::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 233, 0, 0.14), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(47, 233, 0, 0.08), transparent 25%),
    linear-gradient(135deg, rgba(47, 233, 0, 0.045), transparent 42%);
}

body::after {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(47, 233, 0, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 233, 0, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
}

body[data-theme="light"]::after {
  opacity: 0.045;
}

button {
  font: inherit;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.format-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 220;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--control);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 44px var(--shadow);
}

.format-toggle button,
.email-actions button,
.inline-action {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.format-toggle button:hover,
.email-actions button:hover,
.inline-action:hover {
  color: var(--ink);
  background: var(--control-hover);
}

.format-toggle button.active {
  color: #102006;
  background: var(--haleon);
  box-shadow: 0 0 20px rgba(47, 233, 0, 0.24);
}

#btn-pdf {
  margin-left: 6px;
}

.chapter-indicator {
  position: fixed;
  top: 18px;
  left: 16px;
  z-index: 210;
  max-width: min(520px, calc(100vw - 360px));
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--control);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s var(--ease-out);
}

.chapter-indicator.visible {
  opacity: 1;
}

.chapter-indicator::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--haleon);
}

.nav-hint {
  color: var(--quiet);
  margin-left: 10px;
}

.page {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page.active {
  display: flex;
}

.page-cover {
  text-align: center;
  isolation: isolate;
}

.cover-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.38;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.1);
}

.page-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.88)),
    radial-gradient(circle at 50% 20%, rgba(47, 233, 0, 0.24), transparent 36%);
}

body[data-theme="light"] .page-cover::after {
  background:
    linear-gradient(90deg, rgba(244, 248, 239, 0.94), rgba(244, 248, 239, 0.72), rgba(244, 248, 239, 0.94)),
    radial-gradient(circle at 50% 20%, rgba(47, 233, 0, 0.22), transparent 36%);
}

.hero-inner {
  width: min(920px, calc(100vw - 48px));
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.overline,
.chap-label,
.chapter-subhead,
.kicker,
.source-tag,
.glass-tag {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.overline {
  margin-bottom: 22px;
  color: var(--haleon);
  font-size: 0.86rem;
  font-weight: 700;
}

.page-cover h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 5.6rem;
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: balance;
}

.page-cover h1 .accent {
  color: var(--haleon);
  font-style: italic;
}

.hero-subtitle {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.45;
}

.date-ring {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
}

.date-ring::before,
.date-ring::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--border);
}

.agency-line,
.scroll-hint {
  position: absolute;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.86rem;
}

.agency-line {
  bottom: 58px;
}

.scroll-hint {
  bottom: 28px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.float-geo {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(47, 233, 0, 0.12);
  border-radius: 50%;
  pointer-events: none;
  animation: floatGeo 22s ease-in-out infinite;
}

@keyframes floatGeo {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40% { transform: translate(28px, -18px) rotate(4deg); }
  70% { transform: translate(-18px, 12px) rotate(-3deg); }
}

.page-stats.green-flood {
  background: var(--haleon);
  color: #101806;
}

.stat-wall {
  width: 100%;
  height: 100%;
  display: grid;
}

.format-landscape .stat-wall {
  grid-template-columns: repeat(3, 1fr);
}

.format-portrait .stat-wall {
  grid-template-columns: 1fr;
}

.stat-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 34px;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.stat-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-panel:last-child {
  border-right: 0;
}

.format-portrait .stat-panel {
  border-right: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.stat-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 6.4rem;
  line-height: 0.9;
  font-weight: 900;
}

.stat-label {
  max-width: 280px;
  margin-top: 18px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-context {
  max-width: 300px;
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-chapter,
.page-recs {
  justify-content: flex-start;
  padding: 70px 72px 38px;
}

.chapter-header,
.chapter-content {
  width: min(1780px, calc(100vw - 220px));
  position: relative;
  z-index: 2;
}

.chapter-header {
  flex-shrink: 0;
  margin-bottom: 14px;
}

.chap-label {
  margin-bottom: 6px;
  color: var(--haleon);
  font-size: 0.74rem;
  font-weight: 700;
}

.chapter-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  font-size: 3.15rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.chapter-rule {
  width: 100%;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.chapter-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.chapter-content::-webkit-scrollbar {
  width: 6px;
}

.chapter-content::-webkit-scrollbar-track {
  background: transparent;
}

.chapter-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.chapter-subhead {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.chapter-summary {
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.48;
  max-width: 86ch;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.section-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.format-landscape .article-grid[data-article-count="3"] .article-card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr);
}

.format-landscape .article-grid[data-article-count="3"] .article-card:first-child .article-copy > p {
  -webkit-line-clamp: 5;
}

.format-landscape .article-grid[data-article-count="3"] .article-card:first-child .so-what p {
  -webkit-line-clamp: 4;
}

.format-landscape .article-grid[data-article-count="5"] .article-card:last-child {
  grid-column: 1 / -1;
}

.article-card {
  min-height: 244px;
  display: grid;
  grid-template-columns: minmax(205px, 0.4fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 60px var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.article-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-card:hover,
.article-card.article-focus {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(47, 233, 0, 0.08), var(--surface));
}

body[data-theme="light"] .article-card,
body[data-theme="light"] .glass-card,
body[data-theme="light"] .digest-reference {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 245, 0.94)),
    var(--surface-solid);
  box-shadow: 0 20px 54px rgba(29, 47, 22, 0.12);
}

body[data-theme="light"] .article-card:hover,
body[data-theme="light"] .article-card.article-focus {
  background:
    linear-gradient(135deg, rgba(47, 233, 0, 0.09), rgba(255, 255, 255, 0.97)),
    var(--surface-solid);
}

.article-media {
  min-width: 0;
  height: 100%;
  min-height: 212px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel);
  position: relative;
}

.article-media img {
  width: 100%;
  height: 100%;
  min-height: 212px;
  display: block;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.article-card:hover .article-media img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.article-media figcaption {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.64);
  color: #ffffff;
  font-size: 0.66rem;
}

.article-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.kicker {
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kicker.green {
  color: #102006;
  background: var(--haleon);
}

.kicker.red {
  color: #ffffff;
  background: var(--red);
}

.kicker.gray {
  color: var(--ink);
  background: var(--panel-strong);
}

body[data-theme="light"] .kicker.gray {
  color: #20301c;
  background: #e6efe2;
}

body[data-theme="light"] .section-bg.pattern-diagonal {
  background: repeating-linear-gradient(45deg, transparent, transparent 58px, rgba(29, 111, 9, 0.045) 58px, rgba(29, 111, 9, 0.045) 59px);
}

body[data-theme="light"] .section-bg.pattern-matrix {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(29, 111, 9, 0.045) 39px, rgba(29, 111, 9, 0.045) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(29, 111, 9, 0.035) 39px, rgba(29, 111, 9, 0.035) 40px);
}

body[data-theme="light"] .section-bg.pattern-circles {
  background:
    radial-gradient(circle at 20% 28%, rgba(47, 233, 0, 0.12), transparent 16%),
    radial-gradient(circle at 74% 72%, rgba(30, 133, 0, 0.08), transparent 18%);
}

.article-copy h3 {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.26rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-copy > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.so-what {
  margin-top: auto;
  padding-top: 12px;
}

.so-what span {
  display: block;
  margin-bottom: 5px;
  color: var(--haleon);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.so-what p {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.digest-reference {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.digest-reference.visible {
  opacity: 1;
  transform: translateY(0);
}

.digest-reference h3 {
  margin-top: 6px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.digest-reference p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.inline-action {
  color: #102006;
  background: var(--haleon);
  white-space: nowrap;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.glass-card {
  min-height: 245px;
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 60px var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.25s var(--ease-out);
}

.glass-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-card:hover {
  border-color: var(--border-strong);
}

.glass-num {
  position: absolute;
  right: 12px;
  top: 8px;
  color: var(--haleon);
  opacity: 0.13;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.glass-tag {
  color: var(--haleon);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.glass-card h3 {
  margin-top: 16px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.3;
}

.glass-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.source-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 8px;
}

.source-tag {
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  padding: 5px 10px;
  font-size: 0.7rem;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-bg.pattern-diagonal {
  background: repeating-linear-gradient(45deg, transparent, transparent 58px, rgba(47, 233, 0, 0.05) 58px, rgba(47, 233, 0, 0.05) 59px);
}

.section-bg.pattern-matrix {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(47, 233, 0, 0.06) 39px, rgba(47, 233, 0, 0.06) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(47, 233, 0, 0.04) 39px, rgba(47, 233, 0, 0.04) 40px);
}

.section-bg.pattern-circles {
  background:
    radial-gradient(circle at 20% 28%, rgba(47, 233, 0, 0.08), transparent 16%),
    radial-gradient(circle at 74% 72%, rgba(47, 233, 0, 0.06), transparent 18%);
}

.nav-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 210;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transform: translateY(-50%);
}

.nav-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.nav-dot:hover {
  transform: scale(1.2);
  background: var(--muted);
}

.nav-dot.active {
  background: var(--haleon);
  box-shadow: 0 0 14px rgba(47, 233, 0, 0.44);
}

.email-digest {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.72);
}

.email-digest.open {
  display: flex;
}

.email-shell {
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-solid);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.email-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.email-toolbar h2 {
  margin-top: 4px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.email-actions {
  display: flex;
  gap: 8px;
}

.email-actions button {
  color: var(--ink);
  border: 1px solid var(--border);
  background: var(--panel);
}

.email-preview {
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding: 24px;
  background: #dfe8d8;
}

.email-subject {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.email-subject span {
  margin-right: 8px;
  color: var(--haleon);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-theme="light"] .email-digest {
  background: rgba(8, 16, 6, 0.42);
}

body[data-theme="light"] .email-preview {
  background: #edf5e8;
}

@media (min-width: 1700px) {
  .chapter-header h2 {
    font-size: 3.55rem;
  }

  .article-card {
    min-height: 270px;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  }

  .article-media,
  .article-media img {
    min-height: 238px;
  }

  .article-copy h3 {
    font-size: 1.38rem;
  }

  .article-copy > p {
    font-size: 1rem;
  }

  .so-what p {
    font-size: 0.96rem;
  }
}

@media (max-width: 1500px) {
  .page-chapter,
  .page-recs {
    padding: 66px 44px 34px;
  }

  .chapter-header,
  .chapter-content {
    width: min(100%, calc(100vw - 112px));
  }

  .chapter-header h2 {
    font-size: 2.95rem;
  }

  .article-card {
    min-height: 232px;
    grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .article-media,
  .article-media img {
    min-height: 204px;
  }

  .article-copy h3 {
    font-size: 1.22rem;
  }
}

.format-portrait .article-grid,
.format-portrait .glass-grid {
  grid-template-columns: 1fr;
}

.format-portrait .page-chapter,
.format-portrait .page-recs {
  align-items: center;
  padding: 84px 22px 34px;
}

.format-portrait .chapter-header,
.format-portrait .chapter-content {
  width: min(820px, calc(100vw - 52px));
}

.format-portrait .chapter-header h2 {
  font-size: 3rem;
}

.format-portrait .section-intro {
  grid-template-columns: 1fr;
}

.format-portrait .article-card {
  min-height: auto;
  grid-template-columns: 1fr;
}

.format-portrait .article-media,
.format-portrait .article-media img {
  height: 240px;
  min-height: 240px;
}

.format-portrait .article-copy > p,
.format-portrait .so-what p {
  display: block;
  overflow: visible;
}

.format-portrait .digest-reference {
  grid-template-columns: 1fr;
}

.format-portrait .glass-grid {
  gap: 16px;
}

@media (max-width: 980px) {
  .format-toggle {
    top: 8px;
    right: 8px;
    left: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .chapter-indicator {
    display: none;
  }

  .page-cover h1 {
    font-size: 3.7rem;
  }

  .page-chapter,
  .page-recs {
    padding: 104px 18px 28px;
  }

  .section-intro,
  .article-grid,
  .glass-grid,
  .digest-reference {
    grid-template-columns: 1fr;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-media,
  .article-media img {
    min-height: 180px;
    height: 180px;
  }

  .nav-dots {
    right: 8px;
  }

  .email-digest {
    padding: 10px;
  }
}

@media (max-width: 620px) {
  .page-cover h1 {
    font-size: 2.7rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .date-ring {
    flex-direction: column;
    gap: 8px;
  }

  .date-ring::before,
  .date-ring::after {
    display: none;
  }

  .stat-num {
    font-size: 4.2rem;
  }

  .chapter-header h2 {
    font-size: 2rem;
  }

  .article-copy h3 {
    font-size: 1.18rem;
  }
}

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

  #particles {
    display: none !important;
  }

  .float-geo {
    animation: none !important;
  }

  [data-reveal],
  .stat-panel,
  .article-card,
  .glass-card,
  .section-intro,
  .digest-reference {
    opacity: 1 !important;
    transform: none !important;
  }
}
