:root {
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 2rem;
  --space-2xl: 3.25rem;
  --max-width: 1040px;
  --content-width: 780px;
  --shell-border: color-mix(in srgb, var(--border) 72%, transparent 28%);
  --shell-border-strong: color-mix(in srgb, var(--accent) 26%, var(--border) 74%);
  --shell-surface: color-mix(in srgb, var(--surface) 92%, transparent 8%);
  --shell-surface-2: color-mix(in srgb, var(--surface2) 96%, transparent 4%);
  --shell-surface-soft: color-mix(in srgb, var(--surface2) 72%, transparent 28%);
  --shell-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--surface) 44%, transparent 56%) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.62;
}

.site-watermark {
  position: fixed;
  inset: 0;
  background: url("/459-logo-bright.png") center center / min(52vw, 780px) auto no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

[data-shell-nav],
[data-shell-footer],
main {
  position: relative;
  z-index: 1;
}

main {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 3rem;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: var(--text-hi);
  font-family: var(--font-display);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
  margin: 0 0 0.9rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero,
.page-hero,
.section-shell {
  border: 1px solid var(--shell-border);
  border-radius: 6px;
  background: var(--shell-surface);
  box-shadow: var(--shell-shadow);
  backdrop-filter: blur(8px);
}

.hero,
.page-hero {
  margin-top: 1rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.hero__content,
.page-hero {
  max-width: var(--content-width);
}

.hero__lede,
.page-hero__lede {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--shell-border) 50%);
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface2) 88%, transparent 12%);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.button:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--surface2) 74%, transparent 26%);
}

.button--primary {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface2) 86%);
  color: var(--text-hi);
}

.button--quiet {
  border-color: var(--shell-border);
  background: transparent;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.stats--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.portal-card,
.content-card,
.faq-item {
  border: 1px solid var(--shell-border);
  border-radius: 4px;
  background: var(--shell-surface-2);
}

.stat-card {
  padding: 1rem;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-hi);
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-shell {
  margin: 1rem 0;
  padding: clamp(1rem, 2.6vw, 1.5rem);
}

.section-shell--narrow {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 1rem;
}

.section-header h2 {
  padding-top: 0.75rem;
  border-top: 1px solid var(--shell-border-strong);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.portal-card {
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.portal-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--shell-border) 55%);
  background: color-mix(in srgb, var(--surface2) 88%, var(--accent) 12%);
  text-decoration: none;
}

.portal-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-hi);
}

.portal-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.portal-card span,
.supporting-links,
.text-link,
.link-columns a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.story-stack {
  display: grid;
  gap: 0.6rem;
}

.content-card,
.faq-item {
  padding: 1rem;
}

.timeline-list {
  display: grid;
  gap: 0.3rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--shell-border);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-date {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-body strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-hi);
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
}

.supporting-links {
  margin-top: 1rem;
  color: var(--faint);
}

.article-promo {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent 94%), transparent 70%),
    var(--shell-surface);
}

code {
  font-family: var(--font-mono);
}

@media (max-width: 960px) {
  .stats,
  .portal-grid,
  .content-grid,
  .stats--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  main {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .timeline-item,
  .stats,
  .portal-grid,
  .content-grid,
  .stats--three,
  .link-columns {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    gap: 0.35rem;
  }
}
