/* BibleMe site. Palette and type follow the app: lapis, vellum, ink, rubric. Literata, self-hosted. */
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f5ef;
  --ink: #1a1c19;
  --muted: #55584f;
  --rule: #d5d8cb;
  --lapis: #1e3a8a;
  --on-lapis: #f4f5ef;
  --rubric: #a4262c;
  --mark: #e8dcb0;
  --focus: #1e3a8a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12140f;
    --ink: #e3e4dc;
    --muted: #a9aba0;
    --rule: #2f332a;
    --lapis: #aec0ff;
    --on-lapis: #12140f;
    --rubric: #e58a8f;
    --mark: #4a3f17;
    --focus: #aec0ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lapis); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { text-decoration-thickness: 0.12em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lapis); color: var(--on-lapis); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); font-weight: 650; font-size: 1.15rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 1.25rem; font-family: var(--sans); font-size: 0.95rem; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top nav a[hreflang] { font-weight: 600; color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); }
h1, h2, h3 { font-weight: 650; line-height: 1.15; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.3rem); line-height: 1.55; max-width: 36rem; margin: 1.25rem 0 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
.button { display: inline-block; background: var(--lapis); color: var(--on-lapis); font-family: var(--sans); font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; padding: 0.85rem 1.35rem; border-radius: 0.6rem; }
.button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.cta-note { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

/* the page sample: the chapter numeral is the one decorative thing */
.sample { margin: 2.75rem 0 0; max-width: 34rem; }
.sample p { margin: 0; font-size: 1.2rem; line-height: 1.6; }
.sample .num { float: left; font-size: 5.6rem; line-height: 0.82; font-weight: 650; color: var(--rubric); margin: 0.12em 0.14em 0 -0.03em; letter-spacing: -0.03em; }
.sample sup { font-size: 0.62em; color: var(--muted); margin-inline: 0.15em 0.1em; font-family: var(--sans); }
.sample::after { content: ""; display: block; clear: both; }
.sample figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }

.shot { margin: 0; justify-self: center; width: min(100%, 22rem); }
.shot img { border-radius: 1.1rem; box-shadow: 0 0.1rem 0 var(--rule), 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.35); }

/* sections */
section { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); }
section > .wrap > h2, .prose h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.4rem; }
.prose { max-width: 40rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h3:first-child { margin-top: 0; }

.facts { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 40rem); column-gap: 2rem; margin: 0; }
.facts dt, .facts dd { padding-block: 0.9rem; border-top: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 650; color: var(--lapis); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; padding-top: 0; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11rem, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.75rem; margin: 0; list-style: none; padding-inline: 0; }
.strip li { scroll-snap-align: start; }
.strip img { border-radius: 0.8rem; width: 100%; }
.strip-hint { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }

.faq details { border-top: 1px solid var(--rule); padding-block: 0.2rem; max-width: 44rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; padding-block: 0.8rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--lapis); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; max-width: 40rem; }

.related { margin: 0; padding: 0; list-style: none; max-width: 40rem; }
.related li { padding-block: 0.6rem; border-top: 1px solid var(--rule); }
.related a { font-weight: 650; }

/* article pages */
.article { padding-block: clamp(1.5rem, 4vw, 3rem) 1rem; }
.article h1 { max-width: 20ch; font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 1.25rem; }
.article .answer { font-size: 1.2rem; line-height: 1.55; max-width: 40rem; margin: 0 0 1.5rem; }
.updated { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 0 0 2rem; }
.article .cta { margin-bottom: 1rem; }

footer { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; font-family: var(--sans); font-size: 0.92rem; color: var(--muted); }
footer .wrap { display: grid; gap: 1rem 3rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
footer p { margin: 0 0 0.35rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

.lost { padding-block: 18vh; }
.lost h1 { margin-bottom: 1rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .shot { width: min(100%, 17rem); }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-top: 1px solid var(--rule); padding-bottom: 0; }
  .facts dd { border-top: 0; padding-top: 0.15rem; }
  .facts dt:first-of-type { border-top: 0; }
}
@media (max-width: 26rem) {
  body { font-size: 1rem; }
  .top nav .hide-sm { display: none; }
  .sample .num { font-size: 4.6rem; }
}
