/* Bible by doing — colours, type and surfaces taken from the app (Assets.xcassets, PaperStyle.swift). */

:root {
  --desk: #f1ece1;
  --paper: #f8f4eb;          /* PaperBackground */
  --card: #f0eee3;           /* PaperCard */
  --ink: #34372d;            /* PaperInk */
  --secondary: #77776b;      /* SecondaryInk (shapes) */
  --secondary-text: #66665b; /* SecondaryInk, a touch deeper for small text on the web */
  --olive: #697554;          /* Olive */
  --olive-text: #5b6747;
  --olive-button: #64704f;
  --rust: #9b593e;           /* Rust */
  --line: #dedccf;           /* PaperLine */
  --honey: #edb86b;
  --on-olive: #fbf8f1;
  --frame: #fbfaf6;
  --shadow: rgba(52, 55, 45, 0.08);
  --grain: rgba(52, 55, 45, 0.07);
  --olive-rgb: 105 117 84;
  --rust-rgb: 155 89 62;
  --honey-rgb: 237 184 107;
  --paper-rgb: 248 244 235;
  --secondary-rgb: 119 119 107;

  --serif: "Baskerville", "Baskerville Old Face", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #191814;
    --paper: #201f1b;
    --card: #292a23;
    --ink: #eae4d7;
    --secondary: #aea99c;
    --secondary-text: #b3aea1;
    --olive: #a4b289;
    --olive-text: #b0bd96;
    --olive-button: #a4b289;
    --rust: #d49a78;
    --line: #424338;
    --honey: #dba861;
    --on-olive: #1b1c16;
    --frame: #2b2a25;
    --shadow: rgba(0, 0, 0, 0.35);
    --grain: rgba(234, 228, 215, 0.05);
    --olive-rgb: 164 178 137;
    --rust-rgb: 212 154 120;
    --honey-rgb: 219 168 97;
    --paper-rgb: 32 31 27;
    --secondary-rgb: 174 169 156;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: var(--olive-text); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow {
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-text);
}
.eyebrow.rust, .rust { color: var(--rust); }
.olive { color: var(--olive); }

.badge { display: inline-block; border-radius: 9px; line-height: 0; }
.badge img { height: 48px; width: auto; }

/* ---------- Page ---------- */

.page {
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

.intro { padding-top: max(18px, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.brand-icon { width: 40px; height: 40px; border-radius: 9.5px; box-shadow: 0 1px 2px var(--shadow); }
.brand-name { font: 22px/1 var(--serif); letter-spacing: -0.2px; }
.badge-head { margin-left: auto; }
.badge-head img { height: 40px; }

.intro-copy { padding: 22px 4px 0; }
h1 {
  font: 400 38px/1.06 var(--serif);
  letter-spacing: -1px;
  text-wrap: balance;
}
.lede { margin-top: 12px; font-size: 17px; line-height: 1.45; color: var(--secondary-text); max-width: 32em; }
.welcome, .intro-cta { display: none; }

/* ---------- The day (demo) ---------- */

.demo-wrap { margin-top: 26px; }
.try {
  display: flex; align-items: center; gap: 12px;
  margin: 0 4px 12px;
  font: 500 11px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--rust);
}
.try::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.phone {
  position: relative;
  background-color: var(--paper);
  background-image:
    radial-gradient(var(--grain) 0.6px, transparent 0.7px),
    radial-gradient(var(--grain) 0.5px, transparent 0.6px);
  background-size: 7px 9px, 11px 13px;
  background-position: 0 0, 3px 5px;
  border-radius: 26px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px var(--shadow), 0 2px 6px var(--shadow);
  margin: 0 -4px;
}
.appbar { display: none; }

.screen { padding: 24px 22px 26px; }
.day { outline: none; }

.dateline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.daybadge { display: inline-flex; align-items: center; gap: 6px; }
.lived-badge {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 6.5px; border-radius: 99px;
  background: rgb(var(--olive-rgb) / 0.13);
  box-shadow: inset 0 0 0 0.6px rgb(var(--olive-rgb) / 0.24);
  color: var(--olive);
}
.lived-badge svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lived-badge svg.fill { fill: currentColor; stroke: none; }

.titlepage { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 0 30px; }
.day-title {
  font: 400 50px/1.02 var(--serif);
  letter-spacing: -1.4px;
  text-align: center;
  text-wrap: balance;
}
.fleuron { width: 204px; height: 34px; max-width: 100%; }

.scripture {
  font: 23px/1.62 var(--serif);
  color: var(--ink);
  hyphens: manual;
}
.line {
  border-radius: 4px;
  padding: 1px 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  cursor: pointer;
  transition: background-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.line:focus-visible { outline: 2px solid var(--rust); outline-offset: 1px; }
.line.kept { background: rgb(var(--olive-rgb) / 0.22); }
.line.spoken { color: var(--rust); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.line.spoken:not(.kept) { background: rgb(var(--rust-rgb) / 0.14); }
.initial { font-size: 48px; line-height: 1; color: var(--rust); }

.reference {
  margin-top: 16px;
  text-align: right;
  font: 19px/1.4 var(--serif);
  color: var(--rust);
}
.reference .dash { opacity: .7; }
.reference cite { font-style: italic; }
.reference abbr {
  margin-left: 9px;
  font: 400 11px/1 var(--mono); letter-spacing: 1.2px;
  color: var(--secondary-text);
  text-decoration: none;
}

.passage-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 14px; margin-top: 18px; }
.round {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 0.8px var(--line);
  color: var(--olive);
  transition: transform .2s ease;
}
.round:active { transform: scale(.96); }
.round svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.round .i-stop { display: none; fill: currentColor; stroke: none; width: 14px; height: 14px; }
.round[aria-pressed="true"] .i-listen { display: none; }
.round[aria-pressed="true"] .i-stop { display: block; }

.hint { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.35; color: var(--secondary-text); }
.hint svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--secondary); stroke-width: 1.4; stroke-linejoin: round; }
.hint .i-kept { display: none; fill: var(--olive); stroke: none; }
.hint.is-kept .i-tap { display: none; }
.hint.is-kept .i-kept { display: block; }

.invitation { margin: 26px 0 30px; font-size: 15px; line-height: 1.6; color: var(--secondary-text); }

.actions-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.actions-head .eyebrow { font-weight: 500; }

.ring { position: relative; width: 32px; height: 32px; color: var(--olive); }
.ring svg { width: 32px; height: 32px; overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 2; }
.ring-bar {
  fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 94.25; stroke-dashoffset: 94.25;
  transform: rotate(-90deg); transform-origin: 16px 16px;
  transition: stroke-dashoffset .5s cubic-bezier(.3,.7,.3,1);
}
.ring-fill { fill: var(--olive); transform-origin: 16px 16px; transform: scale(.4); opacity: 0; transition: transform .45s cubic-bezier(.3,1.4,.5,1), opacity .3s; }
.ring-check { fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .4s .15s ease-out; }
.ring-text { position: absolute; inset: 0; display: grid; place-items: center; font: 500 9px/1 var(--mono); transition: opacity .2s; }
.ring.done .ring-fill { transform: scale(1); opacity: 1; }
.ring.done .ring-check { stroke-dashoffset: 0; }
.ring.done .ring-text { opacity: 0; }

.action-list { list-style: none; margin: 0; padding: 0; }
.action-list li { border-bottom: 0.5px solid var(--line); }
.action {
  position: relative;
  display: grid; grid-template-columns: 25px 1fr; gap: 15px; align-items: start;
  width: 100%; padding: 18px 0; text-align: left;
  transition: transform .14s ease-out, opacity .14s ease-out;
}
.action:active { transform: scale(.985); opacity: .72; }
.action::before {
  content: ""; position: absolute; inset: 5px -12px; border-radius: 12px;
  background: linear-gradient(90deg, rgb(var(--olive-rgb) / 0.11), rgb(var(--honey-rgb) / 0.08) 55%, transparent);
  transform: scaleX(.02); transform-origin: left center; opacity: 0;
  transition: transform .55s cubic-bezier(.3,.8,.3,1), opacity .3s;
  pointer-events: none;
}
.action[aria-checked="true"]::before { transform: scaleX(1); opacity: 1; }
.action-text { position: relative; font-size: 17px; line-height: 1.45; color: var(--ink); transition: color .3s; }
.action[aria-checked="true"] .action-text { color: var(--secondary-text); }
.box {
  position: relative; width: 25px; height: 25px; margin-top: 0;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgb(var(--secondary-rgb) / 0.55);
}
.box::before {
  content: ""; position: absolute; inset: 0; border-radius: 7px; background: var(--olive);
  transform: scale(.5); opacity: 0;
  transition: transform .38s cubic-bezier(.3,1.5,.5,1), opacity .2s;
}
.box svg { position: absolute; inset: 0; width: 25px; height: 25px; fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s .08s ease-out; }
.action[aria-checked="true"] .box::before { transform: scale(1); opacity: 1; }
.action[aria-checked="true"] .box svg { stroke-dashoffset: 0; }
.burst { position: absolute; left: 50%; top: 50%; width: 10.5px; height: 5px; margin: -2.5px 0 0 -5.25px; border-radius: 50%; pointer-events: none; opacity: 0; }

.pocket-control { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.text-button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--olive-text); }
.text-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.text-button svg.fill { fill: currentColor; stroke: none; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; margin-left: auto; color: var(--olive-text); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.closing { margin-top: 23px; color: var(--olive); }
.closing-open { display: flex; align-items: center; gap: 14px; }
.sprig { width: 40px; height: 58px; flex: none; overflow: visible; }
.sprig .stem { fill: none; stroke: var(--olive); stroke-opacity: .7; stroke-width: 1.1; stroke-linecap: round; }
.sprig .leaf { transition: transform .5s cubic-bezier(.3,1.3,.5,1), opacity .4s; transform-box: view-box; }
.sprig .leaf.even { fill: rgb(var(--olive-rgb) / 0.42); }
.sprig .leaf.odd { fill: rgb(var(--olive-rgb) / 0.6); }
.sprig .ghost { fill: none; stroke: var(--olive); stroke-opacity: .28; stroke-width: .7; stroke-dasharray: 1.5 2.5; transition: opacity .3s; }
.closing-words { font: italic 19px/1.38 var(--serif); color: var(--olive-text); }
.closing-words.center { text-align: center; font-size: 22px; }
.closing-lived { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vignette {
  width: 176px; height: 176px; border-radius: 50%; overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 32px -14px var(--shadow);
  position: relative;
}
.vignette::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; box-shadow: inset 0 0 0 0.6px rgb(var(--olive-rgb) / 0.18); }
.vignette canvas { width: 100%; height: 100%; }

.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: inset 0 0 0 0.8px var(--line), 0 6px 14px -4px var(--shadow), 0 1px 1.5px var(--shadow);
}
.lived { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.tallies { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 12px; }
.tally { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; }
.num { font: 31px/1 var(--serif); }
.label { font-size: 11px; color: var(--secondary-text); text-align: center; }
.seal { width: 76px; height: 76px; margin: 0 4px; }
.seal svg { width: 76px; height: 76px; overflow: visible; }
.rule { grid-column: 1 / -1; height: 0.5px; background: var(--line); margin: 12px 16px 0; }
.milestone { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.milestone-seal { width: 54px; height: 54px; flex: none; overflow: visible; }
.milestone-title { font: 22px/1.15 var(--serif); margin-top: 4px; }
.milestone-detail { font-size: 13px; color: var(--secondary-text); margin-top: 3px; }
.tomorrow { grid-column: 1 / -1; padding: 14px 16px 16px; }
.tomorrow-title { font: 22px/1.2 var(--serif); margin-top: 5px; }

.offer { padding: 20px 18px 20px; }
.offer-title { font: 400 25px/1.15 var(--serif); letter-spacing: -0.3px; }
.offer-text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--secondary-text); }
.offer .badge { margin-top: 16px; }

/* The way down to the three actions, while the passage fills the screen. */
.shortcut {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  padding: 34px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgb(var(--paper-rgb) / 0), rgb(var(--paper-rgb) / 0.96) 55%, var(--paper));
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.shortcut.away { opacity: 0; transform: translateY(8px); }
.shortcut button { pointer-events: auto; }
.shortcut button, .olive-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 99px;
  font: 600 15px/1 var(--rounded);
  color: var(--on-olive);
  background: linear-gradient(to bottom, rgba(255,255,255,.14), rgba(0,0,0,.08)), var(--olive-button);
  box-shadow: inset 0 0.8px 0 rgba(255,255,255,.28), 0 5px 10px -2px rgb(var(--olive-rgb) / 0.4);
  transition: transform .2s cubic-bezier(.3,.7,.4,1), filter .2s;
}
.shortcut button:active, .olive-button:active { transform: scale(.975); filter: brightness(.96); }
.shortcut .bar { width: 1px; height: 14px; background: rgb(var(--paper-rgb) / 0.35); }
.shortcut .count { font: 600 12px/1 var(--mono); }
.shortcut svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.leaffall { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }

/* ---------- Pocket card sheet ---------- */

.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 20, 16, .32); z-index: 60; animation: fade .25s ease-out; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  background-color: var(--paper);
  border-radius: 22px 22px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,.18);
  animation: rise .38s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 0 10px; position: relative; }
.sheet-grip { position: absolute; top: -2px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--line); }
.sheet-title { grid-column: 2; font: 600 16px/1.3 var(--sans); text-align: center; padding-top: 10px; }
.sheet-done { grid-column: 3; justify-self: end; min-height: 44px; padding: 10px 2px 0 12px; font-weight: 600; color: var(--olive-text); }
.sheet-note { font-size: 14px; color: var(--secondary-text); line-height: 1.5; margin: 4px 0 12px; }
.choose-list { list-style: none; margin: 0; padding: 0; }
.choose-list button {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  padding: 15px 4px; border-bottom: 0.5px solid var(--line);
  font: 20px/1.3 var(--serif);
}
.choose-list li:last-child button { border-bottom: 0; }
.choose-list svg { flex: none; width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: var(--olive); stroke-width: 1.6; stroke-linejoin: round; }
.choose-list button[aria-current="true"] svg { fill: var(--olive); }

.pocket-card { padding: 24px; }
.pocket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pocket-date { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .3px; }
.pocket-sprig { width: 72px; height: 100px; flex: none; transition: filter .6s; }
.pocket-sprig .stem { fill: none; stroke: var(--olive); stroke-opacity: .65; stroke-width: 1.1; }
.pocket-sprig .r { fill: rgb(var(--olive-rgb) / 0.48); }
.pocket-sprig .l { fill: rgb(var(--olive-rgb) / 0.3); }
.pocket-card.done .pocket-sprig { filter: drop-shadow(0 0 14px rgb(var(--honey-rgb) / 0.6)); }
.pocket-line { font: 30px/1.18 var(--serif); margin-top: 18px; }
.pocket-ref { font: 400 12px/1.4 var(--mono); color: var(--rust); margin-top: 18px; }
.pocket-card hr { border: 0; height: 0.5px; background: var(--line); margin: 18px 0; }
.pocket-label { font-size: 13px; font-weight: 600; color: var(--olive-text); }
.pocket-act { font: 23px/1.3 var(--serif); margin-top: 10px; }
.olive-button { width: 100%; min-height: 50px; margin-top: 18px; font-size: 17px; }
.olive-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.olive-button.done { background: rgb(var(--olive-rgb) / 0.14); color: var(--olive-text); box-shadow: inset 0 0 0 1px rgb(var(--olive-rgb) / 0.32); cursor: default; }
.olive-button.done svg { fill: currentColor; stroke: var(--paper); }

/* ---------- Your year ---------- */

.year { margin-top: 76px; padding: 0 4px; }
.year h2, .more h2, .final h2 { font: 400 34px/1.08 var(--serif); letter-spacing: -0.8px; text-wrap: balance; }
.year h2 { margin-top: 10px; }
.year-copy p:last-child { margin-top: 12px; color: var(--secondary-text); font-size: 16px; line-height: 1.55; }
.year-tree { margin: 18px 0 0; }
.year-tree canvas { width: 100%; height: 340px; touch-action: manipulation; cursor: pointer; }
.year-tree figcaption { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 18px; margin-top: 6px; }
.year-count { font: 26px/1 var(--serif); white-space: nowrap; font-variant-numeric: tabular-nums; }
.year-hint { grid-column: 1 / -1; font-size: 13px; color: var(--secondary-text); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--olive) var(--fill, 33%), var(--line) var(--fill, 33%)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--olive) var(--fill, 33%), var(--line) var(--fill, 33%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--olive), 0 2px 6px var(--shadow); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--olive); background: var(--paper); }

/* ---------- More ---------- */

.more { margin-top: 76px; padding: 0 4px; }
.more-list { list-style: none; margin: 18px 0 0; padding: 0; }
.more-list li { padding: 16px 0; border-top: 0.5px solid var(--line); color: var(--secondary-text); font-size: 15px; line-height: 1.55; }
.more-list li:last-child { border-bottom: 0.5px solid var(--line); }
.more-list strong { display: block; font: 400 21px/1.25 var(--serif); color: var(--ink); margin-bottom: 4px; }
.shots {
  display: flex; gap: 12px; margin: 28px -20px 0; padding: 0 20px 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; flex: 0 0 min(64vw, 250px); scroll-snap-align: center; }
.shots img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 0.5px var(--line), 0 10px 24px -12px var(--shadow); background: var(--paper); }

/* ---------- Final ---------- */

.final { margin: 80px 0 0; padding: 0 4px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final .ink {
  width: 96px; height: 109px; margin-bottom: 18px;
  background: var(--ink); opacity: .86;
  -webkit-mask: url("/assets/ink-mustard-seed.png") center / contain no-repeat;
  mask: url("/assets/ink-mustard-seed.png") center / contain no-repeat;
}
.final p { margin-top: 12px; color: var(--secondary-text); font-size: 16px; line-height: 1.55; max-width: 26em; }
.final .badge { margin-top: 22px; }
.final .badge img { height: 54px; }

.footer {
  margin-top: 72px; padding: 22px 4px calc(28px + env(safe-area-inset-bottom));
  border-top: 0.5px solid var(--line);
  font-size: 13px; line-height: 1.5; color: var(--secondary-text);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 15px; }
.footer nav a:hover { text-decoration: underline; }
.copyright { margin-top: 4px; }

/* ---------- Arrival ---------- */

.js .arrive { opacity: 0; transform: translateY(16px); }
.js .day-title.arrive { transform: translateY(10px); filter: blur(4px); }
.js .arrived .arrive { opacity: 1; transform: none; filter: none; transition: opacity .85s ease-out, transform .85s ease-out, filter .85s ease-out; }
.js .arrived .day-title.arrive { transition-duration: 1s; }

/* ---------- Narrow phones ---------- */

@media (max-width: 359px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .brand-name { font-size: 19px; }
  .badge-head img { height: 40px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 8px; }
  h1 { font-size: 33px; }
  .screen { padding: 22px 16px 24px; }
  .day-title { font-size: 43px; }
  .scripture { font-size: 21px; }
  .vignette { width: 160px; height: 160px; }
  .shots { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}

/* ---------- Desktop: the day in a phone, beside the words ---------- */

@media (min-width: 900px) {
  .page { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
  #main { display: grid; grid-template-columns: minmax(0, 1fr) 410px; column-gap: 72px; }
  .intro { grid-column: 1; grid-row: 1; align-self: center; padding-top: 40px; }
  .demo-wrap { grid-column: 2; grid-row: 1; margin-top: 40px; }
  .year, .more, .final { grid-column: 1 / -1; }

  .badge-head { display: none; }
  .brand-icon { width: 48px; height: 48px; border-radius: 11px; }
  .brand-name { font-size: 26px; }
  .intro-copy { padding: 44px 0 0; }
  h1 { font-size: 66px; letter-spacing: -2px; line-height: 1.02; }
  .lede { font-size: 20px; margin-top: 20px; max-width: 26em; }
  .welcome { display: grid; gap: 14px; list-style: none; margin: 34px 0 0; padding: 0; font: 22px/1.3 var(--serif); }
  .welcome li { display: flex; align-items: center; gap: 14px; }
  .glyph { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--olive); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
  .intro-cta { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
  .intro-cta .badge img { height: 54px; }
  .fine { font-size: 14px; color: var(--secondary-text); max-width: 15em; line-height: 1.4; }

  .try { justify-content: center; margin: 0 0 14px; }
  .try::before { content: ""; flex: 1; height: 1px; background: var(--line); }
  .phone {
    margin: 0;
    height: min(840px, calc(100vh - 110px));
    min-height: 640px;
    border-radius: 56px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 0 0 11px var(--frame), 0 0 0 12px var(--line), 0 40px 80px -30px rgba(52,55,45,.35), 0 8px 20px -8px var(--shadow);
    margin-top: 12px;
  }
  .appbar {
    display: flex; align-items: center; gap: 10px;
    padding: 30px 24px 14px; margin: 0 2px;
    border-bottom: 0.5px solid var(--line);
    flex: none;
  }
  .appbar-book { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
  .appbar-name { font: 22px/1 var(--serif); }
  .leafpill {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 99px; background: rgb(var(--olive-rgb) / 0.14);
    font: 600 14px/1 var(--rounded); color: var(--olive-text);
  }
  .leafpill svg { width: 13px; height: 13px; fill: currentColor; }
  .screen { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 22px 26px 30px; }
  .screen::-webkit-scrollbar { display: none; }
  .shortcut { position: absolute; bottom: 0; padding-bottom: 22px; border-radius: 0 0 56px 56px; }
  .leaffall { position: absolute; border-radius: 56px; }
  .sheet-backdrop { position: absolute; border-radius: 56px; }
  .sheet { position: absolute; max-height: 92%; border-radius: 22px 22px 56px 56px; padding-bottom: 28px; }

  .year { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; margin-top: 120px; padding: 0; }
  .year h2, .more h2, .final h2 { font-size: 44px; letter-spacing: -1.2px; }
  .year-copy p:last-child { font-size: 18px; }
  .year-tree canvas { height: 440px; }

  .more { margin-top: 110px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 56px; }
  .more h2 { grid-column: 1; }
  .more-list { grid-column: 1; }
  .shots { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; overflow: visible; gap: 16px; align-items: flex-start; }
  .shots figure { flex: 1 1 0; }
  .shots figure:nth-child(2) { margin-top: 48px; }
  .shots figure:nth-child(3) { margin-top: 96px; }

  .final { margin-top: 120px; }
  .final h2 { font-size: 48px; }
  .footer { margin-top: 100px; display: grid; grid-template-columns: 1fr auto; gap: 0 40px; align-items: start; padding-left: 0; padding-right: 0; }
  .footer nav { margin-top: 0; grid-row: 1 / span 2; grid-column: 2; }
}

@media (hover: hover) {
  .action:hover .box { box-shadow: inset 0 0 0 1px var(--olive); }
  .line:hover:not(.kept) { background: rgb(var(--olive-rgb) / 0.09); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .2s !important; animation-duration: .01s !important; transition-delay: 0s !important; }
  .js .arrive, .js .day-title.arrive { transform: none; filter: none; }
  .action::before { transform: none; }
  .action:active, .shortcut button:active, .olive-button:active, .round:active { transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Privacy and support (wording copied unchanged from the app's web folder) ---------- */

.legal { background: var(--paper); }
.legal-page {
  max-width: 680px; margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  font: 17px/1.65 var(--sans); color: var(--ink);
}
.legal-page nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-bottom: 14px; border-bottom: 0.5px solid var(--line); }
.legal-page nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--secondary-text); text-decoration: none; font-size: 15px; }
.legal-page nav a.legal-brand { gap: 10px; margin-right: auto; color: var(--ink); font: 21px/1 var(--serif); }
.legal-brand img { width: 32px; height: 32px; border-radius: 7.5px; }
.legal-page h1 { font: 400 44px/1.08 var(--serif); letter-spacing: -1px; margin: 40px 0 18px; }
.legal-page h2 { font: 400 25px/1.2 var(--serif); margin: 38px 0 8px; }
.legal-page p { margin: 0 0 14px; color: var(--ink); }
.legal-page a { color: var(--olive-text); }
.legal-page footer { margin-top: 48px; padding-top: 18px; border-top: 0.5px solid var(--line); font-size: 14px; color: var(--secondary-text); }
@media (min-width: 900px) { .legal-page { padding-top: 48px; } .legal-page h1 { font-size: 56px; } }
.lost .ink-sparrows {
  display: block; width: 110px; height: 117px; margin: 44px 0 0;
  background: var(--ink); opacity: .86;
  -webkit-mask: url("/assets/ink-sparrows.png") center / contain no-repeat;
  mask: url("/assets/ink-sparrows.png") center / contain no-repeat;
}
.lost h1 { margin-top: 22px; }
.lost-actions { margin: 22px 0 26px !important; }
.olive-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 99px;
  font: 600 15px/1 var(--rounded); text-decoration: none;
  color: var(--on-olive) !important; background: var(--olive-button);
}
