:root {
  color-scheme: light;
  --espresso: #29170e;
  --rust: #963710;
  --orange: #e66b12;
  --cream: #f6efe3;
  --paper: #fffaf2;
  --peach: #f3dfc9;
  --ink: #261a13;
  --muted: #554235;
  --line: #dfd0bc;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; background-color: var(--espresso); background-image: url("assets/desktop.png"); background-position: center top; background-size: auto 100vh; background-attachment: fixed; line-height: 1.6; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #ef8a26; outline-offset: 4px; }

.site-header, main, .site-footer { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff7ec; text-decoration: none; }
.brand-mark, .footer-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font: 700 13px var(--serif); letter-spacing: -1px; }
.brand-copy { display: grid; line-height: 1.25; font-size: 13px; }
.brand-copy strong { font-weight: 700; }
.brand-copy span { color: #e7d4c0; font-size: 12px; }
.header-link { padding: 9px 16px; border: 1px solid rgba(255,247,236,.56); border-radius: 999px; color: #fff7ec; text-decoration: none; font-size: 12px; font-weight: 600; }
.header-link:hover { background: rgba(255,250,242,.14); }
.header-link span { color: #ffc08c; margin-left: 6px; }

.prayer-top { position: relative; min-height: 500px; display: block; padding: 0; }
.prayer-top-copy { position: absolute; z-index: 2; left: 50%; top: 28px; width: min(820px, calc(100% - 32px)); text-align: center; transform: translateX(-50%); }
.eyebrow, .section-kicker { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 8px; color: var(--rust); }
.prayer-top h1 { margin: 10px 0 0; color: var(--espresso); font: 400 clamp(48px, 5vw, 64px)/1 var(--serif); letter-spacing: -1.5px; }
.prayer-top h1 em { color: var(--rust); font-weight: 400; }
.hero-description { max-width: 570px; margin: 11px auto 0; color: #483528; font-size: 13px; line-height: 1.65; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { margin-top: 23px; background: var(--rust); color: white; }
.button-primary:hover { background: #812b0d; }
.button-primary span { color: #ffc08c; }

.section-kicker { color: var(--rust); }
.jesus-visual { position: absolute; z-index: 0; left: 50%; bottom: -195px; width: 420px; height: 420px; perspective: 1000px; transform: translateX(-50%); transform-style: preserve-3d; }
.jesus-cutout { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 20px rgba(41,23,14,.22)); animation: jesus-float 7s ease-in-out infinite; }
.jesus-orbit { position: absolute; left: 50%; top: 40%; width: 112%; height: 39%; border: 1.5px solid rgba(139,57,18,.66); border-radius: 50%; transform-style: preserve-3d; }
.orbit-a { animation: orbit-a 18s linear infinite; }
.orbit-b { width: 103%; height: 51%; border-color: rgba(255,244,222,.9); animation: orbit-b 23s linear infinite; }
.jesus-orbit-dot { position: absolute; z-index: 2; left: 50%; top: 40%; width: 10px; height: 10px; margin: -5px 0 0; border-radius: 50%; background: #fff4df; box-shadow: 0 0 14px rgba(255,248,230,.95); transform-origin: 0 0; animation: orbit-dot 13s linear infinite; }
@keyframes jesus-float { 0%,100% { transform: translateY(0) rotateY(-2deg); } 50% { transform: translateY(-9px) rotateY(2deg); } }
@keyframes orbit-a { from { transform: translate(-50%,-50%) rotateX(68deg) rotateZ(0deg); } to { transform: translate(-50%,-50%) rotateX(68deg) rotateZ(360deg); } }
@keyframes orbit-b { from { transform: translate(-50%,-50%) rotateX(72deg) rotateY(18deg) rotateZ(360deg); } to { transform: translate(-50%,-50%) rotateX(72deg) rotateY(18deg) rotateZ(0deg); } }
@keyframes orbit-dot { from { transform: rotate(0deg) translateX(188px); } to { transform: rotate(360deg) translateX(188px); } }
.community-count { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: fit-content; margin: 18px auto 0; text-align: center; }
.event-intro { padding: 20px 0; }
.event-intro h2 { margin: 9px 0 10px; font: 400 clamp(30px, 3.5vw, 42px)/1.13 var(--serif); letter-spacing: -.7px; }

.prayers-section { position: relative; z-index: 3; margin-top: -42px; padding: 0 0 76px; }
.community-count strong { color: var(--rust); font: 400 38px/.98 var(--serif); }
.count-copy { display: grid; line-height: 1.35; }
.count-copy b { color: #483528; font-size: 12px; font-weight: 700; letter-spacing: .015em; white-space: nowrap; }
.prayers-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 17px; align-items: stretch; }
.prayer-card { grid-column: span 2; min-height: 300px; display: flex; flex-direction: column; padding: 23px; border: 1px solid rgba(255,250,242,.8); border-radius: 28px; background: rgba(255,250,242,.84); box-shadow: 0 10px 30px rgba(34,17,8,.1); backdrop-filter: blur(7px); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.prayer-card:nth-child(4) { grid-column: 2 / span 2; }
.prayer-card:hover { border-color: #c79570; box-shadow: 0 11px 24px rgba(74,40,21,.08); transform: translateY(-3px); }
.card-top { min-height: 70px; }
.card-header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-category { padding: 5px 9px; border-radius: 999px; background: #f4e6d3; color: var(--rust); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-index { color: #705b49; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.card-title { margin: 0; color: var(--espresso); font: 400 23px/1.18 var(--serif); }
.card-count-box { display: flex; justify-content: space-between; align-items: center; padding: 10px 3px; margin: 21px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.count-label { color: var(--muted); font-size: 11px; }
.count-num { color: var(--espresso); font: 400 20px var(--serif); }
.btn-pray { width: 100%; min-height: 45px; padding: 9px 12px; border: 0; border-radius: 999px; background: var(--rust); color: white; font: 700 12px var(--sans); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn-pray:hover { background: #812b0d; transform: translateY(-1px); }
.drawer-wrapper { margin-top: 9px; }
.drawer-btn { width: 100%; min-height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 4px 3px; border: 0; background: transparent; color: var(--muted); font: 600 11px var(--sans); text-align: left; cursor: pointer; }
.drawer-btn:hover { color: var(--rust); }
.drawer-arrow { transition: transform .2s ease; }
.drawer-btn[aria-expanded="true"] .drawer-arrow { transform: rotate(180deg); }
.drawer-text { display: none; max-height: 250px; overflow: auto; margin-top: 6px; padding: 14px; border-radius: 18px; background: #f5ecdf; color: #38291f; font-size: 12px; line-height: 1.8; white-space: pre-line; }
.drawer-text.open { display: block; }

.closing-note { position: relative; display: flex; flex-direction: column; align-items: center; padding: 43px 20px; color: var(--espresso); text-align: center; }
.closing-star { color: var(--rust); font-size: 18px; }
.closing-note p { margin: 9px 0 8px; font: 400 clamp(24px, 3vw, 33px)/1.25 var(--serif); }
.closing-note em { color: var(--rust); }
.closing-motto { color: #483528; font-size: 9px; font-weight: 700; letter-spacing: .12em; }

.event-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 65px; padding: 76px 5% 68px; color: var(--espresso); }
.event-section .section-kicker { color: var(--rust); }
.event-section .event-intro > p:not(.section-kicker),
.event-section .fact-label,
.event-section .event-fact div > span:last-child { color: #554235; }
.event-intro h2 { font-size: 37px; }
.event-intro > p:not(.section-kicker) { max-width: 390px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.button-event { min-height: 42px; margin-top: 19px; padding-inline: 17px; border: 1px solid #9b6b4b; color: var(--espresso); font-size: 11px; }
.button-event:hover { background: rgba(255,250,242,.55); }
.button-event span { color: var(--rust); }
.event-details { display: grid; gap: 9px; }
.event-fact { min-height: 73px; display: flex; align-items: center; gap: 14px; padding: 13px 5px; border-bottom: 1px solid rgba(71,34,15,.32); }
.fact-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f0deca; color: var(--rust); font-size: 16px; }
.event-fact div { display: grid; line-height: 1.45; }
.fact-label { margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.event-fact strong { font-size: 12px; }
.event-fact div > span:last-child { color: var(--muted); font-size: 11px; }

.site-footer { min-height: 82px; display: flex; align-items: center; gap: 15px; padding: 15px 0 27px; color: #fff7ec; }
.footer-mark { flex: 0 0 36px; width: 36px; height: 36px; font-size: 11px; }
.site-footer p { margin: 0; color: #fff7ec; font-size: 11px; line-height: 1.7; }
.site-footer a { color: #fff7ec; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,247,236,.55); text-underline-offset: 2px; }
.site-footer a:hover { color: #ffd19e; }
.footer-sep { color: #ffd19e; }
.footer-date { margin-left: auto; color: #fff0d9; font-size: 8px; font-weight: 700; letter-spacing: .11em; }

.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; max-width: calc(100% - 48px); padding: 12px 18px; border-radius: 999px; background: var(--espresso); color: white; font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .site-header, main, .site-footer { width: min(100% - 36px, 680px); }
  body { background-size: auto 100vh; }
  .prayer-top { min-height: 450px; }
  .prayer-top-copy { left: 50%; top: 22px; width: calc(100% - 28px); }
  .prayer-top h1 { font-size: clamp(38px, 5vw, 50px); }
  .jesus-visual { left: 50%; right: auto; bottom: -150px; width: 360px; height: 360px; }
  .prayers-section { margin-top: -46px; }
  .community-count { margin-top: 14px; }
  .community-count strong { font-size: 34px; }
  .count-copy b { font-size: 11px; }
  .prayers-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .prayer-card, .prayer-card:nth-child(4) { grid-column: auto; }
  .prayer-card:last-child { grid-column: 1 / -1; }
  .event-section { grid-template-columns: .9fr 1.1fr; gap: 25px; padding-inline: 2%; }
  .footer-date { display: none; }
}

@media (max-width: 560px) {
  body { background-image: url("assets/mobile.png"); background-size: auto 100vh; background-position: center top; background-attachment: fixed; }
  html { scroll-padding-top: 12px; }
  .site-header, main, .site-footer { width: calc(100% - 28px); }
  .site-header { min-height: 70px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy { font-size: 11px; }
  .brand-copy span { font-size: 10px; }
  .header-link { padding: 8px 12px; font-size: 10px; }
  .prayer-top { position: relative; display: block; min-height: 455px; padding: 0; overflow: hidden; }
  .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .prayer-top-copy { top: 18px; left: 50%; max-width: none; width: calc(100% - 12px); transform: translateX(-50%); }
  .prayer-top h1 { margin-top: 8px; font-size: clamp(34px, 9vw, 44px); }
  .hero-description { max-width: 330px; margin: 9px auto 0; font-size: 11px; }
  .community-count { gap: 2px; margin-top: 14px; }
  .community-count strong { font-size: 36px; }
  .count-copy b { font-size: 11px; }
  .jesus-visual { position: absolute; left: 50%; right: auto; bottom: -92px; width: min(330px, 90%); height: 330px; transform: translateX(-50%); }
  .jesus-orbit { width: 132%; height: 37%; }
  .orbit-b { width: 121%; height: 47%; }
  @keyframes orbit-dot { from { transform: rotate(0deg) translateX(85px); } to { transform: rotate(360deg) translateX(85px); } }
  .prayers-section { margin-top: -42px; padding: 0 0 52px; }
  .event-intro h2 { font-size: 32px; }
  .prayers-grid { grid-template-columns: 1fr; gap: 11px; }
  .prayer-card, .prayer-card:last-child { grid-column: auto; min-height: 0; padding: 19px; border-radius: 24px; }
  .card-top { min-height: 0; margin-bottom: 18px; }
  .card-count-box { margin-top: 0; }
  .closing-note { padding: 34px 16px; border-radius: 27px; }
  .closing-note p { font-size: 25px; }
  .closing-motto { font-size: 8px; }
  .event-section { grid-template-columns: 1fr; gap: 25px; padding: 56px 4% 45px; }
  .event-intro h2 { margin-top: 8px; }
  .event-fact { border-radius: 19px; }
  .site-footer { align-items: flex-start; gap: 11px; padding: 18px 0 25px; }
  .footer-mark { flex-basis: 33px; width: 33px; height: 33px; }
  .site-footer p { font-size: 11px; line-height: 1.7; }
  .footer-sep { display: none; }
  .site-footer p a { display: block; width: fit-content; margin-top: 4px; font-size: 11px; }
  .toast { right: 14px; bottom: 14px; max-width: calc(100% - 28px); }
}

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