/* Simple Truth Bible website. Design tokens follow the app: comic ink frames with hard offset
   shadows, the yellow PREV/NEXT button colour, the red verse-number disc, and the splash's
   crimson-black for the dark theme. Colours only through tokens. */

@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bangers"; src: url("/assets/fonts/bangers-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f6efe2;
  --paper-dot: #e6dccb;
  --surface: #fffaf0;
  --caption: #fff4c4;
  --ink: #1d1417;
  --muted: #54464a;
  --frame: #1d1417;
  --shadow: #1d1417;
  --yellow: #f6cf3c;
  --on-yellow: #1d1417;
  --red: #b5301b;
  --on-red: #ffffff;
  --gold: #8a5a00;
  --link: #8f2412;
  --focus: #1b5fd1;
  --banner: #1d1417;
  --on-banner: #fff4c4;

  --font-ui: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --font-text: Literata, Georgia, "Times New Roman", serif;
  --font-comic: Bangers, Impact, "Arial Black", sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 7vw, 3.5rem);
  --step-4: clamp(3rem, 12vw, 5.75rem);

  --gutter: 16px;
  --measure: 66ch;
  --frame-w: 3px;
  --offset: 6px;
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c0b13; --paper-dot: #2b1520; --surface: #26121b; --caption: #2f1922;
    --ink: #f6ecd9; --muted: #cdbab2; --frame: #f6ecd9; --shadow: #000000;
    --yellow: #ffd65a; --on-yellow: #1d1417; --red: #ff7b5f; --on-red: #1d1417;
    --gold: #ffe08a; --link: #ffb39f; --focus: #8ab4ff; --banner: #ffd65a; --on-banner: #1d1417;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1c0b13; --paper-dot: #2b1520; --surface: #26121b; --caption: #2f1922;
  --ink: #f6ecd9; --muted: #cdbab2; --frame: #f6ecd9; --shadow: #000000;
  --yellow: #ffd65a; --on-yellow: #1d1417; --red: #ff7b5f; --on-red: #1d1417;
  --gold: #ffe08a; --link: #ffb39f; --focus: #8ab4ff; --banner: #ffd65a; --on-banner: #1d1417;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dot) 1px, transparent 1.2px);
  background-size: 7px 7px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }

.skip-link { position: absolute; inset-inline-start: var(--gutter); top: -4rem; z-index: 10; background: var(--yellow); color: var(--on-yellow); padding: 0.5rem 1rem; border: var(--frame-w) solid var(--frame); }
.skip-link:focus { top: 0.5rem; }

.draft-banner { margin: 0; padding: 0.4rem var(--gutter); background: var(--banner); color: var(--on-banner); font-size: var(--step--1); text-align: center; }

/* Header */
.site-header { border-bottom: var(--frame-w) solid var(--frame); background: var(--paper); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-block: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); min-height: 44px; margin-inline-end: auto; }
.brand img { border: 2px solid var(--frame); border-radius: 10px; }
.brand-word { font-family: var(--font-comic); font-size: 1.6rem; letter-spacing: 0.02em; line-height: 1; }
.brand-simple { color: var(--red); }
.brand-bible { color: var(--gold); }
.theme-toggle {
  font: inherit; font-size: var(--step--1); min-height: 44px; padding: 0.35rem 0.8rem;
  color: var(--ink); background: var(--surface); border: 2px solid var(--frame); border-radius: var(--radius); cursor: pointer;
}
.site-nav { flex-basis: 100%; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: var(--radius); }
.nav-list a:hover { text-decoration: underline; }
.nav-list a[aria-current="page"] { background: var(--yellow); color: var(--on-yellow); box-shadow: inset 0 0 0 2px var(--frame); }
@media (min-width: 60rem) {
  .site-nav { flex-basis: auto; order: 2; }
  .theme-toggle { order: 3; }
}

/* Type */
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p, ul, ol, dl { margin: 0 0 1em; }
.lead { font-size: var(--step-1); line-height: 1.45; max-width: 34ch; }
.small { font-size: var(--step--1); color: var(--muted); }
.scripture { font-family: var(--font-text); line-height: 1.7; }
cite { font-style: normal; font-weight: 700; }

/* Sections */
.section { padding-block: 3rem; }
.section + .section { border-top: 2px dashed var(--paper-dot); }
.page-head { padding-block: 2.5rem 0.5rem; }

/* Comic panel: the one bold device of the site. */
.panel {
  background: var(--surface);
  border: var(--frame-w) solid var(--frame);
  box-shadow: var(--offset) var(--offset) 0 var(--shadow);
  border-radius: var(--radius);
}
.phone { margin: 0; max-width: 300px; overflow: hidden; }
.phone img { width: 100%; }
.caption-box {
  position: relative; background: var(--caption); border: var(--frame-w) solid var(--frame);
  padding: 1rem 1.25rem 1rem 3.5rem; margin: 0;
}
.verse-no {
  position: absolute; inset-inline-start: 0.85rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: var(--on-red);
  border: 2px solid var(--frame); font-family: var(--font-comic); font-size: 1.1rem;
}
.caption-box p { margin: 0 0 0.4rem; font-family: var(--font-text); font-size: var(--step-1); line-height: 1.5; }
.caption-box footer { font-size: var(--step--1); color: var(--muted); }

/* Theme-specific screenshots: one of each pair shows. */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

/* Hero */
.hero { padding-block: 2.5rem 3rem; display: grid; gap: 2.5rem; align-items: center; }
.wordmark { font-family: var(--font-comic); font-weight: 400; font-size: var(--step-4); line-height: 0.92; letter-spacing: 0.01em; margin: 0 0 0.25em; }
.wordmark span { display: block; }
.wordmark .w1 { color: var(--red); }
.wordmark .w2 { color: var(--gold); }
.tagline { font-family: var(--font-text); font-style: italic; font-size: var(--step-1); margin: 0 0 1.25rem; color: var(--muted); }
.hero-art { justify-self: center; }
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.2fr 1fr; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 1.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.6rem 1.25rem;
  font-weight: 700; font-size: var(--step-0); text-decoration: none; border-radius: var(--radius);
  border: var(--frame-w) solid var(--frame); box-shadow: 4px 4px 0 var(--shadow);
}
.button-primary { background: var(--yellow); color: var(--on-yellow); }
.button-secondary { background: var(--surface); color: var(--ink); }
.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.button-disabled { background: var(--paper-dot); color: var(--muted); box-shadow: none; border-style: dashed; cursor: not-allowed; }

/* Two-column feature rows */
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .split.flip > :first-child { order: 2; }
}

/* Translation comparison table */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); }
.compare th, .compare td { text-align: start; vertical-align: top; padding: 0.75rem; border: 2px solid var(--frame); }
.compare th { width: 9rem; }
.compare td { font-family: var(--font-text); }
.compare .src { display: block; font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted); margin-top: 0.25rem; }
.table-scroll { overflow-x: auto; }

/* Lists */
.ticks { list-style: none; padding: 0; }
.ticks li { padding-inline-start: 1.75rem; position: relative; margin-bottom: 0.6rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0.2rem; top: 0.45em; width: 0.7rem; height: 0.7rem; background: var(--red); border: 2px solid var(--frame); border-radius: 50%; }
.feature-list { display: grid; gap: 1.5rem; padding: 0; list-style: none; }
.feature-list h3 { margin-bottom: 0.3em; }
@media (min-width: 44rem) { .feature-list { grid-template-columns: 1fr 1fr; } }
.later { border: 2px dashed var(--frame); padding: 1rem 1.25rem; border-radius: var(--radius); }

/* Pricing */
.plans { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { padding: 1.25rem 1.25rem 0.5rem; }
.plan h2 { font-size: var(--step-1); }
.price { font-family: var(--font-comic); font-size: 2.6rem; line-height: 1; margin: 0 0 0.5rem; }
.badge { display: inline-block; font-size: var(--step--1); font-weight: 700; padding: 0.1rem 0.5rem; border: 2px solid var(--frame); border-radius: var(--radius); background: var(--yellow); color: var(--on-yellow); }

/* Long documents */
.doc h2 { margin-top: 2rem; font-size: var(--step-1); }
.doc dt { font-weight: 700; }
.doc dd { margin: 0 0 1rem; }
.notice { border-inline-start: 6px solid var(--red); background: var(--surface); padding: 0.75rem 1rem; }
code { font-size: 0.92em; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: var(--frame-w) solid var(--frame); margin-top: 3rem; padding-block: 1.5rem 2.5rem; background: var(--paper); font-size: var(--step--1); }
.footer-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0; margin: 0 0 1rem; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .button:hover, .button:active { transform: none; }
}
.table-note { caption-side: bottom; text-align: start; padding-top: 0.5rem; }
.center { margin-inline: auto; }
@media (max-width: 30rem) {
  .brand-word { font-size: 1.3rem; }
  .brand img { width: 36px; height: 36px; }
  .theme-toggle { padding-inline: 0.5rem; }
}
/* A .wrap that is also .prose keeps the page's left edge and limits only its line length. */
.wrap.prose { max-width: 72rem; }
.wrap.prose > * { max-width: var(--measure); }
