/* Selah landing page, in the Selah 2.0 scene language (app/components/today/sceneUI.tsx on selah-2.0):
   - Everything sits on the scene. No cards, boxes or divider lines.
   - Crimson Pro for anything you read: bold titles, a clear step down to the body. Bricolage small caps for labels.
   - One glass button per screen; every other action is plain text.
   - Gold very rarely, only as type or a thin ring: the reference and play ring in the hero, the mark at the end. */
:root {
  --ground: #0E0C0A;
  --ink: #FBF6EC;
  --ink-mid: rgba(251,246,236,.78);
  --gold: #F2D493;
  --gold-ring: rgba(242,212,147,.6);
  --ink-ring: rgba(251,246,236,.5);
  --glass: rgba(20,16,12,.42);
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --ui: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 560px;
  --gutter: 28px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

/* The scene behind everything, dimmed per moment the way the app dims it */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .32s ease; }
#scene.fading { opacity: 0; }
.dim { position: fixed; inset: 0; pointer-events: none; background: rgba(10,8,6,.5); opacity: 0; }
.dim::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,6,.38) 0%, rgba(10,8,6,0) 22%, rgba(10,8,6,0) 60%, rgba(10,8,6,.55) 100%); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(180deg, rgba(10,8,6,.36) 0%, rgba(10,8,6,0) 18%, rgba(10,8,6,0) 62%, rgba(10,8,6,.5) 100%); }
main, .bar, .foot { position: relative; z-index: 1; }

/* Type, from the app's TYPE tokens */
.display { margin: 0; font: 700 clamp(38px, 5.4vw, 60px)/1.08 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.eyebrow { margin: 0; font: 800 13px/18px var(--ui); letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.label { margin: 0; font: 600 13px/18px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mid); }
.reading, .lines p { margin: 0; font: 400 20px/1.5 var(--serif); }
.italic { font-style: italic; color: rgba(251,246,236,.9); font-size: 19px; }
.strong { font-weight: 700; }
.meta { margin: 0; font: 400 14px/20px var(--ui); color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.action { font: 600 14px/20px var(--ui); letter-spacing: .03em; }
.action:hover, .foot a:hover { color: var(--ink); opacity: .8; }

/* Top bar: a small-caps name on the left, one text action on the right */
.bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(24px + env(safe-area-inset-top, 0px)) clamp(24px, 5vw, 56px) 0; }

/* Moments: a centered, narrow column on the scene */
.moment { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); min-height: 78vh; min-height: 78svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 20px; text-shadow: 0 1px 16px rgba(0,0,0,.35); }
.moment .display { margin-bottom: 8px; }
.lines { display: grid; gap: 20px; text-align: left; max-width: 34em; }

/* The hero is Today: the word in the middle, play below it, the one-line pitch at the foot */
.hero { min-height: 100vh; min-height: 100svh; justify-content: flex-end; gap: 0; padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); max-width: none; }
.word { flex: 1; display: grid; align-content: center; justify-items: center; gap: 12px; padding-top: 72px; max-width: 980px; }
.hero .display { font-size: clamp(44px, 7vw, 80px); margin: 0; }
.caption { margin: 4px 0 0; min-height: 3em; max-width: 30ch; font: italic 400 clamp(19px, 2vw, 23px)/1.4 var(--serif); color: rgba(251,246,236,.92); text-wrap: balance; opacity: 0; transition: opacity .6s ease; }
.caption.show { opacity: 1; }
.controls { display: grid; justify-items: center; gap: 12px; margin-bottom: 40px; }
.play { width: 74px; height: 74px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .2s ease; }
.play:active { opacity: .6; }
.play .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lead { margin: 0; max-width: 30em; font: 400 clamp(18px, 1.8vw, 21px)/1.45 var(--serif); color: rgba(251,246,236,.92); text-wrap: balance; }

/* Scene choice: inline text, the chosen one in bold full ink */
.options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 8px; }
.options button { background: none; border: 0; padding: 6px 0; cursor: pointer; font: 600 15px/20px var(--ui); letter-spacing: .03em; color: var(--ink-mid); }
.options button[aria-pressed="true"] { font-weight: 800; color: var(--ink); }
.options button:hover { color: var(--ink); }

/* The end: gold mark (its one gold moment), then the one glass button in warm white */
.end { gap: 18px; }
.mark { width: 56px; height: 56px; color: var(--gold); margin-bottom: 8px; }
.end .reading { max-width: 26em; }
.glass { display: inline-flex; align-items: center; min-height: 50px; padding: 0 30px; border-radius: 999px; background: var(--glass); border: 1px solid var(--ink-ring); font: 800 14px/1 var(--ui); letter-spacing: .03em; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin-top: 6px; transition: opacity .2s ease; }
.glass:active { opacity: .6; }

.foot { display: flex; justify-content: center; gap: 28px; padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); font: 400 13px/20px var(--ui); color: var(--ink-mid); }

.lost { min-height: 100vh; }

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