/* Saturn Return Calculator - dark celestial theme, single gold accent */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg: #0c0e16;
  --surface: rgba(233, 233, 242, 0.04);
  --surface-strong: rgba(233, 233, 242, 0.07);
  --line: rgba(233, 233, 242, 0.12);
  --line-soft: rgba(233, 233, 242, 0.07);
  --text: #e9e9f2;
  --muted: #a7aabf;
  --faint: #7b7e96;
  --accent: #d9a95c;
  --accent-soft: rgba(217, 169, 92, 0.14);
  --accent-line: rgba(217, 169, 92, 0.35);
  --ink-on-accent: #14100a;
  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Static star field: cheap, fixed, non-interactive */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(233,233,242,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, rgba(233,233,242,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 38%, rgba(217,169,92,0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 64%, rgba(233,233,242,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 52%, rgba(233,233,242,0.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 84%, rgba(233,233,242,0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 82%, rgba(217,169,92,0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 8%, rgba(233,233,242,0.4) 50%, transparent 51%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 14, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}
.brand-mark { color: var(--accent); flex: none; }

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* ---------- Hero + calculator ---------- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 26px;
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 10px;
}
.hero-points li {
  color: var(--muted);
  font-size: 0.97rem;
  padding-left: 22px;
  position: relative;
}
.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.calc-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(4, 5, 12, 0.5);
}
.calc-card::before {
  /* soft Saturn-gold halo behind the card */
  content: '';
  position: absolute;
  inset: -60px -40px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 169, 92, 0.14), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text);
}
.field input,
.field select {
  width: 100%;
  background: rgba(12, 14, 22, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
  padding: 11px 13px;
  transition: border-color 0.2s var(--ease);
  color-scheme: dark;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent-line);
}

.details-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.details-toggle:hover { color: #e6bd78; }

.detail-fields .field-help {
  font-size: 0.82rem;
  color: var(--faint);
  margin: -6px 0 14px;
}

.calc-error {
  color: #f0a3a3;
  background: rgba(214, 92, 92, 0.12);
  border: 1px solid rgba(214, 92, 92, 0.3);
  border-radius: var(--radius);
  font-size: 0.9rem;
  padding: 10px 13px;
  margin-bottom: 14px;
}

.calc-submit {
  width: 100%;
  background: var(--accent);
  color: var(--ink-on-accent);
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.calc-submit:hover { background: #e2b467; }
.calc-submit:active { transform: translateY(1px) scale(0.99); }
.calc-submit:disabled { opacity: 0.7; cursor: wait; }

/* ---------- Results ---------- */

.results-section { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.results { padding: 24px 0 8px; }

.natal-card {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 22px;
}
.natal-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.natal-position {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.natal-glyph { color: var(--accent); margin-right: 2px; }
.retro-tag {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  letter-spacing: 0.04em;
}
.natal-theme { color: var(--muted); font-size: 0.97rem; max-width: 60ch; }

.status-line {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 22px;
}

.return-block {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
}
.return-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.return-head h3 { font-size: 1.2rem; }

.state {
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.state-done { color: var(--faint); border: 1px solid var(--line); }
.state-active { color: var(--ink-on-accent); background: var(--accent); }
.state-soon { color: var(--accent); border: 1px solid var(--accent-line); }
.state-future { color: var(--muted); border: 1px solid var(--line); }

.return-blurb { color: var(--muted); font-size: 0.95rem; max-width: 62ch; margin-bottom: 14px; }

.pass-list { list-style: none; display: grid; gap: 8px; }
.pass {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px 16px;
}
.pass-past { opacity: 0.65; }
.pass-date { font-weight: 500; }
.pass-meta { color: var(--faint); font-size: 0.85rem; white-space: nowrap; }

.pass-note {
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: 10px;
  max-width: 62ch;
}

.results-footnote {
  color: var(--faint);
  font-size: 0.84rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  margin-top: 8px;
  max-width: 70ch;
}

/* ---------- Content sections ---------- */

.guide, .signs, .method, .faq {
  max-width: 1040px;
  margin: 0 auto;
  padding: 84px 24px 0;
}

.guide h2, .signs h2, .method h2, .faq h2, .retro h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 22px;
}

.prose {
  max-width: 65ch;
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

.phase-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.phase {
  padding: 26px 26px 6px 0;
  border-right: 1px solid var(--line-soft);
}
.phase:last-child { border-right: none; }
.phase + .phase { padding-left: 26px; }
.phase-age {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.phase h3 { font-size: 1.05rem; margin-bottom: 8px; }
.phase p { color: var(--muted); font-size: 0.93rem; }

/* Retrograde explainer: full-width tinted band for rhythm */
.retro {
  margin-top: 84px;
  background: linear-gradient(180deg, rgba(217, 169, 92, 0.05), transparent);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.retro-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px;
}

.signs-intro { color: var(--muted); max-width: 62ch; margin-bottom: 36px; }

.sign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
}
.sign {
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}
.sign h3 { font-size: 1rem; margin-bottom: 6px; }
.sign h3 span { color: var(--accent); margin-right: 4px; }
.sign p { color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.04rem;
  padding: 18px 30px 18px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 400;
  font-size: 1.3rem;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  color: var(--muted);
  padding: 0 0 20px;
  max-width: 68ch;
  font-size: 0.97rem;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line-soft);
  padding: 44px 24px 56px;
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-disclaimer { margin-top: 8px; font-size: 0.82rem; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Reveal motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }
  .phase-grid { grid-template-columns: 1fr; border-top: none; }
  .phase {
    border-right: none;
    border-top: 1px solid var(--line-soft);
    padding: 22px 0 6px;
  }
  .phase + .phase { padding-left: 0; }
  .sign-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 36px; }
  .calc-card { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .sign-grid { grid-template-columns: 1fr; gap: 20px; }
  .guide, .signs, .method, .faq { padding-top: 64px; }
  .pass { flex-direction: column; gap: 2px; }
}
