/* Wheel of Verses website. Same colours as the app (src/styles/base.css). */
:root {
  --bg: #fbf6ec;
  --surface: #ffffff;
  --surface-2: #f3eadb;
  --text: #2a1f17;
  --text-muted: #6b5a4b;
  --line: #e2d5c1;
  --primary: #8a3a1e;
  --primary-ink: #ffffff;
  --gold: #b8862a;
  --gold-soft: #f4e3bd;
  --focus: #1d5fa8;
  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --font-verse: Georgia, 'Noto Serif', 'Times New Roman', serif;
  --radius: 14px;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1612;
    --surface: #26201a;
    --surface-2: #322921;
    --text: #f4ebdd;
    --text-muted: #bfae98;
    --line: #463a2e;
    --primary: #e08a5f;
    --primary-ink: #1b1612;
    --gold: #e1b45a;
    --gold-soft: #4a3a1c;
    --focus: #8cc0ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

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

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--text-muted); border-radius: 8px; }
.nav a[aria-current='page'] { color: var(--text); font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 40px; color: var(--text-muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }

/* Home page */
.hero { padding: 56px 0 32px; text-align: center; }
.hero img { width: 96px; height: 96px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.15; margin: 16px 0 8px; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); margin: 0 auto 28px; max-width: 32rem; }
.verse {
  font-family: var(--font-verse);
  font-size: 1.2rem;
  background: var(--surface-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 32px 0;
}
.verse cite { display: block; font-family: var(--font-ui); font-style: normal; font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }

.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  background: var(--primary); color: var(--primary-ink);
}
.btn--ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn[aria-disabled='true'] { opacity: 0.6; pointer-events: none; }
.note { font-size: 0.9rem; color: var(--text-muted); }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 40px 0; padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.features h3 { margin: 0 0 6px; font-size: 1.1rem; }
.features p { margin: 0; color: var(--text-muted); }

/* Policy pages */
.doc { padding-top: 32px; }
.doc h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 4px; }
.doc .updated { color: var(--text-muted); margin-top: 0; }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.5em; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--gold-soft); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.steps li { margin-bottom: 6px; }

/* Articles */
.article { max-width: 40rem; margin: 0 auto; padding-top: 32px; }
.article-head { margin-bottom: 32px; }
.kicker { margin: 0 0 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.kicker a { text-decoration: none; }
.article h1 { font-family: var(--font-verse); font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.15; margin: 0 0 8px; }
.standfirst { font-size: 1.2rem; color: var(--text-muted); margin: 0 0 12px; }
.byline { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.article > p { font-family: var(--font-verse); font-size: 1.15rem; line-height: 1.75; }
.article > p.note { font-family: var(--font-ui); font-size: 0.9rem; }
.article h2 { font-size: 1.35rem; margin: 2em 0 0.5em; }
.article-cta { margin: 40px 0 24px; text-align: center; }

.post-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.post-list a { display: block; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.post-list a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.post-list h2 { font-family: var(--font-verse); color: var(--primary); margin: 0 0 4px; font-size: 1.3rem; }
.post-list p { margin: 8px 0 0; color: var(--text-muted); }
.post-list .byline { margin-top: 0; }
