/* Bible Club — the public pages.
 *
 * No external requests of any kind: no web fonts, no analytics, no CDN. Partly
 * because a legal page should not need any, and partly because a German court
 * (LG München I, 3 O 17493/20) held that loading Google Fonts from Google's
 * servers transmits the visitor's IP address without a legal basis. A privacy
 * policy that leaks IP addresses to a third party is not a good look, and this
 * app's audience is largely German and Croatian.
 *
 * System font stack, one stylesheet, works offline, renders in both themes. */

:root {
  --bg: #fbfafd;
  --surface: #ffffff;
  --ink: #1e1a26;
  --ink-muted: #6b6478;
  --rule: #e6e2ee;
  --primary: #7c3aed;
  --primary-soft: #ede6fb;
  --warn-bg: #fdf6e3;
  --warn-line: #e6d5a8;
  --warn-ink: #7a5c17;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16131c;
    --surface: #1e1a26;
    --ink: #f2eef8;
    --ink-muted: #a89fb8;
    --rule: #2d2738;
    --primary: #a78bfa;
    --primary-soft: #2e2640;
    --warn-bg: #2a2313;
    --warn-line: #4d3f1c;
    --warn-ink: #e0c27a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
header.site .wrap { display: flex; align-items: center; gap: 0.75rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.mark {
  width: 2rem; height: 2rem; border-radius: 0.55rem; flex: none;
  background: linear-gradient(150deg, #8b5cf6, #7c3aed 55%, #6d28d9);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1rem;
}
header.site a.name { color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }

main { padding: 2.75rem 0 3.5rem; }

h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; margin: 2.5rem 0 0.6rem; }
h3 { font-size: 1.02rem; margin: 1.75rem 0 0.4rem; }
p, li { color: var(--ink); }
.lede { color: var(--ink-muted); font-size: 1.05rem; margin: 0 0 0.25rem; }
.updated { color: var(--ink-muted); font-size: 0.9rem; margin: 0 0 2rem; }
ul, ol { padding-left: 1.35rem; }
li { margin: 0.35rem 0; }
a { color: var(--primary); }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.scroll { overflow-x: auto; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--ink-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

.callout {
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--primary);
  border-radius: 0.6rem; padding: 1rem 1.1rem; margin: 1.5rem 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* An unfilled placeholder is meant to be impossible to miss. Anything still
 * wearing this style must not be published. */
.fill {
  background: var(--warn-bg); border: 1px dashed var(--warn-line); color: var(--warn-ink);
  border-radius: 0.3rem; padding: 0.05em 0.4em; font-weight: 600; white-space: nowrap;
}

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 2.4rem; margin: 1rem 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0.05rem;
  width: 1.7rem; height: 1.7rem; border-radius: 0.45rem; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 0.85rem;
}

footer.site { border-top: 1px solid var(--rule); background: var(--surface); }
footer.site .wrap { padding-top: 1.75rem; padding-bottom: 2.5rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.9rem; }
footer.site p { color: var(--ink-muted); font-size: 0.88rem; margin: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
