/* ============================================================
   Intercession — site styles
   Design: "night vigil to dawn." Marian indigo + candle gold,
   warming to parchment. Signature: a rosary-bead strand spine.
   ============================================================ */

:root {
  /* Palette */
  --night:      #10162b;
  --night-2:    #171f3a;
  --dusk:       #232d4d;
  --gold:       #c6a15b;
  --gold-soft:  #e6cf96;
  --parchment:  #f6f1e7;
  --parchment-2:#efe7d6;
  --ink:        #1c1a15;
  --ink-soft:   #55503f;
  --mist:       #c4cbdb;
  --mist-dim:   #8b93aa;
  --line-gold:  rgba(198,161,91,.28);
  --line-ink:   rgba(28,26,21,.14);

  /* Type */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.06; margin: 0; letter-spacing: .003em; }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow--onlight { color: #9a7d3d; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  text-decoration: none; padding: .8rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.btn--gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #2a2110; }
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line-gold); color: var(--mist); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* App-store style buttons */
.stores { display: flex; flex-wrap: wrap; gap: .8rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; padding: .7rem 1.15rem; border-radius: 14px;
  background: #0c1122; border: 1px solid var(--line-gold); color: var(--mist);
  transition: transform .15s ease, border-color .2s ease;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.store-btn svg { width: 26px; height: 26px; flex: none; fill: var(--gold-soft); }
.store-btn span { display: block; font-family: var(--body); line-height: 1.15; }
.store-btn .k { font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mist-dim); }
.store-btn .v { font-size: 1.05rem; font-weight: 700; color: #f2ede2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,22,43,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-gold);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--parchment); }
.brand svg { width: 26px; height: 34px; }
.brand b { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--mist); text-decoration: none; font-size: .93rem; font-weight: 600; transition: color .2s; }
.nav a:hover { color: var(--gold-soft); }
.nav .btn { padding: .5rem 1.05rem; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero (night) ---------- */
.hero { position: relative; background:
    radial-gradient(1200px 600px at 78% -10%, #2a355c 0%, rgba(42,53,92,0) 55%),
    radial-gradient(900px 500px at 10% 110%, #1b2444 0%, rgba(27,36,68,0) 60%),
    var(--night);
  color: var(--parchment); overflow: hidden;
}
.hero::after { /* candle-star field */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(230,207,150,.9), transparent),
    radial-gradient(1.5px 1.5px at 68% 18%, rgba(230,207,150,.6), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 55%, rgba(230,207,150,.5), transparent),
    radial-gradient(1px 1px at 12% 80%, rgba(255,255,255,.4), transparent);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); font-weight: 500; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: var(--mist); max-width: 40ch; margin: 1.4rem 0 2rem; }
.hero .stores { margin-bottom: 1rem; }
.hero .free-note { font-size: .85rem; color: var(--mist-dim); margin-top: .4rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; max-width: 260px; }
}

/* Rosary hero art */
.hero-art { justify-self: center; filter: drop-shadow(0 0 26px rgba(198,161,91,.35)); }
@keyframes glow { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
.hero-art .flame { animation: glow 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero-art .flame { animation: none; } }

/* ---------- Section scaffolding ---------- */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { max-width: 46ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: .9rem; }

.band-dark { background: var(--night-2); color: var(--parchment); }
.band-dark .section-head p { color: var(--mist); }

/* ---------- Features: bead strand ---------- */
.beads { position: relative; margin-left: 6px; }
.beads::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(var(--line-ink) 0 3px, transparent 3px 15px); }
.bead-item { position: relative; padding: 0 0 2.4rem 3.2rem; }
.bead-item:last-child { padding-bottom: 0; }
.bead-item::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold) 70%); box-shadow: 0 0 0 4px rgba(198,161,91,.14); }
.bead-item h3 { font-size: 1.65rem; }
.bead-item p { color: var(--ink-soft); margin: .4rem 0 0; max-width: 54ch; }

/* Feature grid (alternate) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card { background: var(--parchment); border: 1px solid var(--line-ink); border-radius: 16px; padding: 1.6rem 1.5rem; }
.band-dark .card { background: #131a30; border-color: var(--line-gold); }
.card .ic { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.6; margin-bottom: 1rem; }
.card h3 { font-size: 1.5rem; }
.card p { margin: .45rem 0 0; color: var(--ink-soft); font-size: .98rem; }
.band-dark .card p { color: var(--mist); }

/* ---------- Steps (a genuine sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.step { position: relative; padding-top: 1.4rem; }
.step .n { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.step h3 { font-size: 1.35rem; margin-top: .5rem; }
.step p { color: var(--ink-soft); margin-top: .4rem; font-size: .97rem; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 720px) { .support-grid { grid-template-columns: 1fr; gap: 1.4rem; } }
.support-quote { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.25; max-width: 20ch; }
.support-quote em { color: var(--gold-soft); font-style: italic; }
.support-grid p { color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.cta .stores { justify-content: center; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--mist); border-top: 1px solid var(--line-gold); padding-block: 3rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer .brand b { font-size: 1.3rem; }
.site-footer h4 { font-family: var(--body); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--mist-dim); margin: 0 0 .9rem; }
.site-footer a { display: block; color: var(--mist); text-decoration: none; padding: .25rem 0; font-size: .94rem; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line-gold); margin-top: 1rem; padding-top: 1.4rem; font-size: .82rem; color: var(--mist-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- Legal / article pages ---------- */
.legal { background: var(--parchment); }
.legal .wrap { max-width: 760px; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin: .6rem 0 2.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 .3rem; padding-top: 1.2rem; border-top: 1px solid var(--line-ink); }
.legal h3 { font-size: 1.15rem; margin: 1.5rem 0 .2rem; font-family: var(--body); font-weight: 800; }
.legal p, .legal li { color: #2c2a22; }
.legal a { color: #8a6d2e; text-underline-offset: 2px; }
.legal table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--line-ink); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.legal th { background: var(--parchment-2); }
.legal code { background: var(--parchment-2); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.breadcrumb a { color: #8a6d2e; text-decoration: none; }

/* ---------- Support / contribute page ---------- */
.give-hero { background:
    radial-gradient(1000px 500px at 50% -10%, #2a355c 0%, rgba(42,53,92,0) 55%), var(--night);
  color: var(--parchment); }
.give-hero .wrap { max-width: 760px; padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.give-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.give-hero .lede { color: var(--mist); max-width: 48ch; margin: 1.2rem auto 0; }
.give { max-width: 640px; margin: 2.5rem auto 0; }
.give-toggle { display: inline-flex; background: #131a30; border: 1px solid var(--line-gold); border-radius: 999px; padding: 4px; margin-bottom: 2rem; }
.give-toggle button { border: 0; background: transparent; color: var(--mist); font-family: var(--body); font-weight: 700; font-size: .92rem; padding: .55rem 1.4rem; border-radius: 999px; cursor: pointer; transition: color .2s; }
.give-toggle button[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #2a2110; }
.give-toggle button:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.give-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 560px) { .give-grid { grid-template-columns: repeat(4, 1fr); } }
.give-amount { display: flex; align-items: baseline; justify-content: center; padding: 1.5rem 0; border-radius: 14px; background: #131a30; border: 1px solid var(--line-gold); color: #f2ede2; font-family: var(--display); font-size: 2rem; font-weight: 500; text-decoration: none; transition: transform .15s ease, border-color .2s ease; }
.give-amount:hover { transform: translateY(-3px); border-color: var(--gold); }
.give-amount:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.give-amount .per { font-family: var(--body); font-size: .78rem; color: var(--mist-dim); margin-left: .2rem; }
.give-custom { display: block; text-align: center; margin-top: 1rem; padding: 1.05rem; border-radius: 14px; border: 1px dashed var(--line-gold); color: var(--gold-soft); text-decoration: none; font-weight: 700; transition: border-color .2s ease, background .2s ease; }
.give-custom:hover { border-color: var(--gold); background: rgba(198,161,91,.07); }
.give-note { color: var(--mist-dim); font-size: .85rem; text-align: center; margin-top: 1.8rem; line-height: 1.5; }
.give-note a { color: var(--gold-soft); }
.give-disabled { opacity: .4; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line-ink); padding: 1.15rem 0; }
.faq summary { font-family: var(--display); font-size: 1.4rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.7rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--ink-soft); margin: .7rem 0 0; max-width: 62ch; }
.faq a { color: #8a6d2e; }

/* utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
