:root {
  color-scheme: light;
  --night: #171b2f;
  --night-deep: #111528;
  --paper: #f8f5ee;
  --white: #fffdf7;
  --gold: #e9c88c;
  --ink: #27263a;
  --muted: #58556a;
  --line: #d9d3c8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
body, main { min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; width: 1.15em; height: 1.15em; flex: none; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.11; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #89622f; outline-offset: 5px; }
.site-header :focus-visible, .hero :focus-visible, .reading-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.frame { width: min(100% - 4rem, 70rem); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .75rem; left: .75rem; z-index: 3; background: var(--white); padding: .5rem 1rem; }
.review-note { padding: .3rem 1rem; background: var(--gold); color: var(--night-deep); text-align: center; font-size: .75rem; font-weight: 650; }

.site-header { background: var(--night); color: var(--white); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-inner { min-height: 4.4rem; border-bottom: 1px solid #ffffff20; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font: 1.12rem/1.2 var(--serif); }
.wordmark svg { width: 1.15rem; height: 1.15rem; color: var(--gold); }
.site-header nav { display: flex; gap: clamp(.85rem, 3vw, 2.25rem); font-size: .85rem; }
.site-header nav a { padding-block: .6rem; color: #e3def1; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero { background: radial-gradient(ellipse at 78% 60%, #252840, transparent 60%), var(--night); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(1rem, 4vw, 4rem); padding-block: clamp(2.6rem, 5vw, 4.25rem) 3.2rem; }
.eyebrow { display: flex; align-items: center; gap: .58rem; font-size: .7rem; font-weight: 750; letter-spacing: .15em; line-height: 1.35; text-transform: uppercase; }
.eyebrow > span:first-child:empty { display: block; width: 1.35rem; height: 1px; background: currentColor; }
.eyebrow-divider { opacity: .62; }
.hero-eyebrow { color: var(--gold); margin-bottom: 1.25rem; }
.hero h1 { font: 400 clamp(3rem, 6.55vw, 6.1rem)/.99 var(--serif); letter-spacing: -.063em; }
.hero h1 em { display: block; color: var(--gold); font-weight: 400; letter-spacing: -.07em; }
.hero-subtitle { margin-top: 1.45rem; color: #ece5f0; font-size: clamp(.97rem, 1.7vw, 1.2rem); }
.hero-action { display: flex; align-items: flex-start; flex-wrap: wrap; column-gap: 1.35rem; row-gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 3.05rem; width: fit-content; max-width: 100%; padding: .65rem 1.08rem; border: 1px solid transparent; border-radius: .32rem; font-size: .88rem; line-height: 1.35; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-gold { color: var(--night-deep); background: var(--gold); }
.button-gold:hover { background: #f4d9a7; }
.button-dark { color: var(--white); background: var(--night); }
.button-dark:hover { background: #343650; }
.hero-status { display: flex; align-items: baseline; gap: .5rem; padding-top: .22rem; color: #eee7f3; font-size: .77rem; }
.status-dot { width: .39rem; height: .39rem; flex: none; border-radius: 50%; background: var(--gold); }
.today-title { font-size: .72rem; letter-spacing: .07em; }
.countdown { display: flex; align-items: baseline; justify-content: center; gap: .8rem; font-size: .82rem; font-variant-numeric: tabular-nums; }
.countdown strong { font-size: 1.15em; }
.hero-status .countdown { justify-content: flex-start; gap: .56rem; color: #c8c1d6; font-size: .72rem; }
.hero-art { min-width: 0; width: min(100%, 28.5rem); justify-self: center; }
.hero-art img { width: 100%; }
.hero-art figcaption { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem 1.3rem; padding-top: .65rem; font-size: .65rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: #e2cfae; }

.calendar { padding-block: clamp(3.4rem, 7vw, 5.4rem) 4.5rem; }
.section-intro { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.25rem 2rem; margin-bottom: 2.35rem; }
.section-intro .eyebrow, .guide .eyebrow { color: #6e526d; }
.section-intro h2, .guide h2 { margin-top: .65rem; font: 400 clamp(2.35rem, 4.75vw, 4rem)/1.04 var(--serif); letter-spacing: -.055em; }
.section-intro p:last-child, .guide-intro { margin-top: .75rem; color: var(--muted); }
.progress { min-width: min(15rem, 100%); padding-bottom: .2rem; }
.progress label { display: flex; justify-content: space-between; gap: 1rem; font-size: .79rem; }
progress { appearance: none; display: block; width: 100%; height: .35rem; margin-top: .42rem; border: 0; border-radius: 1rem; background: #e8dfd3; }
progress::-webkit-progress-bar { border-radius: 1rem; background: #e8dfd3; }
progress::-webkit-progress-value { border-radius: 1rem; background: #70608d; }
progress::-moz-progress-bar { border-radius: 1rem; background: #70608d; }

.promessa { --stage-ink: #51416e; --stage-soft: #ebe4f1; --stage-night: #24243d; }
.chegada { --stage-ink: #794d29; --stage-soft: #f2e6d5; --stage-night: #32263a; }
.esperanca { --stage-ink: #365b5d; --stage-soft: #e0ece7; --stage-night: #1f303c; }
.stage { padding-block: 1.35rem 1.7rem; border-top: 1px solid var(--line); }
.stage-heading { display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: center; margin-bottom: .9rem; }
.stage-number { display: grid; place-items: center; min-width: 2.85rem; min-height: 2.85rem; background: var(--stage-soft); color: var(--stage-ink); border-radius: 50%; font: 1.05rem/1 var(--serif); }
.stage-heading h3 { font: 400 1.6rem/1.1 var(--serif); }
.stage-heading p { margin-top: .17rem; color: var(--muted); font-size: .83rem; }
.stage-range { color: var(--stage-ink); font-size: .72rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; padding: 0; margin: 0; list-style: none; }
.tile { display: grid; grid-template-rows: auto 1fr auto; min-height: 6.65rem; height: 100%; padding: .65rem .83rem; background: var(--stage-soft); border: 1px solid transparent; border-radius: .33rem; color: var(--stage-ink); text-decoration: none; }
.tile-locked { background: transparent; border-color: var(--line); color: var(--muted); }
.tile-today { background: var(--night); border-color: var(--night); color: var(--gold); }
.tile:hover { border-color: var(--stage-ink); }
.tile-today:hover { border-color: var(--gold); }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: .25rem; font-size: .64rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.tile-icon, .tile-icon svg { width: .95rem; height: .95rem; }
.tile strong { align-self: center; font: 400 clamp(1.65rem, 4vw, 2.35rem)/1.05 var(--serif); }
.tile-status { font-size: .69rem; font-weight: 650; }
.calendar-note { padding-top: .25rem; color: var(--muted); font-size: .8rem; }

.guide { padding-block: 3.5rem 4rem; background: #ede8f0; }
.guide h2 { max-width: 23ch; font-size: clamp(2.15rem, 4.6vw, 3.65rem); }
.guide-intro { max-width: 68ch; }
.guide-intro p + p { margin-top: .65rem; }
.guide-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 0; margin: 1.9rem 0 0; list-style: none; }
.guide-steps li { border-top: 1px solid #c8bbce; padding-top: .75rem; }
.guide-steps li > span { color: #6e526d; font-size: .7rem; font-weight: 750; }
.guide-steps h3 { margin-block: .4rem; font: 400 1.35rem/1.1 var(--serif); }
.guide-steps p { color: var(--muted); font-size: .88rem; }
.site-footer { background: var(--night-deep); color: #e4dcec; }
.footer-inner { padding-block: 1.55rem; }
.footer-inner p { font-size: .77rem; }

.reading-shell, .reading-content { width: min(100% - 4rem, 48rem); }
.reading-shell { padding-block: 1.9rem 3.3rem; }
.reading-hero { color: var(--white); background: var(--stage-night); }
.reading-hero .eyebrow { color: var(--gold); margin-top: 2rem; }
.back-link, .reading-nav a { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; min-height: 2.65rem; font-size: .85rem; font-weight: 650; text-decoration: none; }
.back-link:hover, .reading-nav a:hover { text-decoration: underline; text-underline-offset: .24em; }
.reading-title { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 1.7rem); margin-top: 1rem; }
.reading-number { color: var(--gold); font: italic 400 clamp(2.4rem, 7vw, 5.4rem)/.9 var(--serif); }
.reading-title h1 { max-width: 22ch; padding-left: clamp(.85rem, 3vw, 1.7rem); border-left: 1px solid #f5ddad66; font: 400 clamp(1.48rem, 4.5vw, 3.2rem)/1.1 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.reading-content { padding-block: 2rem 4rem; }
.scripture { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.2rem; background: #ece6f1; border-radius: .32rem; }
.scripture-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border: 1px solid #c2b0cc; border-radius: 50%; }
.scripture p { margin-top: .16rem; font: 1.28rem/1.25 var(--serif); }
.reading-step { margin-top: 2rem; }
.reading-step h2 { font: 400 1.7rem/1.13 var(--serif); }
.reading-step p, .reading-prayer p { margin-top: .62rem; line-height: 1.72; }
.reading-question, .reading-prayer { margin-top: 1.7rem; padding: 1.15rem 1.25rem; border-radius: .2rem; }
.reading-question { border-left: 3px solid #9275a2; background: #efe9f1; }
.reading-question p { margin-top: .6rem; font: italic 1.23rem/1.43 var(--serif); }
.reading-prayer { background: var(--night); color: var(--white); }
.reading-prayer .eyebrow { color: var(--gold); }
.reading-prayer h2 { font: inherit; }
.editorial-note { margin-top: .6rem; color: var(--muted); font-size: .85rem; }
.complete-wrap { margin-top: 1.7rem; }
.complete-wrap [aria-pressed="true"] { background: #355856; }
.progress-note { margin-top: .45rem; color: var(--muted); font-size: .8rem; }
.reading-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 1.7rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.locked-panel { display: grid; justify-items: center; gap: .9rem; margin-top: .95rem; padding: clamp(1.5rem, 5vw, 3.25rem); text-align: center; border: 1px solid var(--line); background: var(--white); }
.locked-panel h1 { max-width: 22ch; font: 400 clamp(1.85rem, 5vw, 3.2rem)/1.1 var(--serif); letter-spacing: -.045em; }
.locked-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #ede7f1; color: #584167; }
.locked-panel .button { margin-top: .35rem; }

@media (max-width: 48rem) {
  .frame { width: min(100% - 2.4rem, 70rem); }
  .hero-grid { grid-template-columns: 1fr .74fr; gap: 1.35rem; }
  .hero-art figcaption { gap: .2rem .7rem; font-size: .57rem; }
  .reading-shell, .reading-content { width: min(100% - 2.4rem, 48rem); }
}

@media (max-width: 38rem) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 2.45rem 1.8rem; gap: 1.35rem; }
  .hero h1 { font-size: clamp(3.05rem, 11.3vw, 4.7rem); max-width: 10ch; }
  .hero-art { width: min(100%, 20rem); }
  .hero-eyebrow { margin-bottom: .8rem; }
  .hero-subtitle { margin-top: 1.05rem; }
  .hero-action { margin-top: 1.15rem; }
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
  .calendar { padding-bottom: 3.2rem; }
}

@media (max-width: 27rem) {
  .frame { width: calc(100% - 2rem); }
  .header-inner { gap: .4rem; min-height: 3.55rem; }
  .wordmark { font-size: .99rem; gap: .42rem; }
  .site-header nav { font-size: .71rem; gap: .7rem; }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { min-height: 5.8rem; padding-inline: .65rem; }
  .footer-inner { flex-wrap: wrap; gap: .6rem; }
}
