# Author: Yogabrata Mukhopadhyay
# Organization: Brahmexa
# Copyright: Copyright (c) 2026 Brahmexa. All rights reserved.
/*
  Design tokens — Meenananda / Brahmando
  Cosmic chrome (indigo night, slow orbits) + parchment reading surfaces.
  Body copy never sits on a photograph or on low-contrast slate.
*/

:root {
  /* Cosmos */
  --bg: #07111f;
  --bg-soft: #0c1a2e;
  --indigo: #07111f;
  --indigo-2: #12233a;
  --cyan: #0891b2;
  --cyan-light: #67e8f9;
  --line: rgba(212, 175, 90, 0.22);
  --line-strong: rgba(212, 175, 90, 0.42);

  /* Reading (ivory / ink) — WCAG AA+ for body */
  --read-bg: #f6efe2;
  --read-bg-2: #fffaf1;
  --read-ink: #1c1917;
  --read-muted: #44403c;
  --read-faint: #57534e;
  --read-line: rgba(28, 25, 23, 0.12);

  /* Devotional accents */
  --vermillion: #b42318;
  --vermillion-deep: #9f1239;
  --gold: #b8860b;
  --gold-soft: #e4c56a;
  --earth: #3f6212;
  --earth-soft: #ecfccb;

  /* Legacy aliases used in templates */
  --ink: #f4efe6;
  --ink-soft: #d6d3d1;
  --ink-mute: #a8a29e;
  --muted: #d6d3d1;
  --paper: var(--read-bg);
  --paper-2: var(--read-bg-2);
  --panel: var(--read-bg);
  --lotus: #9f1239;
  --river: #0e7490;
  --orange: #c2410c;

  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --bn: "Noto Serif Bengali", "Nirmala UI", serif;
  --max: 1120px;
  --narrow: 68ch;
  --radius: 18px;
  --radius-full: 999px;
  --header-h: 76px;
  --shadow: 0 18px 40px rgba(7, 17, 31, 0.18);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --motion: 120s;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: #020617;
}
body {
  margin: 0;
  color: #f6efe2;
  background-color: #020617;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(8, 145, 178, 0.2), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(180, 35, 24, 0.14), transparent 28%),
    radial-gradient(circle at 50% 120%, rgba(212, 160, 23, 0.08), transparent 42%),
    linear-gradient(180deg, #0b1a2e 0%, #020617 55%);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100%;
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: #e4c56a; text-underline-offset: 0.18em; }
.site-header > .header-inner > .brand,
.site-footer a, .hero a, .page-hero a, .universe-section a {
  color: var(--gold-soft);
}
.site-header .nav a, .site-header .nav details summary {
  color: #fffef8;
}
.site-header a:hover, .site-footer a:hover { color: #fff8ea; }
.reading-sheet a, .panel a, .card a, .prose a, .today-panel a, .moon a, .event-card a, .product-card a, .faq-item a, .orbit-legend a {
  color: var(--vermillion);
}
.reading-sheet a:hover, .panel a:hover, .card a:hover, .prose a:hover {
  color: var(--vermillion-deep);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.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 {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--read-bg);
  color: var(--read-ink);
  padding: 0.5rem 0.9rem;
  z-index: 1000;
  border-radius: var(--radius-full);
}
.skip:focus { top: 12px; }

#cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: min(70vw, 720px);
  aspect-ratio: 1;
  left: -18%;
  bottom: 6%;
  box-shadow: 0 0 0 1px rgba(228, 197, 106, 0.16), 0 0 0 48px rgba(8, 145, 178, 0.05);
}
body::after {
  width: min(42vw, 420px);
  aspect-ratio: 1;
  right: -8%;
  top: 28%;
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.16);
}

.temple-band {
  position: relative;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, var(--vermillion-deep), var(--gold-soft) 40%, var(--cyan) 70%, var(--vermillion) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 17, 31, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner, .wrap, .footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: radial-gradient(circle at 30% 30%, #fff8ea, #e8d7b0 70%);
  border-radius: var(--radius-full);
  padding: 0.28rem 1rem 0.28rem 0.32rem;
  border: 1px solid rgba(240, 215, 140, 0.55);
}
.brand img {
  height: 44px;
  width: auto;
  max-width: min(240px, 48vw);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--indigo-2);
  color: #fff8ea;
  border-radius: var(--radius-full);
  padding: 0.55rem 0.95rem;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav a, .nav details summary {
  text-decoration: none;
  color: #fffef8;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.nav a:hover, .nav a[aria-current="page"], .nav details[open] summary {
  color: #fffef8;
  background: rgba(228, 197, 106, 0.28);
}
.nav details summary::-webkit-details-marker { display: none; }
.nav details { position: relative; }
.nav details ul {
  position: absolute;
  left: 0;
  margin: 0.35rem 0 0;
  padding: 0.45rem;
  list-style: none;
  background: #07111f;
  border: 2px solid #e4c56a;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  min-width: 260px;
  z-index: 50;
}
.nav details ul a {
  display: block;
  color: #fffef8 !important;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}
.nav details ul a:hover, .nav details ul a[aria-current="page"] {
  background: rgba(228, 197, 106, 0.22);
  color: #fffef8 !important;
}
.btn-donate {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #1c1917 !important;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(28, 25, 23, 0.12);
}
.btn-donate:hover { filter: brightness(1.05); color: #1c1917 !important; }

main { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: grid;
  align-items: end;
  color: #fffaf1;
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-media img, .hero-media video, .hero-media picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-media picture { display: block; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.35) 0%, rgba(7, 17, 31, 0.55) 42%, rgba(7, 17, 31, 0.92) 100%);
}
.hero-copy {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 3.4rem;
}
.hero-copy .lede,
.hero-copy .kicker,
.hero h1 {
  text-shadow: 0 2px 18px rgba(7, 17, 31, 0.55);
}
.kicker, .eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin: 0 0 0.7rem;
}
.hero h1, .page-hero h1, .display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  color: #fffaf1;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  max-width: 16ch;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 46ch;
  color: #f5f0e6;
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero .btn-row {
  background: rgba(7, 17, 31, 0.72);
  padding: 0.45rem;
  border-radius: 999px;
  width: fit-content;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: var(--radius-full);
  padding: 0.72rem 1.2rem;
  min-height: 44px;
  font-weight: 600;
  border: 1px solid transparent;
  font-family: var(--sans);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #1c1917 !important;
}
.btn-gold:hover { filter: brightness(1.04); color: #1c1917 !important; }
.btn-ghost {
  background: rgba(7, 17, 31, 0.45);
  color: #fffaf1 !important;
  border-color: rgba(228, 197, 106, 0.45);
}
.btn-ghost:hover { background: rgba(7, 17, 31, 0.7); }
.btn-ink {
  background: var(--vermillion);
  color: #fff !important;
}
.btn-ink:hover { background: var(--vermillion-deep); color: #fff !important; }
.btn-line {
  border-color: var(--read-line);
  color: var(--read-ink) !important;
  background: var(--read-bg-2);
}
.hero .btn-line, .page-hero .btn-line {
  border-color: rgba(228, 197, 106, 0.45);
  color: #fffaf1 !important;
  background: rgba(7, 17, 31, 0.4);
}

.section { padding: var(--space-5) 0; position: relative; }
.section-tight { padding: 2.2rem 0; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
  color: #fffef8;
}
.section > .wrap > h2,
.section > .wrap > .eyebrow,
.universe-section h2,
.page-hero h1 {
  color: #fffef8;
  text-shadow: 0 2px 18px #020617;
}
.section .intro {
  max-width: var(--narrow);
  color: #e8e0d0;
  margin-bottom: 1.5rem;
}

/* Reading panels stay rectangular. Circles are markers, not text boxes. */
.moon, .prose {
  background: #f7f0e2;
  color: #1a1612;
  border: 2px solid #e4c56a;
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  max-width: 72ch;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.prose p, .prose li, .moon p { color: #1a1612; margin: 0 0 1rem; max-width: none; }
.prose h2, .prose h3 { font-family: var(--serif); color: #1a1612; margin: 1.4rem 0 0.45rem; }
.prose ul, .prose ol { color: #1a1612; }

.card, .today-panel, .event-card, .product-card, .faq-item, .pillar, .orbit-legend li {
  display: grid;
  grid-template-columns: 2.85rem 1fr;
  column-gap: 1rem;
  row-gap: 0.2rem;
  align-items: start;
  background: transparent;
  color: #f6efe2;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  width: 100%;
  max-width: none;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0 0.85rem;
  text-align: left;
  box-shadow: none;
}
.card::before, .today-panel::before, .event-card::before, .product-card::before, .faq-item::before, .pillar::before, .orbit-legend li::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / -1;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  border: 3px solid #e4c56a;
  background:
    radial-gradient(circle at 32% 28%, #fff8ea, #e4c56a 42%, #9f1239 100%);
  box-shadow: 0 0 0 6px rgba(228, 197, 106, 0.14);
}
.card > *, .today-panel > *, .event-card > *, .product-card > *, .faq-item > *, .pillar > *, .orbit-legend li > * {
  grid-column: 2;
}
.card:has(.frame)::before, .card:has(picture)::before, .card:has(img)::before {
  display: none;
}
.card .frame, .card picture, .card img {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 2.75rem;
  height: 2.75rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0.15rem 0 0;
  border: 3px solid #e4c56a;
}
.card h3, .today-panel h3, .event-card h2, .event-card h3, .product-card h3, .pillar h3, .faq-item h2 {
  color: #fffef8;
  font-family: var(--serif);
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  line-height: 1.25;
}
.card p, .today-panel p, .event-card p, .product-card p, .faq-item p, .orbit-legend p, .pillar p {
  color: #e8e0d0;
  margin: 0.2rem 0 0;
  max-width: 68ch;
}
.card a, .today-panel a, .event-card a, .product-card a, .orbit-legend a, .faq-item a {
  color: #fde68a !important;
  font-weight: 700;
}
.prose a, .moon a, .reading-sheet a, .panel a {
  color: #9f1239 !important;
}

.reading-sheet, .panel, .quote-block {
  background: #f7f0e2;
  color: #1a1612;
  border: 2px solid #e4c56a;
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.quote-block h2, .reading-sheet h2, .panel h2 { color: #1a1612; font-family: var(--serif); }
.reading-sheet p, .panel p { color: #1a1612; }
.bn {
  font-family: var(--bn);
  font-size: 1.12rem;
  line-height: 1.8;
  color: #e8e0d0;
}
.prose .bn, .moon .bn { color: #1a1612; }

.today-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1rem;
}
.today-panel h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  color: #fffef8;
}

/* Orbit — Brahmando universe */
.universe-section {
  padding: 2rem 0 3.4rem;
  background:
    radial-gradient(circle at 50% 48%, rgba(228, 197, 106, 0.1), transparent 42%),
    radial-gradient(circle at 50% 48%, rgba(8, 145, 178, 0.08), transparent 62%);
}
.orbit-stage {
  position: relative;
  width: min(860px, 96vw);
  aspect-ratio: 1;
  margin: 0.4rem auto 1.6rem;
}
.orbit-guides { position: absolute; inset: 0; pointer-events: none; }
.orbit-ring-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 1px rgba(228, 197, 106, 0.55),
    0 0 40px rgba(228, 197, 106, 0.18);
}
.orbit-ring-guide.outer {
  width: 96%;
  height: 96%;
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.28);
}
.orbit-spin {
  position: absolute;
  inset: 0;
  animation: uni-orbit-spin var(--motion) linear infinite;
  transform-origin: 50% 50%;
}
@keyframes uni-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.orbit-stage:hover .orbit-spin,
.orbit-stage:focus-within .orbit-spin {
  animation-play-state: paused;
}
.sun {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  transform: translate(-50%, -50%);
  width: min(200px, 36vw);
  text-decoration: none;
  color: #fffaf1;
  text-align: center;
}
.sun-disc {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #1c1917;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 0 0 8px rgba(228, 197, 106, 0.12), 0 0 40px rgba(184, 134, 11, 0.28);
}
.sun-disc picture, .sun-disc img,
.planet-body picture, .planet-body img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
}
.sun-label {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.planet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  margin: -54px 0 0 -54px;
  transform: rotate(var(--a)) translate(14.6rem) rotate(calc(var(--a) * -1));
  text-decoration: none;
  pointer-events: auto;
  z-index: 6;
}
.planet-body {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e4c56a;
  background: var(--planet, #3f6212);
}
.planet:hover .planet-body,
.planet:focus-visible .planet-body {
  border-color: #fffaf1;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.35);
}
.orbit-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
.orbit-legend li {
  font-size: 1rem;
  padding: 0.2rem 0;
  max-width: none;
  margin: 0;
}
.orbit-legend a {
  color: #fde68a !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  justify-content: flex-start;
}
.orbit-legend p { font-size: 0.95rem; color: #e8e0d0; }
.planet-name {
  display: block;
  margin-top: 0.4rem;
  color: #fffef8;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 12px #020617;
  width: 108px;
}
.planet-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.6rem;
  margin: 1.2rem 0 1.8rem;
}
.planet-field .card, .today-grid .today-panel {
  max-width: none;
  margin-bottom: 0.4rem;
}

.pillars, .grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1rem;
}
.pillars, .grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.num {
  font-family: var(--serif);
  color: var(--vermillion);
  font-size: 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
}
.split > div > picture,
.split > div > img,
.split > figure picture,
.split > figure img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  overflow: hidden;
  border: 3px solid #e4c56a;
  box-shadow: 0 0 0 8px rgba(228, 197, 106, 0.12);
  margin-bottom: 0.7rem;
}
.frame {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 0 0 6px rgba(228, 197, 106, 0.18), var(--shadow);
  background: #1c1917;
}
.frame img, .frame video, .frame picture {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.caption, .frame figcaption {
  font-size: 0.95rem;
  color: #e8e0d0;
  margin-top: 0.5rem;
  text-align: center;
}
.moon .caption, .prose .caption { color: #44403c; }

.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.35;
  margin: 0;
  color: var(--read-ink);
}
.quote-block cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--vermillion);
  font-style: normal;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: center;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  grid-column: span 4;
  aspect-ratio: 1;
  border: 3px solid rgba(228, 197, 106, 0.4);
}
.gallery-grid a:nth-child(1) { grid-column: span 5; }
.gallery-grid a:nth-child(2) { grid-column: span 3; }
.gallery-grid img, .gallery-grid picture {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
}

.video-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 1rem; }
.embed {
  position: relative;
  aspect-ratio: 1;
  background: #1c1917;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e4c56a;
  box-shadow: 0 0 0 10px rgba(228, 197, 106, 0.12);
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-list { display: grid; gap: 0.65rem; }
.video-list a {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 0.8rem;
  text-decoration: none;
  color: #1a1612 !important;
  padding: 0.45rem;
  border-radius: 999px;
  background: #f7f0e2;
  border: 2px solid #e4c56a;
  align-items: center;
  min-height: 44px;
}
.video-list img { border-radius: 50%; width: 4.8rem; height: 4.8rem; object-fit: cover; }
.video-list small { color: #44403c; }

.page-hero {
  position: relative;
  padding: 3rem 0 1.6rem;
  overflow: hidden;
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::before {
  width: min(560px, 88vw);
  aspect-ratio: 1;
  right: -10%;
  top: -48%;
  box-shadow: 0 0 0 1px rgba(228, 197, 106, 0.32), 0 0 90px rgba(228, 197, 106, 0.12);
}
.page-hero::after {
  width: min(300px, 52vw);
  aspect-ratio: 1;
  right: 7%;
  top: -14%;
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.28);
}
.page-hero h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); max-width: 18ch; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #d6d3d1;
  margin-bottom: 0.9rem;
}
.crumbs a { color: var(--gold-soft); }
.note, .status-pill {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  justify-self: start;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.status-upcoming { background: var(--earth-soft); color: var(--earth); }
.status-past { background: #e7e5e4; color: #44403c; }
.status-standing { background: #fee2e2; color: var(--vermillion-deep); }
.callout {
  background: #102033;
  color: #f7f0e2;
  border: 2px solid #e4c56a;
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  margin: 1.2rem 0;
}

.form {
  display: grid;
  gap: 0.85rem;
  background: #102033;
  color: #f7f0e2;
  border: 2px solid #e4c56a;
  border-radius: 18px;
  padding: 1.5rem 1.4rem 1.7rem;
  margin-top: 1.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.form label, .form legend { font-weight: 600; font-size: 0.95rem; color: #f7f0e2; }
.form input, .form select, .form textarea {
  width: 100%;
  margin-top: 0.28rem;
  border: 2px solid #e4c56a;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  background: #ffffff;
  color: #1a1612;
  min-height: 44px;
}
.form textarea { min-height: 8rem; resize: vertical; border-radius: 1.4rem; }
.checks { display: grid; gap: 0.45rem; }
.checks label { font-weight: 500; display: flex; gap: 0.5rem; align-items: flex-start; color: #f7f0e2; }
.form .muted { color: #e8e0d0; }
.form a { color: #fde68a !important; }
.form-status { min-height: 1.4rem; font-size: 0.95rem; }
.form-status.error { color: #fecaca; }
.form-status.ok { color: #bbf7d0; }

.site-footer {
  position: relative;
  z-index: 1;
  background: #07111f;
  color: #e7e5e4;
  padding: 3rem 0 1.4rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--gold-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.4rem;
}
.site-footer h2, .site-footer h3 {
  font-family: var(--serif);
  color: #fffaf1;
  margin: 0 0 0.6rem;
}
.foot-meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(228, 197, 106, 0.16);
  color: #d6d3d1;
  font-size: 0.92rem;
}

.reel {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1;
  border: 3px solid rgba(228, 197, 106, 0.4);
}
.reel video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.reel-ctrl {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 0;
  border-radius: var(--radius-full);
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  background: rgba(7, 17, 31, 0.85);
  color: #fffaf1;
  font: inherit;
}

.nexus-root { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.nexus-launch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(228, 197, 106, 0.55);
  background: linear-gradient(160deg, var(--vermillion), var(--gold));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  min-width: 44px;
}
.nexus-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(380px, calc(100vw - 2rem));
  background: #f7f0e2;
  color: #1a1612;
  border-radius: 2rem;
  border: 3px solid #e4c56a;
  box-shadow: 0 0 0 10px rgba(228, 197, 106, 0.14), var(--shadow);
  display: none;
  flex-direction: column;
  max-height: min(74vh, 560px);
}
.nexus-panel.open { display: flex; }
.nexus-head { padding: 0.9rem 1rem 0.45rem; border-bottom: 1px solid var(--read-line); }
.nexus-head strong { font-family: var(--serif); font-size: 1.2rem; color: var(--read-ink); }
.nexus-head p { font-size: 0.9rem; color: var(--read-muted); margin: 0.35rem 0 0; }
.nexus-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.55rem 0.8rem 0; }
.nexus-actions button {
  border: 1px solid var(--read-line);
  background: #fffaf1;
  color: var(--read-ink);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.7rem;
  min-height: 44px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.nexus-log { padding: 0.8rem 1rem; overflow: auto; flex: 1; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.nexus-msg { padding: 0.55rem 0.7rem; border-radius: 12px; background: #fffaf1; color: var(--read-ink); }
.nexus-msg.bot { background: #efe4cc; }
.nexus-msg a { color: var(--vermillion); }
.nexus-form { display: flex; gap: 0.4rem; padding: 0.7rem; border-top: 1px solid var(--read-line); }
.nexus-form input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #a8a29e;
  padding: 0.55rem 0.8rem;
  font: inherit;
  background: #fffaf1;
  color: var(--read-ink);
  min-height: 44px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 31, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 12px; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--read-bg);
  color: var(--read-ink);
  border: 1px solid var(--read-line);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
  min-height: 44px;
  font: inherit;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.filter-row button {
  border-radius: var(--radius-full);
  border: 2px solid #e4c56a;
  background: #f7f0e2;
  color: #1a1612;
  padding: 0.4rem 0.85rem;
  min-height: 44px;
  font: inherit;
}
.filter-row button[aria-pressed="true"] {
  background: var(--vermillion);
  color: #fff;
  border-color: var(--vermillion);
}

.muted { color: #e8e0d0; }
.prose .muted, .moon .muted, .reading-sheet .muted {
  color: #44403c;
}
.center { text-align: center; }
.disabled-banner {
  background: #102033;
  border: 2px solid #e4c56a;
  color: #fff7ed;
  border-radius: 18px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.1rem;
}
.search-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.search-row input {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid #e4c56a;
  padding: 0.6rem 0.95rem;
  font: inherit;
  background: #ffffff;
  color: #1a1612;
}

.amount-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.amount-row button, .amount-row label {
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid #e4c56a;
  background: #f7f0e2;
  color: #1a1612;
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
}
.planet-map {
  width: 100%;
  min-height: 280px;
  border: 3px solid #e4c56a;
  border-radius: 50%;
  aspect-ratio: 1;
  max-height: 28rem;
}

@media (max-width: 1024px) {
  .orbit-legend, .planet-field { grid-template-columns: repeat(2, 1fr); }
  .today-grid, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .pillars, .split, .grid-2, .grid-3, .video-grid, .footer-grid, .today-grid, .grid-4 {
    grid-template-columns: 1fr;
  }
  .gallery-grid a, .gallery-grid a:nth-child(1), .gallery-grid a:nth-child(2) { grid-column: span 6; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 6px);
    left: 0;
    right: 0;
    background: #07111f;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav details ul {
    position: static;
    box-shadow: none;
    width: 100%;
    background: #0b1a2e;
    border: 1px solid rgba(228, 197, 106, 0.35);
  }
  .orbit-stage {
    aspect-ratio: auto;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0.4rem 0 0.8rem;
  }
  .orbit-guides { display: none; }
  .orbit-spin { animation: none; position: static; display: contents; }
  .planet, .sun {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    width: auto;
    margin: 0 auto;
  }
  .sun { grid-column: 1 / -1; width: min(160px, 44vw); }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 2rem; }
  .brand img { height: 34px; }
  .orbit-legend, .planet-field { grid-template-columns: 1fr; }
  .gallery-grid a, .gallery-grid a:nth-child(1), .gallery-grid a:nth-child(2) { grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-spin, .orbit-ring-guide { animation: none !important; }
  #cosmos { display: none; }
  .hero-media video { display: none; }
}
