:root {
  --ink: #27241f;
  --ink-soft: #665f52;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --yellow: #f3b91f;
  --yellow-bright: #f8cc4b;
  --yellow-pale: #fff1b5;
  --olive: #596144;
  --line: rgba(39, 36, 31, .12);
  --shadow: 0 24px 80px rgba(87, 67, 14, .13);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 30;
  background: rgba(255, 255, 255, .2);
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width .1s linear;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 20px;
}
.brand img { display: block; width: 106px; height: auto; filter: drop-shadow(0 8px 14px rgba(45, 38, 19, .13)); }
.icon-button {
  margin-top: 12px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(39, 36, 31, .18);
  border-radius: 50%;
  background: rgba(255, 252, 234, .62);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.icon-button:hover { background: rgba(255, 255, 255, .88); }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 140px 24px 120px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,243,183,.38)),
    url("assets/background-original.png") center top / auto 390px repeat-x,
    linear-gradient(145deg, #ffe786 0%, #ffd85e 44%, #f4bd2e 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .34);
}
.hero::before { width: 560px; height: 560px; }
.hero::after { width: 690px; height: 690px; }
.sun-halo {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 250, 221, .42);
  box-shadow: 0 0 110px 80px rgba(255, 243, 175, .2);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: #5f4d12;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow span { width: 26px; height: 1px; background: currentColor; }
.hero h1 {
  margin: 0;
  font: 400 clamp(3.5rem, 8vw, 6.7rem)/.91 var(--serif);
  letter-spacing: -.035em;
}
.hero h1 em { color: #6c5a1d; font-weight: 400; }
.hero-intro {
  max-width: 560px;
  margin: 28px auto 0;
  color: #514821;
  font-size: 1.08rem;
  line-height: 1.7;
}
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(44, 39, 22, .13);
  border-radius: 999px;
  background: rgba(255, 252, 230, .48);
  font-size: .77rem;
  font-weight: 600;
}
.hero-meta svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hero-meta b { font: inherit; }
.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(55, 47, 20, .7);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.scroll-cue svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.hero-leaf { position: absolute; z-index: 1; width: 210px; height: 520px; opacity: .45; }
.hero-leaf::before,
.hero-leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--olive);
  clip-path: polygon(49% 100%,48% 69%,18% 60%,47% 64%,45% 41%,11% 25%,47% 35%,49% 0,53% 37%,88% 19%,54% 44%,55% 68%,89% 52%,56% 75%,55% 100%);
}
.leaf-one { left: -30px; bottom: -150px; transform: rotate(-17deg); }
.leaf-two { right: -45px; top: 80px; transform: rotate(162deg) scale(.85); opacity: .26; }

.devotional-shell {
  position: relative;
  z-index: 4;
  width: min(900px, calc(100% - 32px));
  margin: -54px auto 0;
}
.devotional-card {
  padding: clamp(38px, 7vw, 84px) clamp(24px, 8vw, 90px) 56px;
  border: 1px solid rgba(72, 56, 17, .09);
  border-radius: 32px 32px 10px 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.section-label span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow-pale);
  color: #806000;
  font-size: .67rem;
  font-weight: 700;
}
.section-label p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.verse { position: relative; margin: 0; padding-left: clamp(0px, 5vw, 62px); }
.quote-mark { position: absolute; top: 0; left: 0; width: 40px; fill: var(--yellow-bright); opacity: .8; transform: translateX(-4px); }
.verse p { margin: 0; font: 400 clamp(1.75rem, 4vw, 2.6rem)/1.22 var(--serif); letter-spacing: -.015em; }
.verse cite { display: block; margin-top: 19px; color: var(--ink-soft); font-size: .9rem; font-style: normal; font-weight: 600; }

.devotional-label { margin-top: 66px; margin-bottom: 24px; }
.devotional-text { color: #3e3a33; font: 400 1.08rem/1.9 var(--sans); }
.devotional-text p { margin: 0 0 1.35em; }
.devotional-text .opening { color: var(--ink); font: 400 1.5rem/1.55 var(--serif); }
.devotional-text em { font-family: var(--serif); font-size: 1.14em; }

.remember-card {
  position: relative;
  overflow: hidden;
  margin: 46px 0;
  padding: 30px;
  border-radius: 20px;
  background: var(--ink);
  color: #fffaf0;
  text-align: center;
}
.remember-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border: 24px solid rgba(248, 204, 75, .12);
  border-radius: 50%;
}
.remember-card p { margin: 0; color: #e3ce86; font-size: .67rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.remember-card strong { display: block; margin: 8px 0 10px; color: var(--yellow-bright); font: 400 2.6rem var(--serif); }
.remember-card span { font-family: var(--serif); font-style: italic; opacity: .82; }

.practice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin: 50px 0 68px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}
.practice-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow-pale); color: #8a6500; }
.practice-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.mini-label { margin: 0 0 7px !important; color: #8a6500; font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.practice h2 { margin: 0 0 8px; font: 400 1.45rem var(--serif); }
.practice p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }

.prayer-label { margin-top: 10px; }
.prayer {
  position: relative;
  padding: 34px clamp(24px, 6vw, 48px);
  border-radius: 22px;
  background: linear-gradient(140deg, #fff6ce, #ffedaa);
}
.prayer svg { width: 25px; fill: none; stroke: #98700a; stroke-width: 1.4; }
.prayer p { margin: 19px 0 0; font: 400 1.18rem/1.72 var(--serif); }

.reading-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 20px 5px 18px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.reading-link small { display: block; margin-bottom: 3px; color: var(--ink-soft); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.reading-link strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.reading-link svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s; }
.reading-link:hover svg { transform: translateX(4px); }

footer { display: flex; flex-direction: column; align-items: center; padding: 70px 24px 40px; text-align: center; }
footer > img { width: 78px; height: auto; opacity: .85; }
footer p { margin: 13px 0 28px; font-family: var(--serif); color: var(--ink-soft); }
footer span { display: flex; align-items: center; gap: 7px; color: #8c867c; font-size: .67rem; }
footer span a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(140, 134, 124, .35); }
footer span a:hover { color: var(--ink); border-bottom-color: currentColor; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 22px;
  width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  text-align: center;
  font-size: .82rem;
  line-height: 1.4;
  box-shadow: 0 14px 40px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.large-text .devotional-text { font-size: 1.24rem; }
body.large-text .prayer p { font-size: 1.3rem; }

@media (max-width: 700px) {
  .site-header { width: calc(100% - 28px); padding-top: 14px; }
  .brand img { width: 82px; }
  .icon-button { width: 42px; height: 42px; }
  .hero { min-height: 660px; padding: 122px 20px 100px; }
  .hero::before { width: 350px; height: 350px; }
  .hero::after { width: 450px; height: 450px; }
  .sun-halo { width: 290px; height: 290px; }
  .hero h1 { font-size: clamp(3.25rem, 16vw, 4.7rem); }
  .hero-intro { max-width: 330px; font-size: .98rem; }
  .hero-leaf { width: 140px; height: 380px; }
  .leaf-one { left: -48px; bottom: -135px; }
  .leaf-two { right: -65px; top: 105px; }
  .devotional-shell { width: calc(100% - 18px); margin-top: -38px; }
  .devotional-card { padding: 40px 22px; border-radius: 24px 24px 8px 8px; }
  .quote-mark { position: static; display: block; width: 32px; margin-bottom: 14px; }
  .verse { padding-left: 0; }
  .verse p { font-size: 1.75rem; }
  .devotional-text { font-size: 1rem; line-height: 1.82; }
  .devotional-text .opening { font-size: 1.32rem; }
  .remember-card { padding: 28px 18px; }
  .practice { grid-template-columns: 1fr; padding: 22px; }
  .prayer { padding: 28px 22px; }
  .prayer p { font-size: 1.08rem; }
}

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