/* ==========================================================================
   palenthorn.com — "Cosmic Midnight Express"
   Theme reference: Railway (theme md/railway--5c32375f...)
   Display serif substituted (IBM Plex Serif has no Greek subset on
   Google Fonts — verified via METADATA.pb) → Noto Serif, same literary DNA.
   Mobile-first, full-bleed, fluid clamp() units.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Colors — Railway palette, kept verbatim */
  --deep-space: #13111c;      /* page background */
  --black-hole: #0d0c14;      /* darkest UI, code/manifest blocks */
  --surface: #1a191f;         /* card background */
  --surface-raised: #201f27;  /* one step up from surface */
  --crater: #33323e;          /* hairline borders */
  --starlight: #f7f7f8;       /* primary text / headings */
  --starlight-dim: #d0cfd2;   /* subheadings */
  --comet: #a1a0ab;           /* body copy */
  --asteroid: #868593;        /* helper text, metadata */
  --cosmic-lilac: #553f83;    /* primary CTA — only accent for action */
  --cosmic-lilac-hover: #6a4f9e;
  --supernova: #a05fcf;       /* focus rings / active states ONLY */
  --nebula-haze: #bf92ec;     /* decorative accent text */
  --success: #4a9c6d;
  --error: #d82c20;

  /* Typography */
  --font-display: 'Noto Serif', 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii — from theme spec */
  --radius-card: 12px;
  --radius-button: 8px;
  --radius-input: 6px;
  --radius-tag: 9999px;

  /* Fluid spacing */
  --gutter: clamp(18px, 5.5vw, 80px);
  --section-gap: clamp(56px, 10vw, 136px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--deep-space);
  color: var(--comet);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.95vw + 12px, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--starlight); margin: 0; font-weight: 500; }
p { margin: 0; }
input, textarea { font: inherit; }

::selection { background: var(--cosmic-lilac); color: var(--starlight); }

:focus-visible {
  outline: 2px solid var(--supernova);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Scroll reveal (progressive enhancement — class added by JS only,
   content is fully visible with no JS/no IntersectionObserver) ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Layout primitives ---- */
.section {
  padding: var(--section-gap) var(--gutter);
  position: relative;
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono), var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nebula-haze);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cosmic-lilac);
  box-shadow: 0 0 0 3px rgba(85, 63, 131, 0.35);
}
.section-title {
  font-size: clamp(28px, 3.2vw + 12px, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.section-lede {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--comet);
  font-size: clamp(15px, 0.4vw + 14px, 17px);
}
.measure { max-width: 68ch; }

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

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  background: var(--cosmic-lilac);
  color: var(--starlight);
  padding: 10px 16px;
  border-radius: var(--radius-button);
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--cosmic-lilac);
  color: var(--starlight);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-primary:hover { background: var(--cosmic-lilac-hover); }
.btn-secondary {
  background: transparent;
  color: var(--starlight);
  border: 1px solid var(--crater);
}
.btn-secondary:hover { border-color: var(--asteroid); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 17, 28, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--crater);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--starlight);
  letter-spacing: -0.01em;
}
.logo .logo-mark { color: var(--cosmic-lilac); }
.logo-tag {
  font-family: var(--font-mono), var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--asteroid);
  letter-spacing: 0.06em;
  display: none;
}
@media (min-width: 640px) { .logo-tag { display: inline; } }

.main-nav {
  display: none;
}
.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-list a {
  padding: 8px 14px;
  border-radius: var(--radius-button);
  font-size: 14px;
  color: var(--comet);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-list a:hover, .nav-list a.active { color: var(--starlight); background: var(--surface); }

.burger {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--crater);
  border-radius: var(--radius-button);
}
.burger svg { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .burger { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 65px;
  background: var(--deep-space);
  z-index: 99;
  padding: 24px var(--gutter);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 14px 12px;
  font-size: 18px;
  color: var(--starlight-dim);
  border-bottom: 1px solid var(--crater);
}
.mobile-menu .btn { margin-top: 20px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 9vw, 108px) var(--gutter) clamp(56px, 9vw, 120px);
  display: grid;
  gap: clamp(36px, 6vw, 64px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 180vw);
  height: 720px;
  background: radial-gradient(73% 138% at 50% 0%, rgba(170,10,170,0.28) 0%, rgba(109,29,189,0.16) 45%, rgba(56,29,189,0) 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow { color: var(--nebula-haze); }
.hero h1 {
  font-size: clamp(34px, 5vw + 12px, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--starlight);
}
.hero h1 em { font-style: italic; color: var(--nebula-haze); }
.hero-sub {
  margin-top: 20px;
  font-size: clamp(16px, 0.6vw + 14px, 19px);
  color: var(--starlight-dim);
  max-width: 56ch;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.trust-line {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--asteroid);
  font-family: var(--font-mono), var(--font-body);
}
.trust-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

/* Boarding-pass / manifest card — signature hero element (Railway motif) */
.manifest-card {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: min(100%, 380px);
  background: var(--black-hole);
  border: 1px solid var(--crater);
  border-radius: var(--radius-card);
  padding: 24px;
  font-family: var(--font-mono), var(--font-body);
}
.manifest-card .manifest-title {
  font-family: var(--font-mono), var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--asteroid);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.manifest-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--crater);
  font-size: 13px;
}
.manifest-row:first-of-type { border-top: none; }
.manifest-row dt { color: var(--asteroid); }
.manifest-row dd { margin: 0; color: var(--starlight-dim); text-align: right; }
.manifest-card .perforation {
  margin-top: 18px;
  height: 1px;
  border-top: 1px dashed var(--crater);
  position: relative;
}
.manifest-card .perforation::before,
.manifest-card .perforation::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--deep-space);
}
.manifest-card .perforation::before { left: -24px; }
.manifest-card .perforation::after { right: -24px; }
.manifest-stamp {
  margin-top: 18px;
  font-size: 11px;
  color: var(--cosmic-lilac);
  border: 1px solid var(--cosmic-lilac);
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  transform: rotate(-2deg);
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.4fr 1fr; align-items: center; }
}

/* ---- Crew brief (home) ---- */
.crew-brief {
  background: var(--surface);
  border-top: 1px solid var(--crater);
  border-bottom: 1px solid var(--crater);
}
.crew-brief-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 760px) {
  .crew-brief-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
}
.avatar-row { display: flex; gap: -8px; margin-bottom: 20px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--starlight);
  border: 2px solid var(--surface);
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.avatar.a1 { background: #4a3670; }
.avatar.a2 { background: #6a4f9e; }
.avatar.a3 { background: #362a4d; }
.crew-brief blockquote {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.2vw + 14px, 22px);
  color: var(--starlight);
  line-height: 1.45;
  margin: 0 0 16px;
  font-style: italic;
}
.crew-brief cite {
  font-style: normal;
  font-size: 13px;
  color: var(--asteroid);
  font-family: var(--font-mono), var(--font-body);
}
.crew-caveat {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--black-hole);
  border-left: 2px solid var(--cosmic-lilac);
  border-radius: 4px;
  font-size: 14px;
  color: var(--comet);
}

/* ---- Stat strip (departure-board motif) ---- */
.stat-strip {
  background: var(--black-hole);
  border-top: 1px solid var(--crater);
  border-bottom: 1px solid var(--crater);
  padding: clamp(32px, 5vw, 48px) var(--gutter);
}
.stat-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .stat-strip-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  position: relative;
  padding-left: 18px;
  border-left: 1px dashed var(--crater);
}
.stat-item:first-child { border-left: none; padding-left: 0; }
@media (max-width: 759px) {
  .stat-item:nth-child(odd) { border-left: none; padding-left: 0; }
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw + 14px, 40px);
  color: var(--starlight);
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--asteroid);
  font-family: var(--font-mono), var(--font-body);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ---- Games section ---- */
.games-note {
  margin-top: 8px;
  color: var(--asteroid);
  font-size: 14px;
}
.game-feature {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--crater);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.game-feature:hover { border-color: var(--asteroid); transform: translateY(-2px); }
@media (min-width: 760px) {
  .game-feature { grid-template-columns: 44% 1fr; }
}
.game-feature .game-media { position: relative; background: var(--black-hole); }
.game-feature .game-media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.game-feature .game-body { padding: clamp(22px, 3vw, 36px); }

.game-pair {
  display: grid;
  gap: 24px;
}
@media (min-width: 700px) {
  .game-pair { grid-template-columns: 1fr 1fr; }
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--crater);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.game-card:hover { border-color: var(--asteroid); transform: translateY(-2px); }
.game-card .game-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.game-card .game-body { padding: clamp(20px, 2.6vw, 28px); flex: 1; display: flex; flex-direction: column; }

.game-number {
  font-family: var(--font-mono), var(--font-body);
  font-size: 12px;
  color: var(--asteroid);
  letter-spacing: 0.1em;
}
.game-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 4px;
  flex-wrap: wrap;
}
.game-title-row h3 { font-size: clamp(20px, 1.6vw + 14px, 26px); }
.tag {
  font-family: var(--font-mono), var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  border: 1px solid var(--crater);
  color: var(--nebula-haze);
  white-space: nowrap;
}
.game-hook { color: var(--starlight-dim); font-size: 15px; margin-bottom: 18px; }

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--crater);
  border-bottom: 1px solid var(--crater);
  font-size: 13px;
}
.meta-list dt { color: var(--asteroid); display: inline; }
.meta-list dd { display: inline; margin: 0 0 0 4px; color: var(--starlight-dim); }
.meta-list > div { display: flex; gap: 4px; }

.game-block { margin-bottom: 18px; }
.game-block h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--asteroid);
  margin-bottom: 8px;
  font-weight: 600;
}
.game-block p { font-size: 14.5px; color: var(--comet); }
.tricks-list { display: flex; flex-direction: column; gap: 8px; }
.tricks-list li {
  padding-left: 18px;
  position: relative;
  font-size: 14.5px;
  color: var(--comet);
}
.tricks-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cosmic-lilac);
}

.honest-note {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13.5px;
  color: var(--asteroid);
  border-top: 1px dashed var(--crater);
  font-style: italic;
}
.game-cta { margin-top: 20px; }

/* ---- Pick / #1 section ---- */
.pick-card {
  position: relative;
  background: linear-gradient(155deg, var(--surface) 0%, var(--black-hole) 100%);
  border: 1px solid var(--cosmic-lilac);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  gap: 28px;
}
@media (min-width: 780px) {
  .pick-card { grid-template-columns: 1fr 1fr; align-items: center; }
}
.pick-ribbon {
  position: absolute;
  top: -14px; left: clamp(20px, 4vw, 40px);
  background: var(--cosmic-lilac);
  color: var(--starlight);
  font-size: 12px;
  font-family: var(--font-mono), var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-tag);
}
.pick-card img { border-radius: var(--radius-card); border: 1px solid var(--crater); }
.pick-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--starlight);
  font-size: clamp(18px, 1.4vw + 13px, 23px);
  line-height: 1.5;
  margin: 14px 0 16px;
}

/* ---- Rejected games (honest, no dark patterns) ---- */
.reject-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--crater);
  border: 1px solid var(--crater);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.reject-item {
  background: var(--surface);
  padding: clamp(18px, 2.6vw, 26px) clamp(20px, 3vw, 28px);
  border-left: 3px solid var(--error);
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .reject-item { grid-template-columns: 160px 1fr; align-items: start; }
}
.reject-tag {
  font-family: var(--font-mono), var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--error);
}
.reject-item h3 {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--starlight);
  margin-bottom: 6px;
}
.reject-item p { font-size: 14.5px; color: var(--comet); }

/* ---- Non-commercial section ---- */
.noncommercial {
  background: var(--black-hole);
}
.nc-grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 700px) { .nc-grid { grid-template-columns: repeat(3, 1fr); } }
.nc-item {
  border: 1px solid var(--crater);
  border-radius: var(--radius-card);
  padding: 22px;
  background: var(--deep-space);
  transition: border-color 0.2s ease;
}
.nc-item:hover { border-color: var(--success); }
.nc-item svg { width: 22px; height: 22px; color: var(--success); margin-bottom: 12px; }
.nc-item h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--starlight); margin-bottom: 8px; }
.nc-item p { font-size: 14px; color: var(--comet); }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--crater); border: 1px solid var(--crater); border-radius: var(--radius-card); overflow: hidden; }
.faq-item { background: var(--surface); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--starlight);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono), var(--font-body);
  font-size: 20px;
  color: var(--asteroid);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { content: "−"; color: var(--cosmic-lilac); }
.faq-answer {
  padding: 0 22px 20px;
  color: var(--comet);
  font-size: 14.5px;
  max-width: 68ch;
}
.faq-index { font-family: var(--font-mono), var(--font-body); color: var(--asteroid); margin-right: 10px; font-size: 13px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--crater);
  padding: var(--section-gap) var(--gutter) clamp(24px, 4vw, 40px);
  background: var(--black-hole);
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--comet); max-width: 42ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--asteroid);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--comet); }
.footer-col a:hover { color: var(--starlight); }
.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--crater);
}
.footer-disclaimer {
  font-size: 12.5px;
  color: var(--asteroid);
  line-height: 1.6;
  max-width: 90ch;
}
.footer-bottom {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--asteroid);
}

/* ---- Generic content page layout ---- */
.page-hero {
  padding: clamp(44px, 8vw, 96px) var(--gutter) clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--crater);
}
.page-hero .eyebrow { color: var(--nebula-haze); }
.page-hero h1 {
  font-size: clamp(30px, 3.6vw + 14px, 48px);
  line-height: 1.14;
  max-width: 18ch;
}
.page-hero .section-lede { max-width: 60ch; }

.content-block { max-width: 68ch; }
.content-block h2 {
  font-size: clamp(22px, 1.8vw + 14px, 28px);
  margin: clamp(36px, 5vw, 56px) 0 14px;
}
.content-block h2:first-child { margin-top: 0; }
.content-block p { margin-bottom: 16px; font-size: 15.5px; color: var(--comet); }
.content-block p:last-child { margin-bottom: 0; }
.content-block ul.styled-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.content-block ul.styled-list li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: var(--comet);
}
.content-block ul.styled-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cosmic-lilac);
}
.content-block strong { color: var(--starlight-dim); }

/* Timeline (poioi-eimaste) */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.timeline-item {
  padding: 20px 0 20px 28px;
  border-left: 1px solid var(--crater);
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute; left: -5px; top: 24px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cosmic-lilac);
  border: 2px solid var(--deep-space);
}
.timeline-year {
  font-family: var(--font-mono), var(--font-body);
  font-size: 13px;
  color: var(--nebula-haze);
  letter-spacing: 0.05em;
}
.timeline-item h3 { font-size: 18px; margin: 6px 0 8px; }
.timeline-item p { font-size: 14.5px; color: var(--comet); }

.crew-cards { display: grid; gap: 24px; margin-top: 12px; }
@media (min-width: 700px) { .crew-cards { grid-template-columns: repeat(3, 1fr); } }
.crew-card {
  background: var(--surface);
  border: 1px solid var(--crater);
  border-radius: var(--radius-card);
  padding: 26px;
}
.crew-card .avatar { width: 56px; height: 56px; font-size: 19px; margin-left: 0; margin-bottom: 16px; }
.crew-card h3 { font-size: 18px; margin-bottom: 2px; }
.crew-card .crew-role { font-size: 13px; color: var(--nebula-haze); font-family: var(--font-mono), var(--font-body); margin-bottom: 12px; }
.crew-card p { font-size: 14px; color: var(--comet); }

/* Rig spec table (pos-paizoume) */
.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--crater); }
.spec-table th { color: var(--asteroid); font-weight: 600; width: 40%; font-family: var(--font-body); }
.spec-table td { color: var(--starlight-dim); }

.criteria-grid { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 700px) { .criteria-grid { grid-template-columns: 1fr 1fr; } }
.criteria-card {
  border: 1px solid var(--crater);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--surface);
}
.criteria-card.out { border-color: rgba(216, 44, 32, 0.4); }
.criteria-card h3 { font-size: 15px; font-family: var(--font-body); font-weight: 600; margin-bottom: 8px; }
.criteria-card p { font-size: 14px; color: var(--comet); }

/* ---- Forms ---- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--crater);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3.4vw, 40px);
  max-width: 560px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--starlight-dim);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--black-hole);
  border: 1px solid var(--crater);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  color: var(--starlight);
  font-size: 15px;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--supernova); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--comet);
}
.form-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cosmic-lilac); flex-shrink: 0; }
.form-check a { color: var(--nebula-haze); text-decoration: underline; }
.form-note { font-size: 12.5px; color: var(--asteroid); margin-top: 10px; }
.contact-details { margin-top: 28px; }
.contact-details dt { font-size: 12px; color: var(--asteroid); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-details dd { margin: 0 0 18px; font-size: 15px; color: var(--starlight-dim); }

/* ---- Thank-you / 404 ---- */
.center-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-gap) var(--gutter);
}
.center-page-inner { max-width: 520px; }
.center-page .code {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  color: var(--cosmic-lilac);
  line-height: 1;
  margin-bottom: 8px;
}
.center-page h1 { font-size: clamp(24px, 2.4vw + 14px, 34px); margin-bottom: 14px; }
.center-page p { color: var(--comet); margin-bottom: 28px; font-size: 15.5px; }

/* ---- Cookie banner (Mode B — three equal buttons) ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--black-hole);
  border-top: 1px solid var(--crater);
  padding: 20px var(--gutter);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cookie-text { max-width: 62ch; font-size: 13.5px; color: var(--comet); }
.cookie-text a { color: var(--nebula-haze); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Three equally-weighted buttons — no visual bias toward Accept.
   Reject must be exactly as easy to click as Accept. */
.btn-cookie {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--radius-button);
  border: 1px solid var(--crater);
  background: var(--surface-raised);
  color: var(--starlight);
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-cookie:hover { border-color: var(--supernova); background: var(--surface); }
.btn-cookie[data-consent-accept] { border-color: var(--cosmic-lilac); }

/* Preferences panel */
.pref-panel {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(13, 12, 20, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.pref-panel.is-visible { display: flex; }
.pref-panel-card {
  background: var(--surface);
  border: 1px solid var(--crater);
  border-radius: var(--radius-card);
  padding: clamp(22px, 4vw, 36px);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.pref-panel-card h2 { font-size: 22px; margin-bottom: 8px; }
.pref-panel-card > p { font-size: 14px; color: var(--comet); margin-bottom: 20px; }
.pref-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--crater);
}
.pref-item:first-of-type { border-top: none; }
.pref-item h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--starlight); margin-bottom: 4px; }
.pref-item p { font-size: 13px; color: var(--asteroid); }
.toggle {
  position: relative;
  width: 40px; height: 22px;
  flex-shrink: 0;
  background: var(--crater);
  border-radius: var(--radius-tag);
  border: none;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--comet);
  transition: transform 0.16s ease, background 0.16s ease;
}
.toggle[aria-pressed="true"] { background: var(--cosmic-lilac); }
.toggle[aria-pressed="true"]::after { transform: translateX(18px); background: var(--starlight); }
.toggle[disabled] { opacity: 0.6; cursor: not-allowed; }
.pref-panel-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Utility */
.mt-0 { margin-top: 0; }
