/* novena.css — the nine-day novena experience.
   Sits on top of css/styles.css (shared tokens: ink, parchment, gold, crimson…).
   Design language: candlelit vigil — dark ground, parchment reading cards,
   gold medallions, crimson intentions. */

body.novena { --novena-max: 720px; }

/* ---------- top bar ---------- */
.novena-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(18px, 4vw, 34px);
  background: rgba(11, 10, 14, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 197, 106, .18);
}
.novena-bar .brand { font-family: var(--font-display); font-size: 19px; color: var(--parchment); text-decoration: none; letter-spacing: .01em; }
.novena-bar .brand em { color: var(--gold); font-style: italic; }
.novena-bar nav { display: flex; gap: 8px; align-items: center; }
.novena-bar a.bar-link { color: var(--parchment-2, #cfc4b2); text-decoration: none; font-size: 14px; padding: 9px 14px; border-radius: 999px; }
.novena-bar a.bar-link:hover { color: var(--gold); }
.novena-bar .btn { padding: 10px 20px; font-size: 14px; }

/* ---------- hero ---------- */
.novena-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 4vw, 34px) clamp(48px, 7vw, 84px);
  max-width: 1240px; margin: 0 auto;
}
.novena-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 60% at 78% 30%, rgba(232, 197, 106, .12), transparent 70%),
    radial-gradient(40% 50% at 12% 88%, rgba(122, 18, 32, .18), transparent 70%);
}
.novena-hero .hero-text { position: relative; z-index: 1; }
.novena-hero .hero-eyebrow {
  font-family: var(--font-inscribe); font-size: 11px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold);
}
.novena-hero h1 {
  font-family: var(--font-display); font-weight: 400; color: var(--parchment);
  font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.06; margin: 18px 0 20px;
}
.novena-hero h1 em { color: var(--gold); font-style: italic; }
.novena-hero .hero-lede { font-size: 1.18rem; line-height: 1.7; color: #cfc4b2; max-width: 54ch; }
.novena-hero .hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 32px;
  font-size: 13px; color: var(--rose); letter-spacing: .12em; text-transform: uppercase;
}
.novena-hero .hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.novena-hero .hero-meta span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); }
.novena-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.novena-hero .hero-cta .btn { padding: 15px 30px; font-size: 16px; }
.novena-hero .hero-cta a.ghost-link {
  color: var(--parchment); text-decoration: none; font-size: 15px;
  border-bottom: 1px solid rgba(232, 197, 106, .5); padding-bottom: 3px;
}
.novena-hero .hero-cta a.ghost-link:hover { color: var(--gold); border-color: var(--gold); }

.hero-art { position: relative; z-index: 1; justify-self: center; width: min(100%, 380px); }
.hero-art .candle-frame {
  position: relative; border-radius: 26px 26px 130px 130px; overflow: hidden;
  aspect-ratio: 380 / 560; border: 1px solid rgba(232, 197, 106, .3);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 120px rgba(232, 197, 106, .1);
}
.hero-art .candle-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.92); }
.hero-art .candle-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 14, 0) 40%, rgba(11, 10, 14, .72) 100%),
              linear-gradient(0deg, rgba(232, 197, 106, .1), transparent 35%);
}
.hero-art .candle-quote {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: min(92%, 330px); text-align: center;
  background: var(--ink-2); border: 1px solid rgba(232, 197, 106, .32); border-radius: 18px;
  padding: 20px 22px; font-family: var(--font-display); font-style: italic;
  font-size: 1.06rem; line-height: 1.55; color: var(--parchment);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
}
.hero-art .candle-quote .src { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* ---------- sticky day rail ---------- */
.day-rail {
  position: sticky; top: 61px; z-index: 30;
  background: rgba(11, 10, 14, .88); backdrop-filter: blur(14px);
  border-block: 1px solid rgba(232, 197, 106, .16);
}
.day-rail ol {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  max-width: 1180px; margin: 0 auto; padding: 12px clamp(14px, 3vw, 26px); list-style: none;
}
.day-rail ol::-webkit-scrollbar { display: none; }
.day-rail a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  color: #a2978a; text-decoration: none; font-size: 13px; letter-spacing: .08em;
  padding: 9px 15px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap; transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.day-rail a .n { font-family: var(--font-inscribe); font-size: 11px; color: var(--gold-deep); }
.day-rail a:hover { color: var(--parchment); border-color: rgba(232, 197, 106, .3); }
.day-rail a.active { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.day-rail a.active .n { color: var(--ink); }

/* ---------- intro / how it works ---------- */
.novena-section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 34px); }
.novena-section .section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(34px, 5vw, 52px); }
.novena-section .section-head .eyebrow { font-family: var(--font-inscribe); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.novena-section .section-head h2 { font-family: var(--font-display); font-weight: 400; color: var(--parchment); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.14; margin: 14px 0 14px; }
.novena-section .section-head h2 em { color: var(--gold); font-style: italic; }
.novena-section .section-head p { color: #b4a99a; font-size: 1.05rem; line-height: 1.7; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-card {
  background: var(--ink-2); border: 1px solid rgba(232, 197, 106, .16); border-radius: 22px;
  padding: 30px 26px; transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.how-card:hover { transform: translateY(-4px); border-color: rgba(232, 197, 106, .4); }
.how-card .step {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(232, 197, 106, .5); color: var(--gold);
  font-family: var(--font-inscribe); font-size: 15px; margin-bottom: 18px;
}
.how-card h3 { font-family: var(--font-display); font-weight: 500; color: var(--parchment); font-size: 1.28rem; margin: 0 0 10px; }
.how-card p { color: #b4a99a; line-height: 1.66; font-size: .98rem; margin: 0; }

/* ---------- the nine days ---------- */
.days-wrap { padding-top: clamp(20px, 3vw, 30px); }
article.day {
  max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 84px) clamp(18px, 4vw, 34px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px);
  scroll-margin-top: 130px;
  border-top: 1px solid rgba(232, 197, 106, .12);
}
article.day .day-side { position: relative; }
article.day .day-side .sticky-inner { position: sticky; top: 150px; }
.day-medallion {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(232, 197, 106, .55); color: var(--gold);
  font-family: var(--font-inscribe); font-size: 30px; letter-spacing: .04em;
  background: radial-gradient(circle at 32% 28%, rgba(232, 197, 106, .16), transparent 62%);
  box-shadow: 0 0 60px rgba(232, 197, 106, .12);
}
article.day .day-label { margin: 20px 0 8px; font-family: var(--font-inscribe); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--rose); }
article.day h2.day-title { font-family: var(--font-display); font-weight: 400; color: var(--parchment); font-size: clamp(1.75rem, 2.8vw, 2.35rem); line-height: 1.12; margin: 0 0 16px; }
article.day h2.day-title em { color: var(--gold); font-style: italic; }
article.day .day-epigraph { font-family: var(--font-display); font-style: italic; color: #a2978a; font-size: 1.02rem; line-height: 1.6; border-left: 2px solid rgba(232, 197, 106, .4); padding-left: 16px; margin: 0; }

.reading-card {
  background: var(--parchment); color: var(--ink); border-radius: 26px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.reading-card .invitation {
  font-family: var(--font-inscribe); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--crimson); margin: 0 0 14px;
}
.reading-card .meditation { font-size: 1.16rem; line-height: 1.82; margin: 0; color: #26201a; }
.reading-card .meditation::first-letter {
  font-family: var(--font-display); font-size: 3.1em; float: left; line-height: .82;
  padding: 6px 12px 0 0; color: var(--crimson);
}
.reading-card .petition-line {
  margin: 26px 0 0; padding-top: 20px; border-top: 1px solid rgba(11, 10, 14, .14);
  font-size: .98rem; color: #5c5147;
}
.reading-card .petition-line a { color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; }

.prayer-card {
  margin-top: 22px; background: var(--ink-2); border: 1px solid rgba(232, 197, 106, .22);
  border-radius: 22px; padding: clamp(24px, 3vw, 34px);
}
.prayer-card .prayer-label {
  font-family: var(--font-inscribe); font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 12px;
}
.prayer-card .collect { font-family: var(--font-display); font-style: italic; font-size: 1.14rem; line-height: 1.72; color: var(--parchment); margin: 0; }
.prayer-card .then { margin: 18px 0 0; color: #a2978a; font-size: .95rem; line-height: 1.7; }
.prayer-card .then a { color: var(--gold); }
.day-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.day-nav a {
  color: var(--gold); text-decoration: none; font-size: 14px; letter-spacing: .06em;
  padding: 10px 18px; border: 1px solid rgba(232, 197, 106, .35); border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.day-nav a:hover { background: var(--gold); color: var(--ink); }

/* ---------- reminders (email signup) ---------- */
.reminders { position: relative; overflow: hidden; }
.reminders::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 65% at 50% 0%, rgba(232, 197, 106, .1), transparent 70%);
}
.reminders-panel {
  position: relative; max-width: 760px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(247, 241, 230, .97), rgba(238, 229, 213, .97));
  color: var(--ink); border-radius: 28px; padding: clamp(34px, 5vw, 56px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45); text-align: center;
}
.reminders-panel .eyebrow { font-family: var(--font-inscribe); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--crimson); }
.reminders-panel h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.85rem, 3.2vw, 2.5rem); line-height: 1.16; margin: 14px 0 12px; }
.reminders-panel h2 em { color: var(--crimson); font-style: italic; }
.reminders-panel .panel-lede { color: #5c5147; font-size: 1.05rem; line-height: 1.7; max-width: 52ch; margin: 0 auto 28px; }

.novena-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; text-align: left; }
.novena-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.novena-form input[type="text"], .novena-form input[type="email"] {
  width: 100%; padding: 15px 18px; border-radius: 14px; font-size: 16px; font-family: var(--font-body);
  border: 1.5px solid rgba(11, 10, 14, .22); background: #fffdf8; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.novena-form input:focus {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(232, 197, 106, .35);
}
.novena-form button {
  padding: 15px 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--crimson); color: var(--parchment); font-family: var(--font-display);
  font-size: 17px; letter-spacing: .02em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.novena-form button:hover { transform: translateY(-2px); background: var(--gold-deep); color: var(--ink); }
.novena-form button:disabled { opacity: .6; transform: none; cursor: wait; }
.form-note { margin: 18px auto 0; font-size: 13px; line-height: 1.75; color: #7c6f62; max-width: 50ch; }
.form-note a { color: var(--crimson); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success {
  display: none; padding: 10px 0 4px;
}
.form-success.show { display: block; animation: rise .5s var(--ease); }
.form-success .check {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  border: 1.5px solid var(--gold-deep); display: grid; place-items: center; color: var(--gold-deep); font-size: 24px;
}
.form-success h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; margin: 0 0 8px; }
.form-success p { color: #5c5147; line-height: 1.7; margin: 0 auto; max-width: 46ch; }
.form-error { display: none; margin: 14px 0 0; color: var(--crimson); font-size: 14.5px; }
.form-error.show { display: block; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- traditional prayers + finale ---------- */
.prayers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.prayer-block {
  background: var(--ink-2); border: 1px solid rgba(232, 197, 106, .18); border-radius: 22px; padding: 30px 28px;
}
.prayer-block h3 { font-family: var(--font-inscribe); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.prayer-block p { color: #cfc4b2; line-height: 1.8; font-size: 1.02rem; margin: 0; }

.finale { position: relative; text-align: center; overflow: hidden; }
.finale .rose-watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(70vw, 460px); opacity: .07; pointer-events: none; }
.finale-card {
  position: relative; max-width: 720px; margin: 0 auto;
  border: 1px solid rgba(232, 197, 106, .3); border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 16, 23, .92), rgba(11, 10, 14, .92));
  padding: clamp(36px, 5vw, 58px);
}
.finale-card .feast-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(232, 197, 106, .4); color: var(--gold);
  font-family: var(--font-inscribe); font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
}
.finale-card h2 { font-family: var(--font-display); font-weight: 400; color: var(--parchment); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 22px 0 16px; }
.finale-card h2 em { color: var(--gold); font-style: italic; }
.finale-card .consecration {
  font-family: var(--font-display); font-style: italic; color: var(--parchment);
  font-size: 1.18rem; line-height: 1.85; max-width: 52ch; margin: 0 auto 30px;
}
.finale-card .finale-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- footer ---------- */
.novena-footer {
  border-top: 1px solid rgba(232, 197, 106, .16);
  padding: 36px clamp(18px, 4vw, 34px) 46px; text-align: center; color: #8d8375; font-size: 13.5px; line-height: 1.9;
}
.novena-footer a { color: #b4a99a; text-decoration: none; border-bottom: 1px solid rgba(232, 197, 106, .3); }
.novena-footer a:hover { color: var(--gold); }

/* ---------- reveals + responsive + print ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .novena-hero { grid-template-columns: 1fr; padding-top: 46px; }
  .hero-art { order: -1; width: min(100%, 320px); margin-top: 26px; }
  article.day { grid-template-columns: 1fr; }
  article.day .day-side .sticky-inner { position: static; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
  .day-medallion { width: 64px; height: 64px; font-size: 22px; }
  .day-side .day-label { margin: 0; }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .novena-form { grid-template-columns: 1fr; }
  .prayers-grid { grid-template-columns: 1fr; }
  .novena-bar .bar-link { display: none; }
  .hero-art .candle-quote { position: static; transform: none; width: 100%; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
@media print {
  .novena-bar, .day-rail, .reminders, .novena-footer, .day-nav, .hero-art { display: none !important; }
  body.novena { background: #fff; color: #111; }
  article.day { page-break-inside: avoid; border: 0; }
  .reading-card { box-shadow: none; }
}
