:root {
  --navy-950: #050d1d;
  --navy-900: #07152f;
  --navy-800: #0b2246;
  --navy-700: #123765;
  --gold-500: #d9ad4b;
  --gold-400: #edca72;
  --gold-200: #f7e8b7;
  --cream-100: #fbf6e9;
  --cream-50: #fffdf8;
  --paper: #ffffff;
  --ink: #1d2634;
  --muted: #5b6470;
  --green: #286548;
  --line: #e6dcc5;
  --shadow: 0 18px 50px rgba(34, 29, 19, .10);
  --radius-lg: 26px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy-900);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(100% - 36px, 1040px); margin-inline: auto; }
.reading-width { max-width: 790px; }

.access-bar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px;
  color: #fff;
  background: var(--navy-950);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.access-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #56d395;
  box-shadow: 0 0 0 5px rgba(86, 211, 149, .15);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 14%, rgba(240, 194, 92, .24), transparent 27rem),
    linear-gradient(145deg, var(--navy-800), var(--navy-950));
  text-align: center;
}
.hero::before,
.hero::after {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(237, 202, 114, .15);
  border-radius: 50%;
  content: '';
}
.hero::before { top: -250px; left: -100px; }
.hero::after { right: -160px; bottom: -260px; }
.hero-content { position: relative; z-index: 1; }
.prayer-mark {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  place-items: center;
  border: 2px solid rgba(247, 232, 183, .72);
  border-radius: 50%;
  color: var(--gold-400);
  background: linear-gradient(145deg, #17365e, #07152f);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .35), inset 0 0 0 7px rgba(255,255,255,.035);
}
.prayer-mark span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}
.eyebrow,
.section-kicker,
.day-theme {
  margin: 0 0 10px;
  color: #9a711c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--gold-400); }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; text-wrap: balance; }
h1 {
  margin: 0;
  color: #fff8dc;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-shadow: 0 4px 22px rgba(218, 173, 75, .2);
}
h2 {
  margin: 0 0 18px;
  font-size: clamp(35px, 6vw, 52px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
h3 { margin: 0; font-size: clamp(27px, 4vw, 36px); line-height: 1.22; }
h4 { margin: 28px 0 7px; color: var(--navy-800); font-size: 20px; line-height: 1.35; }
p { margin: 0 0 18px; }
.hero-lead {
  max-width: 760px;
  margin: 22px auto 26px;
  color: #e9edf4;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.55;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 30px;
}
.hero-facts span {
  padding: 8px 14px;
  border: 1px solid rgba(247, 232, 183, .3);
  border-radius: 999px;
  color: var(--gold-200);
  background: rgba(255,255,255,.05);
  font-size: 15px;
  font-weight: 700;
}
.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.button-primary {
  color: #172033;
  background: linear-gradient(180deg, #f3d582, var(--gold-500));
  box-shadow: 0 12px 28px rgba(217, 173, 75, .22);
}
.button-primary:hover { background: #f4da91; }
.button:focus-visible,
.complete-button:focus-visible,
.listen-link:focus-visible,
.reset-button:focus-visible {
  outline: 4px solid #62a8ff;
  outline-offset: 3px;
}
.scroll-help { margin: 18px 0 0; color: #b9c2d1; font-size: 15px; }

.section { padding: 76px 0; }
.section-light { background: var(--cream-50); }
.section-cream { background: var(--cream-100); }
.section-prayer {
  color: #fff;
  background:
    radial-gradient(circle at 50% 35%, rgba(217,173,75,.16), transparent 31rem),
    var(--navy-900);
}
.section-night { color: #fff; background: var(--navy-950); }
.section-heading { margin-bottom: 36px; text-align: center; }
.section-intro { color: var(--muted); font-size: 21px; }
.section-prayer .section-intro,
.section-night .section-intro { color: #c9d1de; }
.section-kicker-gold { color: var(--gold-400); }

.simple-steps { display: grid; gap: 14px; margin: 32px 0; }
.simple-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy-800);
  font-weight: 800;
}
.simple-step h3 { margin-bottom: 2px; font-family: Arial, Helvetica, sans-serif; font-size: 21px; }
.simple-step p { margin: 0; color: var(--muted); font-size: 17px; }
.important-note {
  padding: 26px 28px;
  border-left: 6px solid var(--gold-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: #fff5d9;
}
.important-note h3 { margin-bottom: 8px; font-family: Arial, Helvetica, sans-serif; font-size: 21px; }
.important-note p { margin: 0; font-size: 17px; }

.main-prayer-card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 58px);
  border: 1px solid rgba(237,202,114,.45);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: linear-gradient(145deg, #fffdf7, #f8edcf);
  box-shadow: 0 22px 55px rgba(0,0,0,.25);
  text-align: center;
}
.main-prayer-card::before {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -95px;
  right: -85px;
  border: 1px solid rgba(185,134,34,.25);
  border-radius: 50%;
  content: '';
}
.twenty-seal {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  place-items: center;
  border: 2px solid #a97920;
  border-radius: 50%;
  color: #7d5510;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 700;
}
.main-prayer {
  margin: 0 auto 30px;
  color: #263754;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(27px, 5vw, 38px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
}
.prayer-audio-wrap {
  width: min(100%, 560px);
  margin: 30px auto 0;
  padding: 20px;
  border: 1px solid rgba(8, 40, 88, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 28px rgba(7, 21, 47, .10);
}
.audio-title {
  margin: 0 0 12px;
  color: var(--navy-800);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.prayer-audio {
  display: block;
  width: 100%;
  min-height: 54px;
  accent-color: var(--navy-700);
}
.prayer-audio:focus-visible {
  outline: 4px solid #62a8ff;
  outline-offset: 4px;
}
.audio-help { margin: 14px 0 0; color: #6b6559; font-size: 14px; }
.meaning-card {
  margin-top: 24px;
  padding: 26px 28px;
  border: 1px solid rgba(237,202,114,.27);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
}
.meaning-card h3 { margin-bottom: 8px; color: var(--gold-200); font-size: 24px; }
.meaning-card p { margin: 0; color: #d4dbe6; }

.progress-card {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) 1fr;
  gap: 28px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 26px;
  padding: 22px 26px;
  border: 1px solid #dacbaa;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 28px rgba(45, 35, 15, .06);
}
.progress-card strong { display: block; color: var(--navy-800); font-size: 19px; }
.progress-card span { color: var(--muted); font-size: 14px; }
.progress-track { overflow: hidden; height: 14px; border-radius: 999px; background: #e8e2d7; }
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b88625, #e3bd5c);
  transition: width .25s ease;
}
.days { display: grid; gap: 28px; }
.day-card {
  overflow: hidden;
  max-width: 900px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.day-card.is-complete { border-color: #76a78b; }
.day-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 27px 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.day-label {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid rgba(237,202,114,.5);
  border-radius: 50%;
  color: var(--gold-200);
  font-size: 16px;
  font-weight: 800;
}
.day-theme { margin-bottom: 2px; color: var(--gold-400); font-size: 12px; }
.day-heading h3 { font-size: clamp(26px, 4vw, 34px); }
.day-content { padding: clamp(25px, 5vw, 42px); }
.day-intention {
  padding: 18px 20px;
  border-left: 5px solid var(--gold-500);
  border-radius: 0 14px 14px 0;
  background: #fff8e6;
}
.prayer-refrain {
  margin-bottom: 10px;
  padding-left: 18px;
  border-left: 3px solid #c6ac70;
  color: #3e4754;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-style: italic;
}
.listen-link {
  padding: 8px 0;
  border: 0;
  color: var(--navy-700);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.today-action {
  margin: 28px 0 24px;
  padding: 22px;
  border: 1px solid #cadfcf;
  border-radius: var(--radius-md);
  background: #f1f8f3;
}
.today-action strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.today-action p { margin: 0; }
.complete-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 2px solid var(--navy-800);
  border-radius: 14px;
  color: var(--navy-800);
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.complete-button:hover { background: #f1f5fa; }
.complete-button .check { display: none; }
.complete-button[aria-pressed="true"] { border-color: var(--green); color: #fff; background: var(--green); }
.complete-button[aria-pressed="true"] .check { display: inline; }

.completion-section { text-align: center; }
.final-mark { margin-bottom: 12px; color: var(--gold-500); font-size: 44px; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.button-secondary-dark { border-color: var(--gold-400); color: var(--gold-200); background: transparent; }
.reset-button {
  margin-top: 25px;
  padding: 10px;
  border: 0;
  color: #aab5c5;
  background: transparent;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.clarification-section h2 { font-size: clamp(30px, 5vw, 42px); }
.clarification-section p { color: var(--muted); font-size: 16px; }

footer {
  padding: 42px 0;
  color: #b9c2cf;
  background: var(--navy-950);
  text-align: center;
  font-size: 14px;
}
footer strong { color: var(--gold-200); font-size: 18px; }
footer p { margin: 6px 0; }
.copyright { margin-top: 16px; color: #8e99a9; }
.toast {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100% - 36px));
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
  font-size: 16px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 720px) {
  body { font-size: 18px; }
  .shell { width: min(100% - 24px, 1040px); }
  .hero { padding: 50px 0 58px; }
  .section { padding: 58px 0; }
  .hero-facts { display: grid; }
  .progress-card { grid-template-columns: 1fr; gap: 14px; }
  .day-heading { grid-template-columns: 1fr; padding: 24px; }
  .day-label {
    width: auto;
    height: auto;
    justify-self: start;
    padding: 7px 13px;
    border-radius: 999px;
  }
  .final-actions { display: grid; }
  .button { width: 100%; }
  .toast { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  @page { margin: 16mm; }
  body { color: #111; background: #fff; font-size: 12pt; }
  .access-bar,
  .hero .button,
  .scroll-help,
  .progress-card,
  .complete-button,
  .listen-link,
  .prayer-audio-wrap,
  .audio-help,
  .final-actions,
  .reset-button,
  .toast,
  .skip-link { display: none !important; }
  .hero,
  .section-prayer,
  .section-night { color: #111; background: #fff; }
  .hero { padding: 20px 0 30px; }
  .hero-lead,
  .section-prayer .section-intro,
  .section-night .section-intro,
  .meaning-card p { color: #333; }
  .hero-facts span { color: #111; border-color: #777; }
  h1,
  .hero .eyebrow,
  .section-kicker-gold { color: #111; text-shadow: none; }
  .section { padding: 24px 0; }
  .main-prayer-card,
  .meaning-card,
  .day-card { break-inside: avoid; border: 1px solid #888; box-shadow: none; }
  .main-prayer-card,
  .meaning-card { color: #111; background: #fff; }
  .day-heading { color: #111; background: #eee; }
  .day-label,
  .day-theme { color: #111; border-color: #777; }
  footer { color: #333; background: #fff; border-top: 1px solid #aaa; }
  footer strong { color: #111; }
}
