/* The Prompt Bench — refined editorial reference, 2026 */

/* Self-hosted variable fonts — no external requests, EU-friendly */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* Surface (dark by default) */
  --bg: #0a0e1a;
  --surface: #11172a;
  --surface-soft: #1a2138;
  --surface-elevated: #161d33;

  /* Ink (light on dark) */
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --ink-3: #94a3b8;
  --ink-4: #64748b;

  /* Rules */
  --rule: #1e293b;
  --rule-soft: #161e2e;

  /* Accent (teal — brighter for dark surfaces) */
  --accent: #14b8a6;
  --accent-deep: #2dd4bf;
  --accent-soft: rgba(20, 184, 166, 0.18);
  --accent-tint: rgba(20, 184, 166, 0.08);

  /* Confidence-label palette for release-radar claims */
  --confirmed: #22c55e;
  --confirmed-soft: rgba(34, 197, 94, 0.15);
  --confirmed-ink: #4ade80;
  --strong: #3b82f6;
  --strong-soft: rgba(59, 130, 246, 0.15);
  --strong-ink: #60a5fa;
  --speculation: #f59e0b;
  --speculation-soft: rgba(245, 158, 11, 0.15);
  --speculation-ink: #fbbf24;

  /* Shadows (deeper for dark mode) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px -4px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);

  /* Layout */
  --max-content: 720px;
  --max-page: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent-soft); color: var(--ink); }

a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(45, 212, 191, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover {
  color: #5eead4;
  text-decoration-color: currentColor;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0 0 1em; }

/* ===== Site header ===== */
.site-header {
  background: rgba(10, 14, 26, 0.85);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.site-header-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.site-brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--surface);
}
.site-brand-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
}
.site-brand-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-3);
  margin-top: 1px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
  background: transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* NerdSip pill in the nav — clear, on-brand, no floating badge */
.site-nav-nerdsip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  line-height: 1.1;
}
.site-nav-nerdsip:hover {
  background: var(--accent);
  border-color: var(--accent);
  border-bottom-color: var(--accent);
  color: #0a0e1a;
}
.site-nav-nerdsip:hover strong,
.site-nav-nerdsip:hover em { color: #0a0e1a; }
.site-nav-nerdsip img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: block;
}
.site-nav-nerdsip span {
  display: grid;
  gap: 0.05rem;
  line-height: 1.05;
}
.site-nav-nerdsip strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-deep);
}
.site-nav-nerdsip em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ink-3);
}

/* ===== Site footer ===== */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.footer-copy { margin: 0; }
.footer-note { color: var(--ink-4); }
.footer-note a { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--rule); }
.footer-note a:hover { color: var(--accent-deep); text-decoration-color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin: 1.5rem 0 1rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.4rem;
  color: var(--ink-4);
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--ink); }

/* ===== Article shell (article + sidebar) ===== */
.article-shell {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 1040px) {
  .article-shell {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 3.5rem;
  }
}
.article-main { min-width: 0; }
.article-sidebar { min-width: 0; }
@media (min-width: 1040px) {
  .article-sidebar {
    position: sticky;
    top: 5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}

.article { display: contents; }

/* Article hero */
.article-hero { margin: 0 0 2rem; }
.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-md);
  max-height: 360px;
}
.article-hero figcaption {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: 0.7rem;
  padding-left: 0.1rem;
  max-width: var(--max-content);
  font-style: italic;
}

/* Article header */
.article-header { max-width: var(--max-content); margin: 0 0 2rem; padding: 0; border: 0; box-shadow: none; background: transparent; }
.article-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin: 0 0 0.65rem;
  background: transparent;
  border: 0;
  padding: 0;
  width: auto;
}
.article-kicker a { color: inherit; text-decoration: none; }
.article-kicker a:hover { text-decoration: underline; }
.article-header h1 {
  font-size: clamp(2rem, 4.4vw, 2.85rem);
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 1rem;
  text-wrap: balance;
  font-weight: 500;
}
.byline {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  font-weight: 400;
}

/* Summary box */
.summary-box {
  max-width: var(--max-content);
  margin: 0 0 2.5rem;
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.summary-box::before, .summary-box::after { content: none !important; display: none !important; }
.summary-box h2 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-family: 'Inter', sans-serif;
}
.summary-box p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.55;
}

/* Article body */
.article-body { max-width: var(--max-content); font-size: 1.05rem; color: var(--ink-2); padding: 0 !important; }
.article-body p { color: var(--ink-2); margin: 0 0 1em; }
.article-body h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 0.85rem;
  color: var(--ink);
  font-weight: 500;
  font-family: 'Fraunces', Georgia, serif;
}
.article-body h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { color: var(--ink); }
.article-body blockquote {
  margin: 1.75em 0;
  padding: 0.6em 1.25em;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-2);
}
.article-body ul, .article-body ol { padding-left: 1.5em; margin: 0.5em 0 1.25em; }
.article-body li { margin: 0.35em 0; color: var(--ink-2); }
.article-body li::marker { color: var(--ink-4); }
.article-body code {
  background: var(--surface-elevated);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--accent-deep);
}
.article-body a { font-weight: 500; }
.article-body img {
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-body pre {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: #050813;
  color: #e2e8f0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  box-shadow: var(--shadow-sm);
}
.article-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.article-body hr {
  border: 0;
  margin: 2.5em 0;
  text-align: center;
}
.article-body hr::before {
  content: '· · ·';
  letter-spacing: 0.5em;
  color: var(--ink-4);
}

/* FAQ */
.faq { max-width: var(--max-content); margin: 3rem 0 0; padding: 0 !important; }
.faq h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 500;
  font-family: 'Fraunces', Georgia, serif;
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  border-top: 0;
  padding: 1rem 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 1.5em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--accent-deep);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms ease;
}
.faq-item summary:hover { color: var(--accent-deep); }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--accent-deep); }
.faq-answer { padding-top: 0.7rem; color: var(--ink-2); line-height: 1.6; }
.faq-answer p { margin: 0.3em 0; }
.faq-answer p:last-child { margin-bottom: 0; }

/* See also */
.see-also {
  max-width: var(--max-content);
  margin: 3rem 0 0;
  padding: 1.5rem 0 0 !important;
  border-top: 1px solid var(--rule);
}
.see-also h2 {
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  font-weight: 500;
  font-family: 'Fraunces', Georgia, serif;
}
.see-also ul { list-style: none; padding: 0; margin: 0; }
.see-also li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.see-also li:last-child { border-bottom: 0; }
.see-also li a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}
.see-also li a:hover { color: var(--accent-deep); }
.see-also-desc {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-3);
  font-size: 0.92rem;
  font-weight: 400;
}

/* Resources */
.resources {
  max-width: var(--max-content);
  margin: 3rem 0 0;
  padding: 1.5rem 0 0 !important;
  border-top: 1px solid var(--rule);
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
}
.resources h2 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  font-weight: 500;
  font-family: 'Fraunces', Georgia, serif;
}
.resources-lead {
  font-size: 0.92rem;
  color: var(--ink-3);
  margin: 0 0 1rem;
  font-style: italic;
  font-weight: 400 !important;
}
.resources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.resources li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
}
.resources li:last-child { border-bottom: 0; }
.resources li a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.resources li a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.resource-blurb { color: var(--ink-3); }

/* Sidebar (TOC + meta) */
.toc {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.88rem;
  margin: 0 0 1.5rem;
  box-shadow: none;
}
.toc-header {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 0.65rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  border-radius: 0;
  width: auto;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc ol ol { padding-left: 0.85rem; margin-top: 0.25rem; counter-reset: toc-sub; }
.toc li { margin: 0.35rem 0; line-height: 1.45; }
.toc ol > li { counter-increment: toc; }
.toc ol > li > a::before {
  content: counter(toc) ".";
  color: var(--ink-4);
  margin-right: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.toc ol ol > li { counter-increment: toc-sub; }
.toc ol ol > li > a::before {
  content: counter(toc) "." counter(toc-sub);
  color: var(--ink-4);
  margin-right: 0.4rem;
}
.toc a {
  color: var(--ink-2);
  text-decoration: none;
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 120ms, border-color 120ms;
}
.toc a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }

.sidebar-meta {
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}
.sidebar-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.55rem;
}
.sidebar-meta-row span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.sidebar-meta-row a { color: var(--ink); text-decoration: none; }
.sidebar-meta-row a:hover { color: var(--accent-deep); }
.sidebar-author-row {
  align-items: center;
  flex-wrap: wrap;
}

.author-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.author-card img {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: none;
}
.author-card-copy { display: inline-flex; flex-direction: column; gap: 0; min-width: 0; }
.author-card strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.author-card em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-3);
}

/* ===== Subject (cluster pillar) page ===== */
.page-shell {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.subject-page { padding: 0; max-width: 880px; margin: 0 auto; }
.subject-header {
  margin: 1rem 0 2.5rem;
  padding: 0 !important;
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.subject-header-copy { min-width: 0; max-width: var(--max-content); }
.subject-header-image {
  margin: 1.75rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface-soft);
  transform: none !important;
  border: 1px solid var(--rule);
  max-width: 880px;
}
.subject-header-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  max-height: 320px;
}
.subject-kicker {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin: 0 0 0.55rem;
  background: transparent;
  border: 0;
  padding: 0;
  width: auto;
}
.subject-header h1 {
  font-size: clamp(2.1rem, 4.6vw, 2.85rem);
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
  text-wrap: balance;
  font-weight: 500;
}
.subject-intro {
  font-size: 1.15rem;
  color: var(--ink-3);
  margin: 0;
  font-weight: 400;
  max-width: var(--max-content);
}

.subject-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 1040px) {
  .subject-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 3.5rem; align-items: start; }
  .subject-sidebar { position: sticky; top: 5rem; }
}
.subject-body {
  max-width: var(--max-content);
  margin: 0;
  padding: 0 !important;
  font-size: 1.04rem;
  color: var(--ink-2);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}
.subject-body h2 {
  font-size: 1.6rem;
  margin: 2.25rem 0 0.75rem;
  font-weight: 500;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
}
.subject-body p { margin: 0 0 1em; }
.subject-body p strong { color: var(--ink); }

/* Series list (Articles in this subject) */
.series-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
  max-width: var(--max-content);
}
.series-list li {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.series-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.series-list li a {
  display: block;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}
.series-list li a > span:first-child {
  display: block;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.series-desc {
  display: block;
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.5;
}

.forthcoming {
  max-width: var(--max-content);
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 0 !important;
  border-top: 1px solid var(--rule);
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
}
.forthcoming h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0 0 0.75rem;
  font-family: 'Inter', sans-serif;
}
.forthcoming-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.forthcoming-list li {
  font-size: 0.85rem;
  color: var(--ink-3);
  text-transform: capitalize;
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-weight: 400;
}

/* ===== Home page ===== */
.home-page { max-width: var(--max-page); margin: 0 auto; padding: 1rem 1.5rem; }
.home-banner {
  padding: 4.5rem 0 3.5rem 1.15rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
  display: grid;
  gap: 0.7rem;
  max-width: 760px;
  position: relative;
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none !important;
  min-height: auto !important;
}
.home-banner::before {
  content: '';
  position: absolute;
  top: 4.65rem;
  left: 0;
  width: 3px;
  height: calc(100% - 7.5rem);
  background: var(--accent);
  opacity: 0.9;
  border-radius: 1.5px;
}
.home-banner::after { content: none !important; display: none !important; }
.home-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  width: auto;
}
.home-banner h1 {
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0.65rem 0 1rem;
  font-weight: 500;
  text-wrap: balance;
  max-width: none;
  font-family: 'Fraunces', Georgia, serif;
}
.home-banner .home-tagline {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  letter-spacing: -0.005em;
  background: transparent;
  border: 0;
  padding: 0;
  max-width: 760px;
  line-height: 1.3;
}
.home-banner .home-lead {
  font-size: 1.02rem;
  color: var(--ink-3);
  margin: 0.85rem 0 0;
  max-width: 640px;
  line-height: 1.55;
  font-weight: 400;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.home-section { margin-top: 3rem; }
.home-section > h2 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  font-family: 'Inter', sans-serif;
}

/* Subject cards on home page */
.subjects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.subjects-list > li {
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.subjects-list > li:hover {
  background: var(--surface-elevated);
}
/* Override the rainbow pastel rotation from the prior theme */
.subjects-list > li:nth-child(6n+1),
.subjects-list > li:nth-child(6n+2),
.subjects-list > li:nth-child(6n+3),
.subjects-list > li:nth-child(6n+4),
.subjects-list > li:nth-child(6n+5),
.subjects-list > li:nth-child(6n+6) { background: var(--surface); }

.subjects-list > li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.subject-meta-pill {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 0.18rem 0.5rem;
  background: var(--surface-soft);
  border-radius: 999px;
  border: 1px solid var(--rule);
  white-space: nowrap;
  z-index: 2;
}
.subject-meta-pill.is-empty {
  background: transparent;
  color: var(--accent-deep);
  border-color: var(--accent-soft);
}
.subjects-list > li.is-empty {
  background: var(--surface);
  border-style: dashed;
  border-color: var(--rule);
}
.subjects-list > li.is-empty .subject-image { opacity: 0.78; }
.subjects-list > li.is-empty h3 a { color: var(--ink-2); }
.subjects-list > li.is-empty .subject-articles h4 { color: var(--ink-4); }
.subjects-list > li.is-empty .subject-articles { opacity: 0.7; }
.subject-image {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--rule);
  border-right: 0;
  border-radius: 0;
}
.subject-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  display: block;
}
.subject-card-body {
  padding: 1.25rem 1.5rem 1.1rem;
}
.subjects-list h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
  padding-right: 0;
  line-height: 1.2;
  min-height: 0;
  font-family: 'Fraunces', Georgia, serif;
}
.subjects-list > li .subject-meta-pill { display: none; }
.subjects-list h3 a { color: var(--ink); text-decoration: none; }
.subjects-list h3 a:hover { color: var(--accent-deep); }
.subjects-list .subject-desc {
  font-size: 0.95rem;
  color: var(--ink-3);
  margin: 0 0 1rem;
  line-height: 1.5;
  min-height: 0;
  font-weight: 400;
}
.subject-hub-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.subject-hub-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0e1a;
  transform: none;
  box-shadow: none;
}
.subject-articles {
  margin: 0 1.5rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.subject-articles h4 {
  margin: 0 0 0.45rem;
  color: var(--ink-3);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.subjects-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
}
.subjects-list ul li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--rule-soft);
  font-weight: 400;
}
.subjects-list ul li:first-child { border-top: 0; }
.subjects-list ul li a {
  color: var(--ink-2);
  text-decoration: none;
  display: block;
}
.subjects-list ul li a:hover { color: var(--accent-deep); }

/* Recent articles grid */
.recent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.4rem;
}
@media (min-width: 640px) { .recent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .recent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .recent-grid { grid-template-columns: repeat(4, 1fr); } }
.recent-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.recent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.recent-card .recent-card-image {
  position: relative;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--rule);
}
.recent-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  opacity: 1;
}
.recent-card-body { padding: 0.85rem 1rem 1rem; }
.recent-card-cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-bottom: 0.25rem;
  background: transparent;
  border: 0;
  padding: 0;
  width: auto;
}
.recent-card h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.22;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.recent-card:hover h4 { color: var(--accent-deep); }

/* Subjects index page */
.subjects-index { max-width: var(--max-page); margin: 0 auto; padding: 0 1.5rem 1rem; }
.subjects-index h1 {
  font-size: clamp(2.2rem, 4.6vw, 3rem);
  letter-spacing: -0.022em;
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}
.subjects-index .subject-intro { font-style: normal; }

/* ===== About page ===== */
.about-page {
  margin: 1rem auto 0;
  max-width: var(--max-page);
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
  padding: 0 1.5rem;
}
.about-hero {
  padding: 3rem 0 2.5rem !important;
  border-bottom: 1px solid var(--rule);
  background: transparent !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: clamp(1.4rem, 5vw, 3rem);
  align-items: center;
}
@media (max-width: 760px) {
  .about-hero { grid-template-columns: 1fr; }
}
.about-hero h1 {
  margin: 0.75rem 0 0.75rem;
  max-width: 16ch;
  font-size: clamp(2.1rem, 4.9vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.022em;
}
.about-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--ink-3);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.55;
}
.about-operator-mark {
  justify-self: end;
  width: min(100%, 220px);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  transform: none !important;
}
.about-operator-mark img {
  display: block;
  width: min(100%, 160px);
  height: auto;
  object-fit: contain;
  justify-self: center;
}
.about-operator-mark p {
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
}
.about-operator-mark span {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 400;
}
.about-section {
  padding: 2.5rem 0 !important;
  border-bottom: 1px solid var(--rule);
  background: transparent !important;
}
.about-section:last-of-type { border-bottom: 0; }
.about-section > * {
  max-width: 880px;
  margin-left: 0;
  margin-right: auto;
}
.about-page .about-section-label {
  margin: 0 0 0.65rem;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.about-mission, .about-story, .about-trust, .about-people, .about-principles { background: transparent !important; border-top: 0 !important; }
.about-page h2 {
  font-size: clamp(1.45rem, 2.45vw, 2.1rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  font-family: 'Fraunces', Georgia, serif;
}
.about-page p, .about-page li {
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 400;
}
.about-people-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}
.about-person-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.about-person-card img {
  width: 80px;
  height: 80px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  box-shadow: none;
}
.about-person-card h3 {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 500;
  font-family: 'Fraunces', Georgia, serif;
}
.about-person-role {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-page ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 0;
  list-style: none;
}
.about-page li {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 400;
}

/* ===== Legal pages ===== */
.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.legal-page {
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 1rem 0 !important;
}
.legal-page h1 {
  font-size: 2rem;
  margin: 1.5rem 0 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.legal-section { margin: 1.75rem 0; }
.legal-section h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  font-weight: 500;
  font-family: 'Fraunces', Georgia, serif;
}
.legal-section h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.3rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.legal-meta { color: var(--ink-3); font-size: 0.88rem; font-style: italic; }
.reset-consent-btn {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
  box-shadow: none;
}
.reset-consent-btn:hover { background: var(--accent-tint); border-color: var(--accent-soft); }

/* ===== Claims (release-radar confidence labels) ===== */
.claim {
  position: relative;
  margin: 1rem 0;
  padding: 0.85rem 1rem 0.85rem 1.05rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.96rem;
  line-height: 1.5;
}
.claim::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 4px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.claim.is-confirmed::before { background: var(--confirmed); }
.claim.is-strong::before { background: var(--strong); }
.claim.is-speculation::before { background: var(--speculation); }
.claim-label {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.claim.is-confirmed .claim-label { background: var(--confirmed-soft); color: var(--confirmed-ink); }
.claim.is-strong .claim-label { background: var(--strong-soft); color: var(--strong-ink); }
.claim.is-speculation .claim-label { background: var(--speculation-soft); color: var(--speculation-ink); }

.as-of {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-3);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: auto;
  max-width: 340px;
  width: calc(100% - 2rem);
  background: var(--surface-elevated);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  font-size: 0.85rem;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 200px; color: var(--ink-2); }
.cookie-banner a { color: var(--accent-deep); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.4rem; }
.cookie-banner button {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.cookie-banner button[data-action="accept"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0e1a;
}
.cookie-banner button[data-action="accept"]:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #0a0e1a; }
.cookie-banner button[data-action="decline"]:hover { background: rgba(255,255,255,0.05); }

/* ===== Responsive ===== */
@media (max-width: 1039px) {
  .article-sidebar { display: none; }
  .subject-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header-inner { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .site-brand-text small { display: none; }
  .site-nav { gap: 1rem; font-size: 0.88rem; flex-wrap: wrap; order: 2; }
  .site-nav-nerdsip { padding: 0.35rem 0.6rem; }
  .site-nav-nerdsip em { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-brand-text { font-size: 1rem; }
  .article-shell, .page-shell, .home-page, .subjects-index, .about-page, .legal-container { padding: 0 1rem 1rem; }
  .article-header h1 { font-size: 1.85rem; }
  .home-banner { padding: 2rem 0 1.5rem 0.85rem; margin-bottom: 1.75rem; }
  .home-banner::before { top: 2.1rem; height: calc(100% - 3.5rem); }
  .home-banner h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
  .home-banner .home-tagline { font-size: 1.05rem; }
  .home-banner .home-lead { font-size: 0.95rem; }
  .article-body { font-size: 1rem; }
  .article-hero img { max-height: 240px; }
  .subjects-list { grid-template-columns: 1fr; gap: 1rem; }
  .recent-grid { gap: 1rem; }
  .subject-header h1 { font-size: 1.85rem; }
  .summary-box { padding: 1rem 1.15rem; }
  .article-body pre { font-size: 0.8rem; padding: 0.85rem 1rem; }
  .cookie-banner { font-size: 0.85rem; padding: 0.85rem 1rem; }
}
