/*
 * Doomsday Field Guide
 * Original visual system: cinematic archive + fractured timeline.
 * No external fonts, images, or third-party style dependencies.
 */

:root {
  color-scheme: dark;
  --ink-1000: #030709;
  --ink-950: #071014;
  --ink-900: #0b171b;
  --ink-850: #102025;
  --ink-800: #15282d;
  --paper-50: #f4f1e8;
  --paper-100: #e8e5dc;
  --paper-300: #c5cac6;
  --paper-500: #9eaeaf;
  --verdigris-300: #8fe2cf;
  --verdigris-400: #69cdb9;
  --verdigris-500: #45ad9b;
  --amber-300: #f1ce88;
  --amber-400: #dcae5d;
  --coral-300: #ffab9e;
  --line: rgba(170, 219, 211, 0.18);
  --line-strong: rgba(170, 219, 211, 0.34);
  --surface: rgba(10, 24, 28, 0.9);
  --surface-raised: rgba(17, 38, 43, 0.94);
  --surface-warm: rgba(49, 41, 29, 0.52);
  --focus: #f8d58b;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-sm: 0.4rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.25rem;
  --content: 74rem;
  --reading: 48rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(3.75rem, 8vw, 7.5rem);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Iowan Old Style, Baskerville, "Times New Roman", ui-serif, Georgia, serif;
  --font-data: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-wrap: break-word;
  background:
    radial-gradient(circle at 82% 7%, rgba(69, 173, 155, 0.11), transparent 31rem),
    radial-gradient(circle at 12% 42%, rgba(220, 174, 93, 0.06), transparent 27rem),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25vw - 1px), rgba(143, 226, 207, 0.025) 25vw),
    var(--ink-950);
  color: var(--paper-100);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--verdigris-300);
  color: var(--ink-1000);
}

[hidden] {
  display: none !important;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

a {
  color: var(--verdigris-300);
  text-decoration-color: rgba(143, 226, 207, 0.48);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--paper-50);
  text-decoration-color: currentColor;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

p,
ul,
ol,
dl,
blockquote,
figure,
pre {
  margin-block: 0 1.25rem;
}

ul,
ol {
  padding-inline-start: 1.35rem;
}

li + li {
  margin-top: 0.4rem;
}

h1,
h2,
h3,
h4 {
  max-width: 27ch;
  margin: 0 0 0.72em;
  color: var(--paper-50);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 6.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
}

h3 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

h4 {
  font-size: 1.15rem;
}

hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

code,
kbd,
samp {
  font-family: var(--font-data);
  font-size: 0.9em;
}

code {
  padding: 0.14rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(3, 7, 9, 0.7);
}

pre {
  max-width: 100%;
  padding: 1.25rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-1000);
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

blockquote {
  padding: 0.8rem 0 0.8rem clamp(1rem, 3vw, 1.7rem);
  border-left: 0.2rem solid var(--amber-400);
  color: var(--paper-300);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.container,
.site-shell,
.header-inner,
.footer-inner,
.hero-inner,
.section-inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
}

.narrow,
.prose,
.article-body,
.legal-copy {
  width: min(100%, var(--reading));
}

.prose > :first-child,
.article-body > :first-child,
.legal-copy > :first-child {
  margin-top: 0;
}

.prose > :where(h2, h3),
.article-body > :where(h2, h3),
.legal-copy > :where(h2, h3) {
  margin-top: 1.55em;
}

.prose a,
.article-body a,
.legal-copy a {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--paper-50);
  color: var(--ink-1000);
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header and navigation */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 11, 14, 0.88);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(1rem) saturate(120%);
}

.header-inner,
.nav-shell {
  display: flex;
  min-height: 4.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-brand,
.brand,
.logo {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 1 auto;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper-50);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

.site-brand::before,
.brand::before {
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  border: 1px solid var(--verdigris-400);
  border-radius: 45% 55% 48% 52%;
  background:
    linear-gradient(110deg, transparent 28%, var(--verdigris-300) 29% 36%, transparent 37% 56%, var(--amber-400) 57% 63%, transparent 64%),
    var(--ink-850);
  box-shadow: inset 0 0 0 0.28rem var(--ink-950), 0 0 1.2rem rgba(105, 205, 185, 0.15);
  content: "";
  transform: rotate(-7deg);
}

.site-nav,
.primary-nav,
nav[aria-label="Primary"] {
  min-width: 0;
}

.site-nav ul,
.primary-nav ul,
.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  list-style: none;
}

.site-nav li,
.primary-nav li,
.nav-links li {
  margin: 0;
}

.site-nav a,
.primary-nav a,
.nav-links a {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 0.78rem;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--paper-300);
  font-family: var(--font-data);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(143, 226, 207, 0.09);
  color: var(--paper-50);
}

.site-nav a[aria-current="page"],
.primary-nav a[aria-current="page"],
.nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--verdigris-400);
}

.nav-toggle {
  display: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--paper-50);
}

/* Page rhythm and hero */
main {
  min-height: 58vh;
}

main:focus {
  outline: none;
}

.section,
main > section:not(.hero),
.content-section {
  padding-block: var(--section-space);
}

.section + .section,
main > section:not(.hero) + section:not(.hero) {
  border-top: 1px solid var(--line);
}

.section-heading,
.section-header {
  display: grid;
  max-width: 52rem;
  margin-bottom: clamp(1.7rem, 4vw, 3rem);
  gap: 0.4rem;
}

.section-heading > :last-child,
.section-header > :last-child {
  margin-bottom: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(38rem, 76vh, 52rem);
  padding-block: clamp(4rem, 9vw, 8rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(3, 9, 11, 0.98) 4%, rgba(4, 13, 16, 0.9) 47%, rgba(5, 18, 21, 0.55) 100%),
    var(--ink-950);
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 3rem, rgba(143, 226, 207, 0.035) 3rem calc(3rem + 1px)),
    linear-gradient(118deg, transparent 0 58%, rgba(220, 174, 93, 0.1) 58% 58.15%, transparent 58.15% 100%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(-9rem, calc((100vw - var(--content)) / 2 - 9rem));
  width: min(67rem, 68vw);
  aspect-ratio: 16 / 9;
  background: url("/assets/hero-portal.svg") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 2rem 4rem rgba(0, 0, 0, 0.42));
  opacity: 0.76;
  transform: translateY(-50%);
}

.hero-inner,
.hero .container,
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(15rem, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}

.hero-copy,
.hero-content {
  max-width: 47rem;
}

.hero-copy > :last-child,
.hero-content > :last-child {
  margin-bottom: 0;
}

.hero h1,
.page-hero h1 {
  text-shadow: 0 0.06em 1.1em rgba(0, 0, 0, 0.58);
}

.hero .lede,
.hero-description,
.page-intro {
  max-width: 43rem;
  color: var(--paper-300);
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.38rem);
  line-height: 1.65;
}

.hero-art,
.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-art img,
.hero-visual img,
.hero-art svg,
.hero-visual svg {
  width: 100%;
  filter: drop-shadow(0 1.8rem 3rem rgba(0, 0, 0, 0.36));
}

.page-hero,
.article-hero {
  position: relative;
  padding-block: clamp(3.6rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(118deg, transparent 0 72%, rgba(105, 205, 185, 0.08) 72% 72.2%, transparent 72.2%),
    linear-gradient(180deg, rgba(20, 45, 49, 0.42), transparent);
}

.page-hero::after,
.article-hero::after {
  position: absolute;
  right: -4rem;
  bottom: 18%;
  width: min(28rem, 52vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-400), transparent);
  box-shadow: 0 -3rem var(--line), 0 3rem var(--line);
  content: "";
  opacity: 0.48;
  transform: rotate(-13deg);
}

.eyebrow,
.kicker,
.overline,
.section-label {
  display: inline-flex;
  margin: 0 0 1.05rem;
  align-items: center;
  gap: 0.65rem;
  color: var(--verdigris-300);
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before,
.overline::before,
.section-label::before {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero-meta,
.page-meta,
.byline,
.last-updated,
.updated {
  display: flex;
  margin: 1.25rem 0;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--paper-500);
  font-family: var(--font-data);
  font-size: 0.78rem;
  line-height: 1.5;
}

.hero-actions,
.button-row,
.actions,
.cta-row,
.cookie-actions {
  display: flex;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.button,
.btn,
button:not(.nav-toggle),
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-flex;
  min-height: 2.9rem;
  padding: 0.72rem 1.05rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--verdigris-400);
  border-radius: var(--radius-sm);
  background: var(--verdigris-300);
  box-shadow: 0 0.65rem 1.8rem rgba(69, 173, 155, 0.12);
  color: var(--ink-1000);
  font-family: var(--font-data);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.065em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.btn:hover,
button:not(.nav-toggle):hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  border-color: var(--paper-50);
  background: var(--paper-50);
  color: var(--ink-1000);
  transform: translateY(-2px);
}

.button:active,
.btn:active,
button:not(.nav-toggle):active {
  transform: translateY(0);
}

.button-secondary,
.button.secondary,
.btn-secondary,
.button-outline,
.button.ghost,
button.secondary,
#cookie-reject,
#cookie-settings {
  border-color: var(--line-strong);
  background: rgba(7, 16, 20, 0.72);
  box-shadow: none;
  color: var(--paper-100);
}

.button-secondary:hover,
.button.secondary:hover,
.btn-secondary:hover,
.button-outline:hover,
.button.ghost:hover,
button.secondary:hover,
#cookie-reject:hover,
#cookie-settings:hover {
  border-color: var(--verdigris-300);
  background: rgba(143, 226, 207, 0.1);
  color: var(--paper-50);
}

:where(.button, .btn, button, input[type="submit"], input[type="button"], input[type="reset"]):disabled,
:where(.button, .btn, button)[aria-disabled="true"] {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.48;
  transform: none;
}

/* Cards and index grids */
.card-grid,
.cards,
.feature-grid,
.guide-grid,
.resource-grid,
.fact-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.card,
.feature-card,
.guide-card,
.resource-card,
.fact-card,
.link-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(143, 226, 207, 0.045), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.card::before,
.feature-card::before,
.guide-card::before,
.resource-card::before,
.fact-card::before,
.link-card::before {
  position: absolute;
  top: 0;
  left: 1.25rem;
  width: 3.3rem;
  height: 2px;
  background: var(--verdigris-400);
  content: "";
  box-shadow: 0.8rem 0 var(--ink-900), 2.7rem 0 var(--amber-400);
}

:where(.card, .feature-card, .guide-card, .resource-card, .fact-card, .link-card):hover {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(143, 226, 207, 0.075), transparent 46%),
    var(--surface-raised);
}

:where(.card, .feature-card, .guide-card, .resource-card, .fact-card, .link-card) > :last-child {
  margin-bottom: 0;
}

.card h3,
.feature-card h3,
.guide-card h3,
.resource-card h3,
.fact-card h3,
.link-card h3 {
  margin-top: 0.45rem;
}

.card > a:first-child:last-child,
a.card,
a.feature-card,
a.guide-card,
a.resource-card,
a.link-card {
  color: inherit;
  text-decoration: none;
}

a.card:hover h3,
a.feature-card:hover h3,
a.guide-card:hover h3,
a.resource-card:hover h3,
a.link-card:hover h3 {
  color: var(--verdigris-300);
}

.card-icon,
.card-number,
.index-number {
  display: inline-grid;
  min-width: 2.25rem;
  min-height: 2.25rem;
  margin-bottom: 1rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--amber-300);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 800;
}

.card-meta,
.meta,
.tag-list,
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--paper-500);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
}

.tag,
.badge,
.pill,
.status-badge {
  display: inline-flex;
  min-height: 1.75rem;
  padding: 0.22rem 0.55rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(143, 226, 207, 0.06);
  color: var(--paper-300);
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.status-badge.confirmed,
.badge.confirmed,
.tag.confirmed,
.verified {
  border-color: rgba(143, 226, 207, 0.42);
  color: var(--verdigris-300);
}

.status-badge.unconfirmed,
.badge.unconfirmed,
.tag.unconfirmed,
.speculation {
  border-color: rgba(241, 206, 136, 0.44);
  color: var(--amber-300);
}

/* Comparison tables */
.table-wrap,
.table-scroll,
.comparison-table-wrapper,
.comparison-scroll {
  width: 100%;
  margin-block: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(3, 10, 12, 0.55);
  box-shadow: var(--shadow-sm);
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--verdigris-500) var(--ink-900);
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  color: var(--paper-300);
  font-size: 0.94rem;
  text-align: left;
}

.table-wrap table,
.table-scroll table,
.comparison-table-wrapper table,
.comparison-scroll table,
table.comparison-table {
  min-width: 46rem;
}

table.comparison-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

caption {
  padding: 1rem 1.1rem;
  color: var(--paper-50);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--ink-850);
  color: var(--paper-50);
  font-family: var(--font-data);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

tbody th {
  color: var(--paper-50);
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background: rgba(143, 226, 207, 0.025);
}

tbody tr:hover {
  background: rgba(143, 226, 207, 0.065);
}

tbody tr:last-child > * {
  border-bottom: 0;
}

/* Facts, sources, notices, and editorial boundaries */
.fact,
.fact-box,
.source-box,
.sources,
.source-panel,
.callout,
.note,
.notice,
.status-note,
.editorial-note,
.disclaimer {
  position: relative;
  margin-block: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-left: 0.25rem solid var(--verdigris-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
  color: var(--paper-300);
}

.callout.warning,
.note.warning,
.notice.warning,
.speculation-note,
.unconfirmed-note {
  border-left-color: var(--amber-400);
  background: var(--surface-warm);
}

.callout.alert,
.notice.alert,
.error-message {
  border-left-color: var(--coral-300);
}

:where(.fact, .fact-box, .source-box, .sources, .source-panel, .callout, .note, .notice, .status-note, .editorial-note, .disclaimer) > :last-child {
  margin-bottom: 0;
}

.fact-label,
.source-label,
.callout-label,
.notice-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--verdigris-300);
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-list,
.sources ul,
.citations,
.references {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: source;
}

.source-list li,
.sources li,
.citations li,
.references li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0 0.7rem 2.25rem;
  border-top: 1px solid var(--line);
  counter-increment: source;
}

.source-list li:first-child,
.sources li:first-child,
.citations li:first-child,
.references li:first-child {
  border-top: 0;
}

.source-list li::before,
.sources li::before,
.citations li::before,
.references li::before {
  position: absolute;
  top: 0.82rem;
  left: 0;
  color: var(--amber-300);
  content: "[" counter(source, decimal-leading-zero) "]";
  font-family: var(--font-data);
  font-size: 0.69rem;
}

details {
  margin-block: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 24, 28, 0.66);
}

summary {
  position: relative;
  min-height: 3.25rem;
  padding: 0.8rem 2.8rem 0.8rem 1rem;
  color: var(--paper-50);
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  right: 1rem;
  color: var(--verdigris-300);
  content: "+";
  font-family: var(--font-data);
  font-size: 1.25rem;
}

details[open] summary::after {
  content: "−";
}

details > :not(summary) {
  margin-inline: 1rem;
}

details > :last-child {
  margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--paper-500);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.025em;
}

.breadcrumbs ol,
.breadcrumbs ul {
  display: flex;
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin: 0 auto;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 0.65rem;
}

.breadcrumbs li:not(:last-child)::after {
  color: var(--amber-400);
  content: "/";
}

.breadcrumbs a {
  color: var(--paper-300);
}

.breadcrumbs [aria-current="page"] {
  color: var(--verdigris-300);
}

/* Relationship and universe maps */
.relationship-map,
.universe-map,
.connection-map {
  position: relative;
  isolation: isolate;
  margin-block: 2rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(69, 173, 155, 0.11), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0 3.5rem, rgba(143, 226, 207, 0.025) 3.5rem calc(3.5rem + 1px)),
    rgba(3, 10, 12, 0.72);
  box-shadow: var(--shadow-lg);
}

.relationship-map::before,
.universe-map::before,
.connection-map::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--verdigris-500) 28%, var(--amber-400) 52%, var(--verdigris-500) 76%, transparent);
  content: "";
  opacity: 0.44;
  transform: rotate(-4deg);
}

.relationship-grid,
.universe-grid,
.map-grid,
.relationship-map > ul,
.universe-map > ul,
.connection-map > ul {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2.4vw, 1.5rem);
  list-style: none;
}

.relationship-node,
.universe-node,
.map-node,
.relationship-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(10, 24, 28, 0.96);
  box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.28);
}

.relationship-node::before,
.universe-node::before,
.map-node::before,
.relationship-card::before {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  margin-bottom: 0.65rem;
  border: 2px solid var(--verdigris-300);
  border-radius: 50%;
  background: var(--ink-950);
  box-shadow: 0 0 0 0.3rem rgba(105, 205, 185, 0.1);
  content: "";
}

.relationship-node > :last-child,
.universe-node > :last-child,
.map-node > :last-child,
.relationship-card > :last-child {
  margin-bottom: 0;
}

.map-legend,
.relationship-legend,
.universe-legend {
  display: flex;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  color: var(--paper-500);
  font-family: var(--font-data);
  font-size: 0.7rem;
}

/* Interactive planner */
.planner,
.watch-planner,
.planner-panel {
  position: relative;
  margin-block: 2rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(128deg, rgba(105, 205, 185, 0.08), transparent 37%),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.planner-controls,
.planner-toolbar,
.control-group,
.planner-summary {
  display: flex;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.8rem 1rem;
}

.planner-controls > *,
.planner-toolbar > * {
  min-width: min(100%, 12rem);
}

fieldset {
  min-width: 0;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

legend {
  padding-inline: 0.45rem;
  color: var(--paper-300);
  font-family: var(--font-data);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

label,
.form-label,
.control-label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--paper-300);
  font-family: var(--font-data);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.035em;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: var(--paper-50);
  caret-color: var(--verdigris-300);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

select {
  padding-right: 2.6rem;
}

::placeholder {
  color: var(--paper-500);
  opacity: 0.78;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--verdigris-300);
}

.planner-items,
.watch-list,
.checklist {
  display: grid;
  margin: 1.25rem 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.planner-item,
.watch-item,
.checklist-item {
  display: grid;
  min-width: 0;
  min-height: 4.4rem;
  margin: 0;
  padding: 0.85rem 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 14, 17, 0.72);
  transition: border-color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.planner-item:hover,
.watch-item:hover,
.checklist-item:hover {
  border-color: var(--line-strong);
  background: rgba(15, 34, 38, 0.9);
}

.planner-item.is-complete,
.planner-item.completed,
.watch-item.is-complete,
.watch-item.completed,
.checklist-item.is-complete,
.checklist-item.completed,
.planner-item:has(input:checked),
.watch-item:has(input:checked),
.checklist-item:has(input:checked) {
  opacity: 0.68;
}

.planner-item:has(input:checked) .planner-title,
.watch-item:has(input:checked) .item-title,
.checklist-item:has(input:checked) .item-title {
  text-decoration: line-through;
  text-decoration-color: var(--verdigris-400);
}

.planner-title,
.item-title {
  color: var(--paper-50);
  font-weight: 750;
}

.planner-runtime,
.item-runtime,
.duration {
  color: var(--paper-500);
  font-family: var(--font-data);
  font-size: 0.73rem;
  white-space: nowrap;
}

.planner-progress,
.progress-group {
  display: grid;
  margin-block: 1.2rem;
  gap: 0.55rem;
}

.progress-meta,
.planner-stats,
.progress-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: var(--paper-300);
  font-family: var(--font-data);
  font-size: 0.75rem;
}

progress {
  width: 100%;
  height: 0.75rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--ink-1000);
  color: var(--verdigris-400);
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--ink-1000);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--verdigris-500), var(--verdigris-300), var(--amber-400));
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--verdigris-500), var(--verdigris-300), var(--amber-400));
}

.progress-track {
  width: 100%;
  height: 0.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink-1000);
}

.progress-fill {
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--verdigris-500), var(--verdigris-300), var(--amber-400));
  transition: width 280ms ease;
}

/* Static-generator contract adapters */
.evidence-legend {
  display: grid;
  margin-block: 2rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(125deg, rgba(105, 205, 185, 0.08), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.evidence-legend > div > :last-child {
  margin-bottom: 0;
}

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

.evidence-grid > div {
  min-width: 0;
  padding: 1rem;
  border-top: 1px solid var(--line-strong);
  background: rgba(3, 10, 12, 0.45);
}

.evidence-grid dt,
.evidence-grid dd {
  margin: 0;
}

.evidence-grid dd {
  margin-top: 0.7rem;
  color: var(--paper-500);
  font-size: 0.86rem;
  line-height: 1.55;
}

.status {
  display: inline-flex;
  min-height: 1.7rem;
  padding: 0.22rem 0.52rem;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-confirmed {
  border-color: rgba(143, 226, 207, 0.5);
  background: rgba(105, 205, 185, 0.1);
  color: var(--verdigris-300);
}

.status-context {
  border-color: rgba(197, 202, 198, 0.4);
  background: rgba(197, 202, 198, 0.07);
  color: var(--paper-300);
}

.status-theory {
  border-color: rgba(241, 206, 136, 0.5);
  background: rgba(220, 174, 93, 0.1);
  color: var(--amber-300);
}

.source-desk,
.faq-section {
  margin-block: var(--section-space);
}

.source-desk {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(0deg, transparent 0 3rem, rgba(143, 226, 207, 0.025) 3rem calc(3rem + 1px)),
    rgba(3, 10, 12, 0.6);
}

.source-desk > p:not(.eyebrow) {
  max-width: 65ch;
  color: var(--paper-500);
}

.source-desk .source-list {
  margin-top: 1.5rem;
}

.source-list li > span {
  display: block;
  margin-top: 0.2rem;
  color: var(--paper-500);
  font-size: 0.82rem;
}

.external-mark {
  display: inline-block;
  color: var(--amber-300);
  font-family: var(--font-data);
  font-size: 0.82em;
  text-decoration: none;
}

.faq-list {
  display: grid;
  max-width: var(--reading);
  gap: 0.65rem;
}

.faq-list details {
  margin: 0;
}

.planner-intro {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.planner-intro > div {
  max-width: 47rem;
}

.planner-intro > div > :last-child {
  margin-bottom: 0;
}

.button-quiet,
button.button-quiet {
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
  color: var(--paper-300);
}

.button-quiet:hover,
button.button-quiet:hover {
  border-color: var(--verdigris-300);
  background: rgba(143, 226, 207, 0.08);
  color: var(--paper-50);
}

.route-tabs {
  display: flex;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  overflow-x: auto;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-1000);
  scrollbar-width: thin;
}

.route-tabs [role="tab"] {
  min-width: max-content;
  min-height: 2.8rem;
  padding: 0.62rem 0.9rem;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--paper-500);
}

.route-tabs [role="tab"]:hover {
  border-color: var(--line);
  background: rgba(143, 226, 207, 0.06);
  color: var(--paper-50);
  transform: none;
}

.route-tabs [role="tab"][aria-selected="true"] {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--verdigris-300);
}

.watch-planner .planner-summary {
  display: grid;
  margin: 0 0 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.65rem;
}

.watch-planner .planner-summary > div {
  display: grid;
  min-width: 0;
  padding: 0.8rem;
  gap: 0.2rem;
  border-top: 1px solid var(--line-strong);
  background: rgba(3, 10, 12, 0.5);
}

.watch-planner .planner-summary span {
  color: var(--paper-500);
  font-family: var(--font-data);
  font-size: 0.66rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.watch-planner .planner-summary strong {
  color: var(--paper-50);
  font-family: var(--font-data);
  font-size: 0.95rem;
}

.route-panel {
  padding-top: 1.5rem;
}

.route-panel > p {
  max-width: 68ch;
  color: var(--paper-500);
}

.watch-list > li {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 14, 17, 0.72);
}

.watch-list > li:hover {
  border-color: var(--line-strong);
  background: rgba(15, 34, 38, 0.9);
}

.watch-list > li:has(input:checked) {
  opacity: 0.68;
}

.watch-list > li:has(input:checked) .watch-copy strong {
  text-decoration: line-through;
  text-decoration-color: var(--verdigris-400);
}

.watch-list > li > label {
  display: grid;
  min-height: 4.75rem;
  margin: 0;
  padding: 0.85rem 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

.watch-list input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
}

.watch-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.watch-copy strong {
  color: var(--paper-50);
  line-height: 1.35;
}

.watch-copy > span {
  color: var(--paper-500);
  font-size: 0.84rem;
  line-height: 1.5;
}

.hero-dashboard,
.definition-panel,
.status-board {
  display: grid;
  margin-block: 2rem;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
}

.release-card,
.principles-card,
.not-this-card,
.theory-card,
.warning-card {
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.release-card > :last-child,
.principles-card > :last-child,
.not-this-card > :last-child,
.theory-card > :last-child,
.warning-card > :last-child {
  margin-bottom: 0;
}

.release-date {
  margin: 0.25rem 0 1.2rem;
  color: var(--paper-50);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.snapshot-list {
  display: grid;
  gap: 0.7rem;
}

.snapshot-list article {
  display: grid;
  padding: 1rem;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  border-top: 1px solid var(--line-strong);
  background: rgba(3, 10, 12, 0.42);
}

.snapshot-list article > div > :last-child {
  margin-bottom: 0;
}

.snapshot-list h2 {
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
}

.snapshot-number {
  color: var(--amber-300);
  font-family: var(--font-data);
  font-size: 0.7rem;
}

.guide-index,
.decision-section {
  margin-block: var(--section-space);
}

.guide-card > span:first-child {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--verdigris-300);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card > strong:last-child {
  color: var(--amber-300);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  margin-block: var(--section-space);
  grid-template-columns: minmax(0, 1.3fr) minmax(15rem, 0.7fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 0;
  padding: 0.65rem 0 0.65rem 1.7rem;
  border-top: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  top: 0.75rem;
  left: 0;
  color: var(--verdigris-300);
  content: "◇";
}

.not-this-card,
.theory-card,
.warning-card {
  border-left: 0.22rem solid var(--amber-400);
}

.table-note {
  max-width: 75ch;
  color: var(--paper-500);
  font-size: 0.82rem;
}

.numbered-grid {
  display: grid;
  margin: 1.5rem 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  counter-reset: decision;
}

.numbered-grid li {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border-top: 1px solid var(--line-strong);
  background: rgba(10, 24, 28, 0.55);
  counter-increment: decision;
}

.numbered-grid li > span:first-child {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--amber-300);
  font-family: var(--font-data);
  font-size: 0.72rem;
}

.numbered-grid li > div > :last-child,
.numbered-grid li > :last-child {
  margin-bottom: 0;
}

.numbered-grid h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
}

.numbered-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-board {
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.status-board .status-actions {
  display: grid;
  gap: 0.7rem;
}

.status-actions a {
  display: flex;
  min-height: 3.2rem;
  padding: 0.75rem 0.9rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(3, 10, 12, 0.42);
  color: var(--paper-300);
  text-decoration: none;
}

.status-actions a:hover {
  border-color: var(--line-strong);
  color: var(--verdigris-300);
}

.callout-band {
  display: flex;
  margin-block: var(--section-space);
  padding: clamp(1.25rem, 4vw, 2.2rem);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(115deg, rgba(105, 205, 185, 0.13), transparent 54%),
    var(--surface);
}

.callout-band > div > :last-child {
  margin-bottom: 0;
}

.callout-band .button {
  flex: 0 0 auto;
}

/* Contact and generic forms */
.form-grid,
.contact-form,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field,
.field {
  min-width: 0;
}

.form-field.full,
.field.full,
.form-actions {
  grid-column: 1 / -1;
}

.field-help,
.form-help {
  margin-top: 0.35rem;
  color: var(--paper-500);
  font-size: 0.82rem;
}

.form-status,
[role="status"],
[role="alert"] {
  margin-block: 0.75rem;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: var(--section-space);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-strong);
  background:
    linear-gradient(100deg, rgba(105, 205, 185, 0.055), transparent 34%),
    var(--ink-1000);
  color: var(--paper-500);
}

.site-footer::before {
  position: absolute;
  top: -1px;
  left: max(var(--gutter), calc((100vw - var(--content)) / 2));
  width: min(9rem, 35vw);
  height: 2px;
  background: linear-gradient(90deg, var(--verdigris-300) 0 56%, transparent 56% 64%, var(--amber-400) 64% 100%);
  content: "";
}

.footer-inner,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1.6fr) repeat(2, minmax(8rem, 0.7fr));
  gap: 2rem;
}

.footer-brand {
  max-width: 34rem;
}

.footer-title {
  color: var(--paper-50);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li,
.footer-links li {
  margin: 0.35rem 0;
}

.footer-nav a,
.footer-links a {
  color: var(--paper-300);
  font-size: 0.9rem;
}

.footer-bottom,
.copyright {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 0.69rem;
  line-height: 1.6;
}

/* Consent banner */
.cookie-banner,
[data-cookie-banner] {
  position: fixed;
  z-index: 500;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  display: grid;
  width: min(calc(100% - 2rem), 62rem);
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 1.35rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(4, 14, 17, 0.97);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.65);
  color: var(--paper-300);
  backdrop-filter: blur(1rem);
}

.cookie-banner p,
[data-cookie-banner] p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.cookie-banner .cookie-actions,
[data-cookie-banner] .cookie-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.cookie-settings-button,
button.cookie-settings-button {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--verdigris-300);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-transform: none;
}

/* Miscellaneous content patterns */
.split,
.two-column,
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}

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

.stat {
  padding: 1rem;
  border-top: 1px solid var(--line-strong);
  background: rgba(10, 24, 28, 0.46);
}

.stat-value {
  display: block;
  color: var(--paper-50);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.stat-label {
  color: var(--paper-500);
  font-family: var(--font-data);
  font-size: 0.67rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.toc,
.table-of-contents {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 24, 28, 0.55);
}

.toc-title {
  color: var(--paper-50);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state,
.not-found {
  display: grid;
  min-height: 50vh;
  padding-block: var(--section-space);
  align-content: center;
  justify-items: start;
}

.error-code {
  margin-bottom: 0.25rem;
  color: var(--verdigris-300);
  font-family: var(--font-data);
  font-size: clamp(3rem, 14vw, 9rem);
  font-weight: 200;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.muted {
  color: var(--paper-500);
}

.accent {
  color: var(--verdigris-300);
}

.measure {
  max-width: 65ch;
}

.flow > * + * {
  margin-top: 1.2rem;
}

@supports (text-wrap: balance) {
  h1,
  h2,
  h3,
  .lede,
  .hero-description {
    text-wrap: balance;
  }

  p {
    text-wrap: pretty;
  }
}

@media (min-width: 90rem) {
  :root {
    --content: 82rem;
  }

  .card-grid,
  .cards,
  .feature-grid,
  .guide-grid,
  .resource-grid {
    gap: 1.75rem;
  }
}

@media (max-width: 64rem) {
  .header-inner,
  .nav-shell {
    padding-block: 0.65rem;
    flex-wrap: wrap;
  }

  .site-nav,
  .primary-nav,
  nav[aria-label="Primary"] {
    width: 100%;
    order: 2;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .site-nav ul,
  .primary-nav ul,
  .nav-links {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }

  .hero-inner,
  .hero .container,
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(13rem, 0.8fr);
    gap: 2rem;
  }

  .hero::after {
    right: -10rem;
    width: 72vw;
    opacity: 0.55;
  }

  .card-grid,
  .cards,
  .feature-grid,
  .guide-grid,
  .resource-grid,
  .fact-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .numbered-grid,
  .numbered-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 46rem) {
  html {
    scroll-padding-top: 8.5rem;
  }

  .site-brand,
  .brand,
  .logo {
    max-width: 17rem;
  }

  .site-nav a,
  .primary-nav a,
  .nav-links a {
    min-height: 2.9rem;
    padding-inline: 0.7rem;
  }

  .hero {
    min-height: auto;
    padding-block: 4.25rem 4.75rem;
  }

  .hero-inner,
  .hero .container,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero::after {
    top: 52%;
    right: -11rem;
    width: 38rem;
    opacity: 0.28;
  }

  .hero-art,
  .hero-visual {
    width: min(100%, 28rem);
    justify-self: center;
  }

  .card-grid,
  .cards,
  .feature-grid,
  .guide-grid,
  .resource-grid,
  .fact-grid,
  .link-grid,
  .relationship-grid,
  .universe-grid,
  .map-grid,
  .relationship-map > ul,
  .universe-map > ul,
  .connection-map > ul,
  .split,
  .two-column,
  .content-grid,
  .footer-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-dashboard,
  .definition-panel,
  .status-board,
  .split-section {
    grid-template-columns: 1fr;
  }

  .callout-band {
    align-items: stretch;
    flex-direction: column;
  }

  .callout-band .button {
    align-self: start;
  }

  .evidence-legend {
    grid-template-columns: 1fr;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .planner-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .planner-intro .button {
    align-self: start;
  }

  .watch-planner .planner-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field.full,
  .field.full,
  .form-actions {
    grid-column: auto;
  }

  .cookie-banner,
  [data-cookie-banner] {
    grid-template-columns: 1fr;
  }

  .cookie-banner .cookie-actions,
  [data-cookie-banner] .cookie-actions {
    justify-content: stretch;
  }

  .cookie-banner .cookie-actions > *,
  [data-cookie-banner] .cookie-actions > * {
    flex: 1 1 9rem;
  }
}

@media (max-width: 32rem) {
  :root {
    --gutter: 1rem;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.55rem);
  }

  .hero-actions,
  .button-row,
  .actions,
  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions > *,
  .button-row > *,
  .actions > *,
  .cta-row > * {
    width: 100%;
  }

  .planner,
  .watch-planner,
  .planner-panel,
  .relationship-map,
  .universe-map,
  .connection-map {
    margin-inline: calc(var(--gutter) * -0.35);
  }

  .planner-item,
  .watch-item,
  .checklist-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .watch-list > li > label {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .planner-runtime,
  .item-runtime,
  .duration {
    grid-column: 2;
    white-space: normal;
  }

  .watch-list .runtime {
    grid-column: 2;
    white-space: normal;
  }

  .watch-planner .planner-summary {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .numbered-grid,
  .numbered-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --paper-300: #eef3ef;
    --paper-500: #d1d9d7;
    --line: rgba(232, 245, 240, 0.45);
    --line-strong: rgba(232, 245, 240, 0.72);
  }
}

@media (forced-colors: active) {
  .site-brand::before,
  .brand::before,
  .card::before,
  .feature-card::before,
  .guide-card::before,
  .resource-card::before,
  .fact-card::before,
  .link-card::before {
    forced-color-adjust: none;
  }

  .button,
  .btn,
  button,
  input,
  select,
  textarea,
  .card,
  .fact,
  .callout {
    border: 1px solid CanvasText;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  @page {
    margin: 1.5cm;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    min-width: 0;
    background: #fff !important;
    color: #111 !important;
    font-size: 10.5pt;
  }

  body::before,
  .site-header,
  .site-footer,
  .cookie-banner,
  [data-cookie-banner],
  .skip-link,
  .hero::after,
  .hero::before,
  .hero-art,
  .hero-visual,
  .button-row,
  .hero-actions,
  .planner-controls,
  .planner-toolbar,
  .form-actions {
    display: none !important;
  }

  main,
  .hero,
  .page-hero,
  .article-hero,
  .section,
  main > section:not(.hero) {
    min-height: 0;
    padding-block: 0.4cm;
    overflow: visible;
    border-color: #bbb;
    background: #fff !important;
  }

  .container,
  .site-shell,
  .hero-inner,
  .section-inner,
  .prose,
  .article-body,
  .legal-copy {
    width: 100%;
    max-width: none;
  }

  h1,
  h2,
  h3,
  h4,
  a,
  .eyebrow,
  .kicker,
  .fact-label,
  .source-label {
    color: #111 !important;
  }

  h1 {
    font-size: 28pt;
  }

  h2 {
    font-size: 20pt;
  }

  p,
  li,
  td,
  th,
  .muted,
  .last-updated {
    color: #222 !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--font-data);
    font-size: 8pt;
    font-weight: normal;
  }

  .card,
  .feature-card,
  .guide-card,
  .resource-card,
  .fact-card,
  .link-card,
  .fact,
  .fact-box,
  .source-box,
  .sources,
  .source-panel,
  .callout,
  .note,
  .notice,
  .relationship-map,
  .universe-map,
  .connection-map,
  .planner,
  .watch-planner,
  .planner-panel {
    break-inside: avoid;
    border-color: #888;
    background: #fff !important;
    color: #222 !important;
  }

  .card-grid,
  .cards,
  .feature-grid,
  .guide-grid,
  .resource-grid,
  .fact-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-wrap,
  .table-scroll,
  .comparison-table-wrapper,
  .comparison-scroll,
  table.comparison-table {
    overflow: visible;
    border-color: #777;
  }

  table,
  .table-wrap table,
  .table-scroll table,
  .comparison-table-wrapper table,
  .comparison-scroll table,
  table.comparison-table {
    min-width: 0;
    color: #111;
    font-size: 8.5pt;
  }

  thead th,
  tbody tr:nth-child(even),
  tbody tr:hover {
    background: #eee !important;
    color: #111 !important;
  }

  a {
    text-decoration: underline;
  }

  a[href^="#"]::after,
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after {
    content: "";
  }
}
