/* BibleGamify: static site. Self-hosted fonts, no external requests. */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('fonts/atkinson-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --paper: #fbf6ec;
  --paper-2: #f3ead8;
  --ink: #241c45;
  --ink-2: #5a5276;
  --line: #e2d6bd;
  --gold: #f2b62c;
  --gold-ink: #8a5a00;
  --night: #241c45;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 16px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-block: 64px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.kicker { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); }
.hero h1 em { font-style: italic; font-weight: 600; }
.hero .lede { font-size: 21px; color: var(--ink-2); max-width: 30em; margin: 24px 0 28px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #f2b62c33; }

.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; aspect-ratio: 390 / 844;
  border-radius: 34px; border: 7px solid #1d1638; background: #1d1638;
  overflow: hidden; box-shadow: 0 24px 50px -18px #241c4566;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phones .a { left: 4%; top: 30px; transform: rotate(-4deg); }
.phones .b { right: 4%; top: 0; transform: rotate(3deg); }

/* ---------- sections ---------- */
section { padding-block: 72px; }
.sec-head { max-width: 38em; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.sec-head p { color: var(--ink-2); font-size: 19px; margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* how a story plays */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step .phone { position: static; width: 100%; max-width: 230px; transform: none; margin-bottom: 22px; }
.step .num { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--gold-ink); letter-spacing: 0.06em; }
.step h3 { font-size: 26px; margin: 6px 0 8px; }
.step p { color: var(--ink-2); margin: 0; }

/* contents page */
.contents { background: var(--paper-2); }
.toc { columns: 2; column-gap: 56px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.toc li { break-inside: avoid; display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dotted #cbbd9f; counter-increment: s; }
.toc li::before { content: counter(s); font-family: var(--serif); font-weight: 700; width: 1.6em; color: var(--gold-ink); flex: none; }
.toc .t { font-weight: 700; }
.toc .r { margin-left: auto; color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.toc .free { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 4px; padding: 1px 6px; }
.book { font-size: 24px; margin: 36px 0 6px; }
.sec-head + .book { margin-top: 0; }
.next { margin-top: 32px; color: var(--ink-2); max-width: 44em; }

/* parents */
.split { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }
.split .phone { position: static; width: 100%; transform: none; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.plan.pass { background: var(--night); color: #fff; border-color: var(--night); }
.plan h3 { font-size: 30px; margin-bottom: 4px; }
.plan .sub { color: var(--ink-2); margin-bottom: 18px; }
.plan.pass .sub { color: #c9c1ea; }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan li { margin: 6px 0; }
.plan li::marker { color: var(--gold); }
.fine { margin-top: 20px; font-size: 15px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #d9d3f2; padding-block: 48px; font-size: 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.foot .brand { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: #d9d3f2; }
.foot small { flex-basis: 100%; color: #9f97c4; }

/* ---------- document pages (privacy, terms, support) ---------- */
.doc { padding-block: 56px 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.doc .meta { color: var(--ink-2); font-size: 16px; margin-bottom: 36px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.note { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 22px; margin: 0 0 32px; }
.note ul { margin: 8px 0 0; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--gold-ink); }
details[open] summary::after { content: '–'; }
details p { color: var(--ink-2); margin: 0 0 16px; }

/* ---------- small screens ---------- */
@media (max-width: 880px) {
  .hero { padding-top: 40px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .phones { height: 440px; max-width: 420px; }
  .phone { width: 196px; }
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .step { scroll-snap-align: start; }
  .toc { columns: 1; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .split .phone { max-width: 260px; }
  .plans { grid-template-columns: 1fr; }
  section { padding-block: 56px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top .wrap { flex-wrap: nowrap; }
  .top nav { gap: 14px; font-size: 15px; }
  .status { border-radius: 14px; align-items: flex-start; }
  .status::before { margin-top: 7px; flex: none; }
  .hero .lede { font-size: 19px; }
  .phones { height: 380px; }
  .phone { width: 168px; border-width: 6px; border-radius: 26px; }
  .plan { padding: 24px; }
}
