/* Burning Hearts — burningheartsbible.com. Warm paper, chocolate ink, teal and gold, as in the app.
   System serif (New York on Apple devices) so the pages load nothing from third parties. */

:root {
  --paper: #F1E9DE;
  --card: #FAF5EE;
  --ink: #2E1D12;
  --muted: #6E5440;
  --line: #E2D3BF;
  --gold: #94703F;
  --teal: #274746;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1C130D; --card: #2A1D14; --ink: #EFE5D8; --muted: #B39B85; --line: #3D2A1D; --gold: #C7A67A; --teal: #8FC1BD; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.top { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }

main { padding-block: 48px 64px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; line-height: 1.15; }
h1 { font-size: clamp(34px, 6vw, 48px); margin: 8px 0 6px; }
h2 { font-size: 24px; margin: 40px 0 8px; }
h3 { font-size: 19px; margin: 26px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 1.2em; }
li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 15px; }
.lede { font-family: var(--serif); font-size: 20px; line-height: 1.5; }

.summary { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 22px 10px; margin: 28px 0 8px; }
.summary h2 { margin-top: 18px; font-size: 21px; }

.contact { background: var(--teal); color: #F1E6D6; border-radius: 20px; padding: 24px; margin: 28px 0; }
.contact h2 { margin: 0 0 6px; color: #F1E6D6; }
.contact p { margin: 0 0 8px; color: #D9CBB8; }
.contact .email { font-family: var(--serif); font-size: 24px; color: #E2C992; text-decoration: none; word-break: break-all; }
@media (prefers-color-scheme: dark) { .contact { background: #1E3634; } }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-family: var(--serif); font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding-top: 10px; }
details > div > :last-child { margin-bottom: 0; }

footer { border-top: 1px solid var(--line); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
footer a[aria-current] { color: var(--ink); text-decoration: none; }

/* App Store badge (Apple's official artwork; don't recolour). Swapped in for "Coming soon" at launch by Tolle/tools/site_launch.py */
.badge { display: inline-block; justify-self: start; line-height: 0; }
.badge img { height: 56px; width: auto; }
