/* Hallelu Worship brand palette (brand guide v1.0, Oct 2026): deep plum + warm gold + cream.
   Gold is an accent, never a background (except the primary button). Contrast (WCAG):
   cream on plum-deep 14.3:1 · --muted on plum 8.1:1 · gold #E8B64C on plum 7.3:1 · plum-deep on gold 8.7:1. */
:root {
  --plum: #3B1A6B;        /* Deep Plum: primary */
  --plum-deep: #2A1150;   /* Midnight Plum: page background, shadows */
  --night: #1F0C3E;       /* top of the night sky (plum-deep, darker) */
  --gold: #E8B64C;        /* Warm Gold: accents on dark */
  --gold-antique: #C8952F;/* Antique Gold: mark centre bar on light, rules */
  --gold-ink: #8C6414;    /* small gold text on cream/light (4.69:1). Brand Gold Ink #946A16 is 4.28:1 on cream: large text only */
  --cream: #F7F0E3;       /* Cream: headings / primary text on dark */
  --muted: #CFC3D9;       /* body / secondary text on plum (cream tinted with plum) */
  --line: rgba(232, 182, 76, 0.28);
  --card: rgba(31, 12, 62, 0.55);
  --maxw: 68rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--night); padding: .5rem 1rem; }

/* ---------- Sky background (fixed, behind everything) ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 42% at 50% 110%, rgba(247, 240, 227, .30) 0%, rgba(232, 182, 76, .26) 28%, rgba(200, 149, 47, .12) 52%, transparent 74%),
    linear-gradient(180deg, var(--night) 0%, var(--plum-deep) 40%, var(--plum) 78%, #4A2470 100%);
}
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: repeat;
}
/* faint stars: two layers that twinkle out of phase */
.sky::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(247,240,227,.8), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgba(247,240,227,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 260px 40px, rgba(232,182,76,.7), transparent 60%),
    radial-gradient(1px 1px at 330px 170px, rgba(247,240,227,.5), transparent 60%),
    radial-gradient(1px 1px at 80px 210px, rgba(247,240,227,.55), transparent 60%);
  background-size: 380px 260px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 90%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
.sky::after {
  background-image:
    radial-gradient(1px 1px at 60px 120px, rgba(247,240,227,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 210px 20px, rgba(247,240,227,.5), transparent 60%),
    radial-gradient(1px 1px at 300px 230px, rgba(232,182,76,.6), transparent 60%),
    radial-gradient(1px 1px at 420px 150px, rgba(247,240,227,.45), transparent 60%);
  background-size: 470px 300px;
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 85%);
  animation: twinkle 9s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 44rem); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section + section { border-top: 1px solid rgba(232,182,76,.10); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(31,12,62,.92), rgba(31,12,62,.65));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232,182,76,.12);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
/* The lockup SVG already includes its clear space (one short-bar height) on every side,
   so the image box is ~10% wider than the visible lockup: 200px box = ~180px visible (min 160px). */
.brand { display: inline-flex; flex: none; margin-left: -12px; }
.brand img { width: 200px; height: auto; }
.nav { display: flex; gap: clamp(.8rem, 2.5vw, 1.8rem); flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block; color: var(--gold);
  text-transform: uppercase;
  font-weight: 600; letter-spacing: .26em; font-size: .8rem;
  margin: 0 0 1rem;
}
h1, h2, h3 { text-wrap: balance; color: var(--cream); line-height: 1.2; margin: 0 0 1rem; font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(2rem, 6vw, 3.9rem); font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(31,12,62,.6); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.05rem; letter-spacing: .01em; }
p { margin: 0 0 1.1rem; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--cream); opacity: .9; }
.center { text-align: center; }
.rule { width: 7rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; margin: 1.6rem auto; }
.small { font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(4rem, 12vw, 8rem); text-align: center; }
.hero .meta { color: var(--muted); letter-spacing: .06em; font-size: .95rem; }
.release {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem;
  padding: .55rem 1.2rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--cream); background: rgba(31,12,62,.35); font-size: .95rem; letter-spacing: .04em;
}
.release .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.85); } }

/* fade-up on load */
.rise { opacity: 0; transform: translateY(14px); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.rise.d1 { animation-delay: .15s; } .rise.d2 { animation-delay: .35s; } .rise.d3 { animation-delay: .55s; } .rise.d4 { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Video ---------- */
.video {
  position: relative; margin: 2.6rem auto 0; max-width: 56rem; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: var(--night);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px var(--line);
}
.video button, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: none; }
.video button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, filter .6s ease; }
.video button:hover img { transform: scale(1.02); filter: brightness(1.06); }
.video .play {
  position: absolute; left: 50%; top: 79%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(31,12,62,.55); border: 1px solid rgba(247,240,227,.6);
  display: grid; place-items: center; backdrop-filter: blur(4px);
  transition: background .3s ease, transform .3s ease;
}
.video button:hover .play { background: rgba(232,182,76,.55); transform: translate(-50%, -50%) scale(1.05); }
.video .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--cream); }
.video .note {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem 1rem;
  background: linear-gradient(0deg, rgba(31,12,62,.85), transparent);
  color: var(--cream); font-size: .9rem; letter-spacing: .04em;
}

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .03em;
  color: var(--cream); background: rgba(31,12,62,.45);
  border: 1px solid var(--line);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.btn:hover { color: var(--cream); border-color: var(--gold); background: rgba(232,182,76,.16); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn.primary { background: var(--gold); color: var(--plum-deep); border-color: transparent; }
.btn.primary:hover { color: var(--plum-deep); background: #F0C76A; }

/* ---------- Scripture ---------- */
.verse {
  margin: 0 auto; max-width: 42rem; text-align: center;
  color: var(--cream); font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.5; font-weight: 300;
}
.verse cite { display: block; margin-top: 1rem; font-style: normal; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---------- Lyrics ---------- */
.lyrics { columns: 2 18rem; column-gap: 3.5rem; margin-top: 2rem; }
.stanza { break-inside: avoid; margin: 0 0 2rem; }
.stanza h3 {
  font-family: var(--font); color: var(--gold); font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; margin-bottom: .5rem;
}
.stanza p { color: var(--cream); margin: 0; line-height: 1.85; }
.stanza.repeat p { opacity: .82; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--card); border: 1px solid rgba(232,182,76,.16); border-radius: 16px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.4rem; }
.credits { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .35rem; }
.credits li span { color: var(--gold); letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; margin-right: .5rem; }

/* ---------- Form ---------- */
.signup form { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.4rem; }
.signup input[type="email"] {
  flex: 1 1 16rem; max-width: 24rem; padding: .85rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(31,12,62,.55); color: var(--cream); font: inherit;
}
.signup input::placeholder { color: rgba(207,195,217,.7); }
.signup input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,182,76,.18); }
.signup button { border: 0; cursor: pointer; font: inherit; }
.signup .status { min-height: 1.6em; margin-top: .9rem; font-size: .92rem; color: var(--gold); }
.hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0 4rem; text-align: center; font-size: .88rem; border-top: 1px solid rgba(232,182,76,.12); }
.footer-logo { display: inline-block; margin-bottom: .4rem; }
.footer-logo img { width: 240px; height: auto; }
.site-footer .social { display: flex; gap: 1.2rem; justify-content: center; margin: .2rem 0 .4rem; }
.site-footer .social a { display: inline-flex; align-items: center; gap: .45rem; color: var(--cream); text-decoration: none; }
.site-footer .social a:hover { color: var(--gold); }
.site-footer .social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer nav { display: flex; gap: 1.4rem; justify-content: center; margin: .6rem 0 1rem; flex-wrap: wrap; }

/* ---------- Responsive / motion ---------- */
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; gap: .4rem; }
  .nav { justify-content: center; gap: .4rem 1rem; }
  .nav a { font-size: .68rem; letter-spacing: .1em; }
  .nav { gap: .3rem .85rem; }
  .brand { margin-left: 0; }
  .brand img { width: 180px; }
  .site-header .wrap { padding: 0 0 .55rem; gap: 0; }
  /* keep the play button clear of the poster title (glyphs end at ~59% of the frame) and of the note */
  .video .play { width: 40px; height: 40px; top: 73%; }
  .video .play svg { width: 18px; height: 18px; margin-left: 3px; }
  .video .note { font-size: .72rem; line-height: 1.5; padding: .3rem .8rem; }
  .release { border-radius: 18px; text-align: left; }
  .lyrics { columns: 1; }
  .eyebrow { letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}

/* ---------- Cover + listen block ---------- */
.listen {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  max-width: 56rem; margin: 3rem auto 0; text-align: left;
}
.listen .cover {
  width: 100%; height: auto; border-radius: 10px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.75), 0 0 0 1px var(--line);
}
.listen h2 { margin-bottom: .5rem; }
.listen .buttons { justify-content: flex-start; margin-top: 1.2rem; }
.btn small { font-weight: 400; font-size: .75rem; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.btn.soon { cursor: default; }
.btn.soon:hover { transform: none; background: rgba(31,12,62,.45); border-color: var(--line); }
.btn[disabled] { opacity: .6; cursor: not-allowed; font: inherit; font-weight: 600; font-size: .95rem; }
.btn[disabled]:hover { transform: none; background: rgba(31,12,62,.45); border-color: var(--line); }
.credit-line { color: var(--gold); letter-spacing: .06em; font-weight: 600; }
@media (max-width: 640px) {
  .listen { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .listen .cover { width: min(70vw, 300px); }
  .listen .buttons { justify-content: center; }
}

/* QA fixes (Oct 3) */
.signup button.btn { font-weight: 600; letter-spacing: .03em; }
.narrow p:not(.eyebrow) + h2, .narrow p:not(.eyebrow) + h3 { margin-top: 2.4rem; }

/* ---------- Tablet (iPad portrait 768 / landscape & Pro 1024) ---------- */
@media (min-width: 641px) and (max-width: 1024px) {
  .wrap { width: min(100% - 3rem, var(--maxw)); }
  .nav { gap: 1.1rem; }
  .nav a { letter-spacing: .12em; }
  .listen { grid-template-columns: 220px 1fr; align-items: start; gap: 2rem; }
  .lyrics { column-gap: 2.5rem; }
}
