/* Shared by contact.html, privacy.html and terms.html only. index.html stays a
   single self-contained file on purpose — see AGENTS.md. Tokens below are copied
   from its <style> block and from design/BibleStandardDesign/DESIGN.md section 2.
   If a token changes there, change it here too. */
:root {
  --crimson: #8c1d20;
  --accent:  #8c1d20;
  --ink:     #241a17;
  --muted:   #746b62;
  --paper:   #fffaf3;
  --card:    #fffdf8;
  --line:    rgba(78,48,35,0.16);
  --shadow:  rgba(42,25,18,0.12);

  --sys:   -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --disp:  "Literata", "Iowan Old Style", Georgia, serif;

  --measure: 34rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --crimson: #a0282c;
    --accent:  #d4595d;
    --ink:     #f0e8df;
    --muted:   #a89888;
    --paper:   #141210;
    --card:    #252019;
    --line:    rgba(255,235,210,0.11);
    --shadow:  rgba(0,0,0,0.48);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem 4rem; }

h1, h2 { font-family: var(--disp); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 2.25rem; line-height: 1.05; }
h2 { font-size: 1.375rem; line-height: 1.2; margin: 3rem 0 1rem; }
p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }

/* Back to the page that sent them here. */
.up {
  display: inline-block;
  font-family: var(--sys);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--muted);
  padding: 2.5rem 0 2rem;
}
.up:hover { color: var(--accent); }

.updated {
  font-family: var(--sys);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.lede { font-size: 1.1875rem; margin-top: 1.5rem; }

/* Identity block on the contact page: mentions légales, read as a record. */
dl.record { margin: 0; }
dl.record > div {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
dl.record > div:last-child { border-bottom: 0; }
dl.record dt {
  font-family: var(--sys);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  flex: 0 0 9rem;
}
dl.record dd { margin: 0; font-size: 1rem; }

ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

/* Unfilled mentions légales fields. Visible on purpose: this must not ship blank. */
.pending {
  font-family: var(--sys);
  font-size: 0.9375rem;
  color: var(--accent);   /* --crimson is a fill, not a text colour: 2.5:1 on dark paper */
}

.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 1px 2px var(--shadow);
}
.note p { font-size: 1rem; line-height: 1.55; }

footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid var(--line);
  font-family: var(--sys);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
footer p { margin: 0 0 0.9rem; }
footer a { color: var(--muted); }

@media (min-width: 40rem) {
  h1 { font-size: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
