/* biblically.app — shared styles.
   Palette and type follow the app: the splash blue as accent, Source Serif 4
   for headings (the same face the intake screens use), system sans for text. */

:root {
  --bg: #ffffff;
  --surface: #f7f7f9;
  --text: #16181a;
  --text-secondary: #60646c;
  --accent: #1668b3;
  --accent-bright: #208aef;
  --border: #e4e5e9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #17181b;
    --text: #ecedee;
    --text-secondary: #b0b4ba;
    --accent: #79bbff;
    --accent-bright: #5aaeff;
    --border: #26282c;
  }
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

h1 { font-size: 2.25rem; margin: 0 0 .5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 2.75rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 .5rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 2px; }

.lede { color: var(--text-secondary); font-size: 1.05rem; }
.meta { color: var(--text-secondary); font-size: .9rem; margin-bottom: 2.5rem; }

.masthead {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.masthead a { color: var(--text); text-decoration: none; font-weight: 600; }
.masthead nav { margin-left: auto; display: flex; gap: 1.25rem; font-size: .95rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.card p:last-child { margin-bottom: 0; }

.table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--text-secondary); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.scroll { overflow-x: auto; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: .9rem;
}
footer a { color: var(--text-secondary); }

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .wrap { padding-top: 2.5rem; }
  .masthead { flex-wrap: wrap; }
  .masthead nav { margin-left: 0; width: 100%; }
}
