:root {
  --gold: #e8b93d;
  --gold-soft: #f4d889;
  --cream: #f4e0c0;
  --ink: #fff7e6;
  --night: #080d1a;
  --card: rgba(8, 14, 29, 0.88);
  --card-soft: rgba(15, 24, 45, 0.78);
  --edge: rgba(244, 224, 192, 0.25);
  --muted: rgba(244, 224, 192, 0.8);
  --success: #bce2bf;
  --error: #ffd0c8;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100svh;
  padding: 24px 18px 54px;
  font-family: Cardo, Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--night) url("/assets/brand/background-1600.jpg") center / cover no-repeat fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 5%, rgba(37, 58, 97, 0.28), transparent 38%),
    linear-gradient(180deg, rgba(3, 7, 16, 0.76), rgba(3, 7, 16, 0.9));
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.site-header { margin: 0 0 20px; text-align: center; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--cream);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.brand img {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(232, 185, 61, 0.55);
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: clamp(2.9rem, 11vw, 5rem);
  line-height: 0.98;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
}
.lede {
  max-width: 28ch;
  margin: 0 auto;
  color: var(--cream);
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  line-height: 1.45;
}

.prayer-card,
.feedback-card,
.email-card,
.privacy-card,
.scripture-note {
  margin-top: 18px;
  padding: clamp(20px, 5vw, 30px);
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}
.prayer-card { border-color: rgba(232, 185, 61, 0.55); }
.prayer-copy { text-align: center; }
.free-label {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
h2 {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: clamp(1.55rem, 5.4vw, 2rem);
  line-height: 1.18;
}
.prayer-copy p:last-child,
.feedback-card > p,
.email-card > p,
.privacy-card p,
.scripture-note p {
  margin: 0;
  color: var(--cream);
  font-size: 1.08rem;
  line-height: 1.55;
}

.edition-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 16px;
}
.edition {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--edge);
  border-radius: 13px;
  color: var(--ink);
  background: var(--card-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.edition > span:first-child { width: 28px; font-size: 1.45rem; text-align: center; }
.edition strong, .edition small { display: block; }
.edition strong { font-size: 1.05rem; }
.edition small { margin-top: 3px; color: var(--muted); font-size: 0.88rem; }
.edition.is-selected {
  border-color: var(--gold);
  background: rgba(87, 67, 23, 0.42);
  box-shadow: inset 0 0 0 1px rgba(232, 185, 61, 0.28);
}

audio { width: 100%; min-height: 52px; }
.player-actions {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  font-size: 1rem;
}
.player-actions a, nav a {
  color: var(--gold-soft);
  font-weight: 700;
  text-underline-offset: 4px;
}
.player-actions span { color: var(--muted); text-align: right; }
.quiet-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

form { margin-top: 19px; }
fieldset {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
fieldset legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
}
fieldset label,
.consent-row {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--edge);
  border-radius: 11px;
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
}
input[type="radio"], input[type="checkbox"] {
  width: 21px;
  height: 21px;
  margin: 1px 0 0;
  accent-color: var(--gold);
  flex: 0 0 auto;
}
.question {
  display: block;
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
}
.question span { color: var(--muted); font-weight: 400; }
input[type="email"], select {
  width: 100%;
  min-height: 54px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  color: var(--ink);
  background: #10182c;
  font: inherit;
  font-size: 1rem;
}
.primary-button, .secondary-button {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: #111827;
  background: var(--gold);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}
.secondary-button { color: var(--ink); background: transparent; }
button:disabled { opacity: 0.6; cursor: wait; }
.form-status { min-height: 1.5em; margin: 12px 0 0; color: var(--success); font-size: 1rem; }
.form-status.is-error { color: var(--error); }

.privacy-card { background: rgba(8, 14, 29, 0.72); }
.privacy-card summary {
  color: var(--gold-soft);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}
.privacy-card p { margin-top: 14px; }
.privacy-card .consent-row { margin-top: 15px; }
.scripture-note { text-align: center; }
.support-note { margin: 26px 0 0; text-align: center; color: var(--muted); }

nav { margin-top: 30px; text-align: center; font-size: 1.05rem; }
.noscript {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 16px auto;
  padding: 14px;
  color: var(--ink);
  background: var(--card);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button:hover, button:focus-visible,
a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .edition-picker { grid-template-columns: 1fr; }
  .player-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
  .player-actions span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
}
