:root {
  color-scheme: dark;
  --ink: #fcf1dd; --muted: #dfcdb4; --gold: #efb978; --accent: #ffd097;
  --basalt: #191612; --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, sans-serif;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; color: var(--ink); background: var(--basalt); font: 1rem/1.45 var(--sans); }
button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent }
button { cursor: pointer }
button:focus-visible, a:focus-visible, h1:focus-visible, h2:focus-visible { outline: 2px solid #ffe1b5; outline-offset: 4px; }
a { text-decoration: none }
p, h1, h2 { margin: 0 }
.terrace, .shade { position: fixed; inset: 0; pointer-events: none }
.terrace { background: #2f2923 url('roof.jpg') 50% 43% / cover no-repeat; filter: saturate(.68) brightness(.71); transition: filter .8s ease }
.sky-lit { position: absolute; inset: 0; background: radial-gradient(ellipse at 74% 36%, #f6ad5e66, transparent 69%); mix-blend-mode: screen; opacity: 0; transition: opacity 1s ease; }
.shade { background: linear-gradient(180deg, #0b0a08b8, #12100e08 22%, #15121035 40%, #15120eb8 59%, #151210 92%); }
body[data-step=seal] .terrace { filter: saturate(.4) brightness(calc(.47 + var(--reveal, 0) * .44)); }
body[data-step=truth] .terrace { filter: saturate(.82) brightness(1.06); }
body[data-step=read] .terrace { filter: saturate(.53) brightness(.62); }
body[data-step=pray] .terrace { filter: saturate(.72) brightness(.91); }
body[data-step=truth] .sky-lit, body[data-step=pray] .sky-lit { opacity: 1; }
.shell { position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.mast { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 5px; width: 100%; padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); border-bottom: 1px solid #ead1ad33; background: #17130fdc; backdrop-filter: blur(12px); }
.quiet { min-height: 48px; width: max-content; max-width: 100%; padding: 0 3px; border: 0; display: inline-flex; align-items: center; gap: 7px; background: transparent; font-size: .78rem; color: var(--ink); font-weight: 600; }
.back { justify-self: start; }
.back [aria-hidden] { color: var(--accent); }
.sound { justify-self: end; }
.sound svg { color: var(--gold); }
.sound[aria-pressed=true] svg { filter: drop-shadow(0 0 5px #ffbc6e); }
.series, .kicker, .room-index, .reference, .album, .amen { font: 650 .67rem/1.3 var(--sans); letter-spacing: .185em; text-transform: uppercase; }
.series { color: var(--gold); text-align: center; white-space: nowrap; min-height: 44px; display: grid; place-items: center; }
.room { width: min(100%, 560px); margin-inline: auto; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 max(22px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left)); }
.scene { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(60svh, 650px); padding: clamp(56px, 16svh, 178px) 0 25px; }
.room[data-step=roof] .scene { min-height: min(70svh, 770px); padding-top: clamp(110px, 34svh, 360px); }
section { animation: arrival .42s ease-out both; }
@keyframes arrival { from { opacity: .1; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.room-index { display: flex; align-items: center; gap: 11px; color: var(--muted); }
.room-index > :first-child { display: grid; place-items: center; width: 34px; height: 32px; border: 1px solid #dfb27b80; font: 400 1.12rem/1 var(--serif); color: var(--gold); letter-spacing: 0; }
.break { padding: 0 6px; color: var(--gold); }
h1, h2 { font: 400 clamp(3.1rem, 11vw, 5.7rem)/.96 var(--serif); letter-spacing: -.065em; text-wrap: balance; text-shadow: 0 2px 25px #1a120da0; }
h1 { font-size: clamp(4rem, 16vw, 8.3rem); margin-left: -.065em; margin-top: 7px; white-space: nowrap; }
h1 span { color: var(--gold); }
h2 { margin: 12px 0 13px; }
.verdict { font-size: clamp(3.55rem, 13.8vw, 6.25rem); }
.kicker { color: var(--gold); }
.subtitle, .sit { font: italic 400 clamp(1.24rem, 5.45vw, 1.8rem)/1.23 var(--serif); color: var(--ink); text-wrap: pretty; }
.subtitle { margin: 12px 0 16px; }
.reference { color: var(--accent); }
.scripture { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; border-bottom: 1px solid #dfb27b80; }
.body-copy { font-size: .97rem; line-height: 1.5; color: var(--muted); max-width: 35ch; margin-top: 13px; text-wrap: pretty; }
[data-panel=truth] .sit { border-left: 2px solid var(--gold); margin-top: 16px; padding-left: 13px; }
.prayer { padding: 13px 0 3px; }
.amen { color: var(--accent); margin-top: 15px; }
.artifact { width: min(62%, 240px); height: clamp(74px, 14svh, 122px); display: grid; place-items: center; margin: 9px auto 0; transform: rotate(calc(-8deg + var(--reveal, 0) * 12deg)) translateX(calc(var(--reveal, 0) * 35px)); }
.paper { width: 100%; height: 96%; display: grid; place-items: center; border: 1px solid #b18a5b; box-shadow: 0 11px 37px #110a07bd, inset 0 0 18px #5f3c23bf; background: linear-gradient(154deg, transparent 49%, #503715 50%, transparent 51%), linear-gradient(206deg, transparent 49%, #503715 50%, transparent 51%), linear-gradient(150deg, #b9966b, #7d6243 54%, #ad8257); }
.stamp { color: #fac3a3; border: 2px double #be7856; background: radial-gradient(circle at 34% 25%, #9b4232, #50170f 82%); width: 46px; height: 46px; border-radius: 50% 49% 43% 46%; box-shadow: 0 3px 6px #211009ca; display: grid; place-items: center; }
.primary { width: 100%; min-height: 56px; border: 1px solid #ffcf9d; display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; color: #28160e; background: #efb978; text-align: left; font-weight: 740; font-size: .98rem; gap: 9px; border-radius: 3px; box-shadow: 0 6px 28px #120b0659; }
.primary:is(:hover, :focus-visible) { background-color: #ffcf9d; }
.primary [aria-hidden] { font-size: 1.23rem; }
.slider { touch-action: pan-y; user-select: none; background-image: linear-gradient(90deg, #ffe2b7 calc(var(--reveal, 0)*100%), transparent 0); }
.hint { margin-top: 8px; color: var(--muted); text-align: center; font-size: .75rem; }
.psalm { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--accent); min-height: 44px; font-size: .84rem; }
.reading-entry { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 12px; color: var(--accent); background: #191612bf; border-bottom: 1px solid #dfb27b59; font-size: .88rem; }
.reading-entry:hover { background: #332519; }
.room[data-step=read] .scene { padding-top: clamp(36px, 10svh, 112px); }
.reading h2 { font-size: clamp(2.65rem, 11vw, 4.95rem); }
.reading-intro { max-width: 35ch; color: var(--muted); text-wrap: pretty; }
.reading-sources { margin-top: 20px; border: 1px solid #dfb27b59; border-radius: 3px; background: #211a14f2; box-shadow: 0 15px 70px #100b0770; }
.reading details + details { border-top: 1px solid #dfb27b43; }
.reading summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 9px; list-style: none; padding: 10px 12px; color: var(--ink); font: 400 1.13rem/1.2 var(--serif); cursor: pointer; scroll-margin-top: 62px; }
.reading summary::-webkit-details-marker { display: none; }
.reading summary:focus-visible { outline: 2px solid #ffe1b5; outline-offset: -3px; }
.reading summary:hover, .reading details[open] summary { background: #38291e; }
.reading summary small { display: block; margin-bottom: 4px; color: var(--gold); font: 600 .67rem/1.3 var(--sans); letter-spacing: .025em; }
.reading .expand { flex: none; font: 400 1.1rem/1 var(--sans); color: var(--gold); }
.reading .expand::before { content: '+'; }
.reading details[open] .expand::before { content: '−'; }
.reading-copy { padding: 14px 13px 6px; color: var(--muted); font-size: .93rem; line-height: 1.57; text-wrap: pretty; }
.reading-copy blockquote { margin: 0 0 10px; padding-inline-start: 10px; border-left: 2px solid var(--gold); color: var(--ink); font: italic 1.16rem/1.3 var(--serif); }
.source-links { display: flex; flex-wrap: wrap; column-gap: 14px; margin-top: 5px; }
.source-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: .79rem; text-decoration: underline; text-underline-offset: .19em; }
.captions { color: var(--ink); background: #17130eef; border: 1px solid #dbaf7852; font-family: var(--serif); font-size: clamp(.96rem, 4vw, 1.2rem); text-align: center; padding: 6px 8px; margin-bottom: 10px; min-height: 44px; display: grid; place-items: center; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e1c59e32; margin-top: 15px; }
.steps { display: flex; gap: 5px; }
.steps i { width: 18px; height: 2px; background: #d9bc8c70; }
.room[data-step=roof] i:nth-child(1), .room[data-step=seal] i:nth-child(2), .room:is([data-step=truth], [data-step=read]) i:nth-child(3), .room[data-step=pray] i:nth-child(4) { background: var(--accent); }
.album { min-height: 44px; display: flex; align-items: center; gap: 7px; color: var(--muted); }
.nojs { text-align: center; padding: 16px; }
.nojs a { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 700px) {
  body { background: #181410; }
  .terrace, .shade { inset-inline: max(0px, calc((100% - 1024px) / 2)); }
  .terrace { background-position: center 49%; }
  .shade { background: linear-gradient(90deg,#181410,transparent 24%,transparent 76%,#181410), linear-gradient(180deg,#15121050,#15121010 22%,#15121024 37%,#151210d9 65%,#151210 100%); }
  .mast { padding-inline: max(28px, calc((100% - 920px)/2)); }
}
@media (max-height: 685px) {
  .scene { padding-top: clamp(30px, 11svh, 74px); padding-bottom: 16px; }
  .room[data-step=roof] .scene { padding-top: clamp(95px, 29svh, 190px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
