/* self-hosted fonts (latin): no requests to Google */
@font-face { font-family: Lora; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/lora-500-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/outfit.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Bible Scroll site. "Sea morning" theme, tokens from the app. */

:root {
  color-scheme: light dark;
  --bg: linear-gradient(180deg, #DDEFF7 0%, #EEF7FB 30%, #F8FBFD 100%);
  --bg-solid: #F8FBFD;
  --ink: #1F3F5E;
  --muted: #5F7D96; /* #6E8BA3 in the app; one step darker so small text passes AA on white */
  --accent: #E9A04F;
  --on-ink: #FFF6E4;
  --glass: rgba(255, 255, 255, .74);
  --glass-line: rgba(31, 63, 94, .06);
  --glass-shadow: 0 4px 18px rgba(31, 63, 94, .08);
  --hair: rgba(31, 63, 94, .12);
  --sky: linear-gradient(180deg, #E2F1F8 0%, #C4E3F0 42%, #A2CDE4 72%, #80B5D7 100%);
  --sun-a: #FFF8E8;
  --sun-b: #FFDFA6;
  --hill-back: #5D8DB0;
  --hill-front: #2F5E85;
  --cross: #15304A;
  --scene-ink: #1F3F5E;
  --tagline: #1F3F5E;
  --glow: .5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: linear-gradient(180deg, #2D3E6A 0%, #1C2848 45%, #121A33 100%);
    --bg-solid: #121A33;
    --ink: #FFF6E4;
    --muted: #9FB0CF;
    --accent: #F2B562;
    --on-ink: #15304A;
    --glass: rgba(255, 246, 228, .08);
    --glass-line: rgba(255, 246, 228, .14);
    --glass-shadow: none;
    --hair: rgba(255, 246, 228, .16);
    --sky: linear-gradient(180deg, #1C2848 0%, #2D3E6A 55%, #4D5F92 100%);
    --sun-a: #FFE6B0;
    --sun-b: #F2B562;
    --hill-back: #2A365C;
    --hill-front: #18213D;
    --cross: #090D1C;
    --scene-ink: #FFF6E4;
    --tagline: #FFDFA6;
    --glow: .3;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-solid);
  background-image: var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.6 Outfit, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--hair); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.shell.narrow { max-width: 760px; }

/* ── header ── */
.top { position: relative; z-index: 2; }
.top .shell { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand:hover { color: inherit; }
.wordmark { font: italic 500 22px/1 Lora, Georgia, serif; letter-spacing: -.01em; }
.top nav a { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--accent); }

/* ── type ── */
.serif { font-family: Lora, Georgia, serif; font-style: italic; font-weight: 500; }
h1, h2, h3 { margin: 0; font-weight: 500; }
.ref {
  font: 700 12px/1 Outfit, sans-serif; letter-spacing: 2.6px; text-transform: uppercase; color: var(--muted);
}

/* ── store badge (hidden until the App Store id exists, see README) ── */
.store-on .badge { display: inline-block; }
.badge { display: none; line-height: 0; }
.badge img { width: 160px; height: auto; }
.soon {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  font-weight: 600; font-size: 15px;
}
.store-on .soon { display: none; }

/* ── footer ── */
.foot { border-top: 1px solid var(--hair); padding: 36px 0 44px; font-size: 15px; color: var(--muted); }
.foot .row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot .brand { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.foot nav a:hover { color: var(--accent); }
.foot .fine { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ── document pages (privacy, terms, support, delete account) ── */
.doc { padding: 28px 0 72px; }
.doc h1 { font: italic 500 clamp(34px, 6vw, 46px)/1.1 Lora, Georgia, serif; letter-spacing: -.01em; }
.doc .updated { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.doc .lead { font-size: 19px; margin-top: 22px; }
.doc h2 { font: 700 21px/1.3 Outfit, sans-serif; margin: 44px 0 10px; }
.doc h3 { font: 600 17px/1.4 Outfit, sans-serif; margin: 26px 0 6px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .card {
  margin: 26px 0; padding: 20px 22px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
}
.doc .card > :first-child { margin-top: 0; }
.doc .card > :last-child { margin-bottom: 0; }
.tbl { width: 100%; overflow-x: auto; margin: 16px 0; }
.tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); }
.tbl th { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.toc { columns: 2; column-gap: 28px; padding-left: 20px; font-size: 15px; }
@media (max-width: 560px) { .toc { columns: 1; } }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin: 16px 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 15px;
}
details { border-bottom: 1px solid var(--hair); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin: 8px 0 0; color: var(--muted); }
.mail { font-weight: 700; color: var(--ink); }
