@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces_400Regular_Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/Literata_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/Rubik_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/Rubik_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #1C2330;
  --muted: #59616E;
  --gold: #946720;
  --line: #E3DDD1;
  --night: #11173A;
  --night-ink: #F4EEDF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D111B;
    --surface: #151B28;
    --ink: #EEE9DF;
    --muted: #A9B0BC;
    --gold: #E3B866;
    --line: #262E3F;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-inline: 20px;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding-block: 32px 64px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 21px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(34px, 7vw, 52px); margin: 0 0 8px; }
h2 { font-size: 26px; margin: 44px 0 10px; }
h3 { font-size: 20px; margin: 28px 0 6px; }
p, li { max-width: 65ch; }
.lede { font-size: 19px; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }
.scripture { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: clamp(22px, 4.4vw, 30px); line-height: 1.3; margin: 0; }

.hero {
  background: linear-gradient(160deg, #1C2650 0%, #11173A 60%, #0A0E24 100%);
  color: var(--night-ink);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 48px);
  display: grid;
  gap: 18px;
}
.hero img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.hero .lede { color: rgba(244,238,223,0.82); margin: 0; }
.hero .ref { font-weight: 600; font-size: 15px; color: #E3B866; }
.pill { display: inline-block; border: 1px solid rgba(244,238,223,0.35); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; color: var(--night-ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card h3 { margin-top: 0; }
.card p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; color: var(--muted); }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-top: 16px; }
.contact strong { font-size: 18px; }

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }
