/* Gerard — The Joyful Mysteries of New Parenthood
   Day: alabaster and Marian blue with gold. Night: Sainte-Chapelle vault. */

:root {
  --bg: #FBF9F3;
  --surface: #F1EDE2;
  --card: #FFFFFF;
  --ink: #2E3440;
  --body: #3E4756;
  --muted: #6F6A5C;
  --faint: #8A8471;
  --hairline: #E5DFD0;
  --hairline-soft: #EFEADD;
  --card-border: #EAE4D4;
  --gold: #C4A15A;
  --gold-soft: #D8CBA6;
  --gold-ink: #8F7434;
  --gold-tint: #F5EDDB;
  --gold-tint-border: #E3D9C0;
  --accent: #4A6FA5;
  --accent-ink: #FFFFFF;
  --accent-tint: #E8EFF8;
  --accent-halo: #CBDCF2;
  --accent-border: #9FB8DA;
  --pill-border: #C9C3B2;
  --btn-bg: #4A6FA5;
  --btn-ink: #FFFFFF;
  --strip-bg: #FAF7EE;
  --strip-done-bg: #FDFBF4;
  --rose: #A15468;
  --rose-tint: #F7EBEE;
}

html.joseph {
  --accent: #7A5230;
  --accent-tint: #F1E7DC;
  --accent-halo: #E0CDB8;
  --accent-border: #C4A385;
  --btn-bg: #7A5230;
}

html.night {
  --bg: #1B2136;
  --surface: #171C2E;
  --card: #232B47;
  --ink: #EFEAD9;
  --body: #D9D4C4;
  --muted: #C9C4B2;
  --faint: #9C8F6B;
  --hairline: #333D5E;
  --hairline-soft: #2A3350;
  --card-border: #333D5E;
  --gold: #D4B36A;
  --gold-soft: #8A7A4E;
  --gold-ink: #D4B36A;
  --gold-tint: #2A3050;
  --gold-tint-border: #4A4568;
  --accent: #9FB4D8;
  --accent-ink: #1B2136;
  --accent-tint: #26304E;
  --accent-halo: #3A4A70;
  --accent-border: #55688F;
  --pill-border: #3A4468;
  --btn-bg: #D4B36A;
  --btn-ink: #1B2136;
  --strip-bg: #202744;
  --strip-done-bg: #252C4B;
  --rose: #C98BA0;
  --rose-tint: #322B45;
}

html.night.joseph {
  --accent: #C9A279;
  --accent-tint: #2E2A44;
  --accent-halo: #4E4260;
  --accent-border: #7A6A54;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.serif { font-family: "Cormorant Garamond", Georgia, serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
header { padding: 0 28px; }

.utility-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 10px;
}

.season-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-tint-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--gold-ink);
  cursor: pointer;
  font-family: inherit;
}

.season-pill input[type="date"] {
  border: none;
  background: transparent;
  color: var(--gold-ink);
  font: inherit;
}

.controls { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.path-toggle {
  display: inline-flex;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
}

.path-toggle button {
  border: none;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 6px 15px;
  cursor: pointer;
}

.path-toggle button.active {
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 500;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--pill-border);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.signin-slot { display: inline-flex; align-items: center; min-height: 32px; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pill-border);
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.user-chip .initial {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.double-rule { border-top: 1px solid var(--hairline); }
.double-rule::after { content: ""; display: block; border-top: 1px solid var(--hairline-soft); margin-top: 2px; }

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0 0;
}

.wordmark { font-size: 26px; font-weight: 500; color: var(--ink); }
.wordmark a { color: inherit; }
.subtitle { font-size: 11px; letter-spacing: 0.08em; color: var(--gold-ink); margin-top: 2px; }

.beads { display: flex; align-items: center; justify-content: flex-end; }

.bead {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none;
}

.bead.done { background: var(--gold); color: #FFFFFF; }
.bead.current { background: var(--accent); border: 3px solid var(--accent-halo); color: var(--accent-ink); }
.bead.todo { background: var(--card); border: 1px solid var(--pill-border); color: var(--faint); }
.bead:hover { text-decoration: none; filter: brightness(1.06); }

.bead-link { width: 22px; height: 2px; background: var(--hairline); }
.bead-link.done { background: var(--gold); }

.beads-label { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: right; }

/* Hero */
.hero { position: relative; text-align: center; padding: 40px 28px 10px; overflow: hidden; }
.hero .sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.sky-day { display: block; }
.sky-night { display: none; }
html.night .sky-day { display: none; }
html.night .sky-night { display: block; }
.hero-inner { position: relative; }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--gold-ink); }

h1.mystery {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.1;
  margin: 12px 0 6px;
}

.stage-line { font-size: 15px; color: var(--muted); }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 18px;
}

.divider .line { width: 36px; height: 1px; background: var(--gold-soft); }
.divider .diamond { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.divider .diamond.small { width: 5px; height: 5px; }

blockquote.verse {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--accent);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.5;
}

.cite { font-size: 12px; color: var(--faint); margin-top: 6px; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); border: 1px solid transparent; }
.btn-ghost { background: var(--card); color: var(--body); border: 1px solid var(--pill-border); }

/* Main sections */
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 26px 28px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
}

.niche {
  width: 34px;
  height: 42px;
  border-radius: 17px 17px 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.card h2 { font-size: 16px; font-weight: 600; margin-top: 12px; color: var(--ink); }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.card .card-link { display: inline-block; font-size: 13px; font-weight: 500; margin-top: 12px; }

.callout {
  margin: 20px 28px 0;
  background: var(--card);
  border: 1px solid var(--gold-tint-border);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.patron-line { text-align: center; font-size: 13px; color: var(--faint); padding: 22px 28px 0; }
.patron-line span { color: var(--gold-ink); }

/* Journey strip */
.strip { display: flex; gap: 10px; flex-wrap: wrap; padding: 26px 28px 8px; }

.strip a {
  flex: 1;
  min-width: 132px;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  background: var(--strip-bg);
  border: 1px solid var(--card-border);
}

.strip a:hover { border-color: var(--accent-border); text-decoration: none; }
.strip a.done { background: var(--strip-done-bg); border-color: var(--gold-tint-border); }
.strip a.current { background: var(--card); border-color: var(--accent-border); }
.strip .k { font-size: 11px; color: var(--faint); }
.strip a.done .k, .strip .k.gold { color: var(--gold-ink); }
.strip a.current .k { color: var(--accent); }
.strip .n { font-size: 13px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.strip .s { font-size: 11px; color: var(--faint); }

/* Landing chapter grid */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 26px 28px 0;
}

.chapter-grid a { text-decoration: none; }
.chapter-grid .card:hover { border-color: var(--accent-border); }
.chapter-grid .k { font-size: 12px; color: var(--gold-ink); letter-spacing: 0.1em; }
.chapter-grid h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin-top: 6px;
  color: var(--ink);
}
.chapter-grid .stage { font-size: 13px; color: var(--accent); font-weight: 500; margin-top: 2px; }
.chapter-grid p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 8px; }

/* About page */
.prose { max-width: 660px; margin: 0 auto; padding: 30px 28px 0; }
.prose h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 500; }
.prose .lede { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose .section-label { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--gold-ink); margin: 24px 0 10px; }
.prose p.body { font-size: 15px; color: var(--body); line-height: 1.75; }

.dropcap::first-letter {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 56px;
  line-height: 0.8;
  color: var(--gold);
  float: left;
  padding: 6px 8px 0 0;
}

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--gold-tint-border);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--body);
}

.chip i, .chip svg { color: var(--gold-ink); }
.chip.small { font-size: 12px; padding: 5px 12px; color: var(--muted); }

footer {
  margin-top: 44px;
  border-top: 1px solid var(--hairline);
  padding: 22px 28px 30px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

footer .foot-rule { border-top: 1px solid var(--hairline-soft); margin: -21px 0 21px; }

@media (max-width: 560px) {
  h1.mystery { font-size: 36px; }
  header { padding: 0 18px; }
  .cards, .strip, .chapter-grid, .callout { padding-left: 18px; padding-right: 18px; }
}
