:root {
  --bg: #11161b;
  --bg-soft: #171d22;
  --panel: rgba(255, 255, 255, 0.04);
  --cream: #f7f1e6;
  --cream-deep: #e9dfcd;
  --sand: #efcf8e;
  --sand-soft: #f3e1ba;
  --moss: #305440;
  --moss-deep: #20382b;
  --mist: #d8e3db;
  --ink: #19241d;
  --text: #edf2ee;
  --muted: #aab8af;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(239, 207, 142, 0.12), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(87, 128, 104, 0.18), transparent 24%),
    linear-gradient(180deg, #11161b 0%, #0c1115 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 95%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 22, 27, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sand) 0%, #d6b36e 100%);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.95rem;
}

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

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.panel,
.section-block {
  margin-bottom: 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
  padding: 42px;
  border: 1px solid rgba(244, 237, 225, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 14%, rgba(239, 207, 142, 0.22), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(80, 120, 94, 0.24), transparent 20%),
    linear-gradient(135deg, rgba(247, 241, 230, 0.98), rgba(226, 238, 229, 0.94));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 84, 64, 0.2) 0%, rgba(48, 84, 64, 0) 70%);
  transform: translate3d(var(--hero-shift-x, 0), var(--hero-shift-y, 0), 0);
  transition: transform 250ms ease;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.eyebrow,
.status-pill,
.signal-label,
.entry-label,
.chapter-range,
.system-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(48, 84, 64, 0.12);
  color: var(--moss-deep);
}

.status-pill {
  background: rgba(255, 255, 255, 0.62);
  color: #4b6052;
}

.hero h1,
.section-heading h2,
.closing-panel h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
}

.hero-lead,
.section-heading p,
.signal-card p,
.chapter-card p,
.entry-card p,
.system-panel li,
.run-card,
.closing-panel p {
  line-height: 1.55;
}

.hero-lead {
  max-width: 58ch;
  margin: 22px 0 0;
  color: #43574a;
  font-size: 1.08rem;
}

.hero-actions,
.system-links,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--moss) 0%, #476d58 100%);
  color: #f8f4ec;
}

.button-secondary {
  border-color: rgba(25, 36, 29, 0.14);
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.metric-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(25, 36, 29, 0.08);
}

.metric-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.metric-label {
  color: #5b6d61;
  font-size: 0.92rem;
}

.hero-aside {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
}

.signal-card {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.signal-card-dark {
  background: linear-gradient(135deg, #274d3a 0%, #446a54 100%);
  color: #f7f3ea;
}

.signal-card-dark .signal-label {
  background: rgba(255, 255, 255, 0.14);
  color: #e7efe9;
}

.signal-card-light {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(48, 84, 64, 0.12);
}

.signal-card-light .signal-label {
  background: rgba(48, 84, 64, 0.08);
  color: #5f7164;
}

.signal-card h2 {
  margin: 16px 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.signal-card p {
  margin: 0;
  color: inherit;
  font-size: 1rem;
}

.orbital-notes {
  position: relative;
  min-height: 116px;
}

.orbital-notes span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: #435649;
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.orbital-notes span:nth-child(1) { top: 8px; left: 8px; }
.orbital-notes span:nth-child(2) { top: 0; right: 68px; }
.orbital-notes span:nth-child(3) { top: 56px; left: 96px; }
.orbital-notes span:nth-child(4) { top: 62px; right: 0; }
.orbital-notes span:nth-child(5) { bottom: 0; left: 24px; }
.orbital-notes span:nth-child(6) { bottom: 8px; right: 116px; }

.section-block {
  padding: 24px 4px;
}

.section-block-tight {
  padding-bottom: 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--text);
}

.section-heading p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.entry-grid,
.systems-grid,
.run-grid {
  display: grid;
  gap: 18px;
}

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

.entry-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 320px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
}

.entry-card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.entry-card p {
  margin: 0;
  font-size: 1rem;
}

.entry-link {
  align-self: end;
  width: fit-content;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-card-green {
  background: linear-gradient(160deg, #304f3f 0%, #58705d 100%);
  color: #f7f3ea;
}

.entry-card-green .entry-label {
  background: rgba(255, 255, 255, 0.12);
  color: #e5eee8;
}

.entry-card-green p {
  color: #deebe2;
}

.entry-card-green .entry-link {
  background: #f5e5ca;
  color: #5f4621;
}

.entry-card-cream {
  background: linear-gradient(160deg, rgba(247, 241, 230, 0.98), rgba(232, 238, 230, 0.92));
  color: var(--ink);
}

.entry-card-cream .entry-label {
  background: rgba(48, 84, 64, 0.08);
  color: #5d6f63;
}

.entry-card-cream p {
  color: #53665a;
}

.entry-card-cream .entry-link {
  background: #305440;
  color: #f7f3ea;
}

.entry-card-sand {
  background: linear-gradient(160deg, #f3e1ba 0%, #e7c980 100%);
  color: #332516;
}

.entry-card-sand .entry-label {
  background: rgba(255, 255, 255, 0.36);
  color: #7a5822;
}

.entry-card-sand p {
  color: #5f4a2b;
}

.entry-card-sand .entry-link {
  background: #305440;
  color: #f7f3ea;
}

.chapter-river {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.chapter-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23, 29, 34, 0.92), rgba(15, 19, 23, 0.94));
}

.chapter-card h3,
.system-panel h3,
.run-card h3 {
  margin: 16px 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.chapter-card p,
.system-panel ul,
.run-card pre {
  margin: 0;
  color: var(--muted);
}

.chapter-card a,
.system-links a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--mist);
  font-weight: 700;
}

.chapter-card-featured {
  background:
    radial-gradient(circle at top right, rgba(239, 207, 142, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(34, 42, 33, 0.98), rgba(20, 27, 22, 0.98));
  border-color: rgba(239, 207, 142, 0.22);
}

.spotlight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 18%, rgba(239, 207, 142, 0.12), transparent 24%),
    linear-gradient(160deg, rgba(247, 241, 230, 0.98), rgba(232, 238, 230, 0.92));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.spotlight-panel h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.spotlight-panel p {
  color: #475a4e;
  line-height: 1.6;
}

.spotlight-visual {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(28, 45, 36, 0.08);
}

.spotlight-badge-row,
.spotlight-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spotlight-chip,
.spotlight-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.spotlight-chip {
  background: rgba(48, 84, 64, 0.09);
  color: #395342;
}

.spotlight-node {
  background: linear-gradient(135deg, #f3e1ba 0%, #e4c16f 100%);
  color: #5d441e;
}

.spotlight-caption {
  margin: 0;
  font-weight: 700;
}

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

.system-panel,
.run-card,
.closing-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.system-panel {
  padding: 28px;
}

.system-panel-dark {
  background: linear-gradient(155deg, #2a4938 0%, #1d2f25 100%);
}

.system-panel-light {
  background: linear-gradient(160deg, rgba(247, 241, 230, 0.98), rgba(232, 238, 230, 0.92));
  color: var(--ink);
}

.system-panel ul {
  padding-left: 18px;
}

.system-panel li + li {
  margin-top: 10px;
}

.system-panel-light ul,
.system-panel-light .system-links a {
  color: #4f6256;
}

.system-links {
  margin-top: 22px;
}

.system-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.system-panel-light .system-links a {
  background: rgba(48, 84, 64, 0.08);
}

.run-card {
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(180deg, rgba(19, 25, 30, 0.95), rgba(12, 16, 20, 0.98));
}

.run-card pre {
  overflow-x: auto;
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #dfe9e2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}

.closing-panel {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(239, 207, 142, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(23, 29, 34, 0.92), rgba(14, 19, 23, 0.96));
}

.closing-panel p {
  max-width: 52ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px 0;
  color: #7c8b82;
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms ease, transform 480ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero,
  .spotlight-panel,
  .systems-grid,
  .run-grid,
  .entry-grid,
  .chapter-river {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 34px;
  }

  .hero h1 {
    max-width: 11ch;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max));
    padding-top: 16px;
  }

  .site-header,
  .closing-panel,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 26px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .orbital-notes {
    min-height: 164px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
    border-radius: 24px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .entry-card,
  .system-panel,
  .run-card,
  .closing-panel,
  .spotlight-panel {
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .section-heading h2,
  .closing-panel h2 {
    font-size: 2.3rem;
  }

  .entry-card h3 {
    font-size: 2.35rem;
  }

  .metric-value {
    font-size: 1.9rem;
  }
}
