/* ════════════════════════════════════════════════════════════════════════
   8 BILLION WAYS: simple pages
   Used by every content page. The same page also shows inside the pop-ups
   on the home page ("popup" mode hides the logo and footer).
   ════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #000408;
  --gold: #ffd060;
  --gold-line: rgba(255, 215, 0, .16);
  --text: #f3ecd8;
  --soft: rgba(243, 236, 216, .72);
  --faint: rgba(243, 236, 216, .45);
  --words: 'Cormorant Garamond', 'Palatino Linotype', Palatino, Georgia, serif;
  --ui: 'Cinzel', 'Palatino Linotype', Palatino, Georgia, serif;
  --neon: 'Montserrat', 'Century Gothic', 'Futura', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--words); font-size: 21px; line-height: 1.55; font-weight: 500;
  min-height: 100vh;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 33% 64%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 52% 88%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 8% 82%, rgba(160,200,255,.4), transparent),
    radial-gradient(ellipse at 50% 0%, rgba(40,90,180,.12), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-shadow: 0 0 14px rgba(255,190,0,.6); }

/* ─── Corner logo (links home) ───────────────────────────────────────── */
.corner {
  position: fixed; top: 16px; left: 20px; z-index: 10;
  display: flex; align-items: center; gap: 10px; padding: 4px;
}
.corner:hover { text-shadow: none; filter: brightness(1.25); }
.corner svg { display: block; overflow: visible; height: 52px; width: 29.4px; }
.neon {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--neon); font-weight: 300; font-size: 17.3px;
  text-transform: uppercase; letter-spacing: .07em; line-height: .78; white-space: nowrap;
}
.neon .lb, .neon .lw { padding-left: .07em; }
.neon .lb { color: #a6e9ff; text-shadow: 0 0 .012em #e8faff, 0 0 .05em #5fd3ff, 0 0 .12em #1fb0ff, 0 0 .28em #0a8cff, 0 0 .6em rgba(10,120,255,.55); }
.neon .lr { width: 103%; height: .03em; margin: .24em 0 .27em; background: #8fe2ff; box-shadow: 0 0 .05em #7fdcff, 0 0 .14em #1fb0ff, 0 0 .32em rgba(10,140,255,.7); }
.neon .lw { color: #ffd38a; text-shadow: 0 0 .012em #fff4e0, 0 0 .05em #ffb340, 0 0 .12em #ff9d1c, 0 0 .28em #ff7a00, 0 0 .6em rgba(255,110,0,.5); }

/* ─── Content ────────────────────────────────────────────────────────── */
main { max-width: 680px; margin: 0 auto; padding: 130px 24px 80px; }
.eyebrow {
  display: block; font-family: var(--ui); font-size: 11px; letter-spacing: 5px;
  text-transform: uppercase; color: rgba(255,215,0,.6); margin-bottom: 14px;
}
h1 {
  font-family: var(--words); font-weight: 500; font-size: clamp(2.3rem, 7vw, 3.4rem);
  line-height: 1.1; margin-bottom: 28px; color: #fff8e6;
}
h1 em, p em, li em { font-style: normal; color: var(--gold); }
p { margin-bottom: 18px; color: var(--soft); }
p.big { font-size: 1.35em; line-height: 1.35; color: var(--text); }
p.firm {
  margin-top: 30px; padding: 18px 22px; border-left: 2px solid var(--gold);
  background: rgba(255,208,96,.05); color: var(--text);
}
.rule { width: 60px; height: 1px; background: var(--gold-line); margin: 34px 0; }

/* All faiths list */
.faiths { list-style: none; margin: 10px 0 24px; }
.faiths li { padding: 12px 0; border-bottom: 1px solid rgba(255,215,0,.08); color: var(--soft); }
.faiths li strong { display: block; font-weight: 600; color: var(--text); font-size: 1.08em; }
.faiths li.yours strong { color: var(--gold); }

/* ─── Forms ──────────────────────────────────────────────────────────── */
form { margin-top: 8px; }
label { display: block; font-family: var(--ui); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--faint); margin: 20px 0 8px; }
input[type=text], input[type=email], textarea, .combo input {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,215,0,.2); border-radius: 2px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { border-color: rgba(255,208,96,.7); box-shadow: 0 0 0 3px rgba(255,208,96,.08); }
textarea { min-height: 220px; resize: vertical; line-height: 1.5; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-family: var(--words); font-size: .9em; letter-spacing: 0; text-transform: none; color: var(--soft); cursor: pointer; }
.check input { margin-top: 6px; accent-color: #ffd060; }
button.go, .go {
  display: inline-block; margin-top: 24px; cursor: pointer;
  font-family: var(--ui); font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--bg); background: var(--gold); border: 0; padding: 14px 28px; border-radius: 2px;
  box-shadow: 0 0 24px rgba(255,190,0,.25); transition: filter .2s;
}
button.go:hover { filter: brightness(1.1); }
button.go:disabled { opacity: .6; cursor: wait; }
.note { font-size: .82em; color: var(--faint); margin-top: 14px; }
.thanks { display: none; padding: 26px 0; }
.thanks h2 { font-weight: 500; font-size: 2rem; color: #fff8e6; margin-bottom: 10px; }
form.sent { display: none; }
form.sent + .thanks { display: block; }
/* after a story or contact message is sent, only the thank-you shows */
main.done > :not(.thanks) { display: none; }
main.done > .thanks { padding: 30px 0 10px; animation: thanksIn .6s ease; }
main.done > .thanks h2 { font-size: clamp(2.3rem, 7vw, 3.4rem); line-height: 1.1; margin-bottom: 18px; }
main.done > .thanks h2 em { font-style: normal; color: var(--gold); }
@keyframes thanksIn { from { opacity: 0; transform: translateY(8px); } }

/* The madlib line: I believe [God ▾] is: */
.madlib { font-size: 1.45em; line-height: 1.3; color: var(--text); margin: 6px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em; }
.combo { position: relative; display: inline-block; }
.combo input {
  font-size: 1em; color: var(--gold); padding: 2px 34px 4px 8px; width: 9em;
  background: rgba(255,208,96,.06); border: 0; border-bottom: 1px solid var(--gold); border-radius: 0;
}
.combo .arrow {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--gold); font-size: .55em; cursor: pointer; padding: 6px;
}
.combo ul {
  display: none; position: absolute; z-index: 5; left: 0; top: calc(100% + 4px);
  min-width: 100%; max-height: 260px; overflow-y: auto; list-style: none;
  background: #050b14; border: 1px solid rgba(255,215,0,.25); box-shadow: 0 12px 40px rgba(0,0,0,.6);
  font-size: .6em;
}
.combo.open ul { display: block; }
.combo li { padding: 8px 14px; cursor: pointer; color: var(--soft); white-space: nowrap; }
.combo li:hover, .combo li.active { background: rgba(255,208,96,.1); color: var(--gold); }
.combo li.hint { color: var(--faint); font-style: italic; cursor: default; }

/* Sender sign-up slot */
.signup { margin-top: 26px; padding: 24px; border: 1px solid var(--gold-line); background: rgba(255,255,255,.02); }
.signup h3 { font-family: var(--ui); font-weight: 400; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup .row input { flex: 1 1 220px; }
.signup .row .go { margin-top: 0; }

/* ─── Footer links (every page links to every other page) ────────────── */
footer { max-width: 680px; margin: 0 auto; padding: 0 24px 60px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid var(--gold-line); padding-top: 26px; }
footer a { font-family: var(--ui); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--faint); }
footer a:hover, footer a[aria-current] { color: var(--gold); }

/* ─── Pop-up mode (shown inside the home page) ───────────────────────── */
html.popup body { background: #030810; background-image: none; min-height: 0; }
html.popup .corner, html.popup footer { display: none; }
html.popup main { padding: 46px 30px 40px; }

@media (max-width: 600px) {
  body { font-size: 19px; }
  main { padding-top: 110px; }
  .corner svg { height: 40px; width: 22.6px; }
  .neon { font-size: 13.3px; }
  html.popup main { padding: 56px 20px 30px; }
}
