:root {
  --night: #0F1713;
  --night-2: #17221C;
  --night-line: #2A382F;
  --night-text: #E9E6DA;
  --night-mute: #A9B2A6;
  --paper: #F2EFE7;
  --card: #FBFAF5;
  --ink: #17201B;
  --stone: #566057;
  --line: #DAD6C8;
  --olive: #3E5B47;
  --olive-dk: #2F4838;
  --gold: #D6A648;
  --gold-ink: #7A5712;
  --clay: #8E4A2E;

  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--olive-dk); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--night); padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { scroll-margin-top: 72px; }

.label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 14px;
}
.lede { font-size: 1.1rem; color: var(--stone); max-width: 38rem; }

.btn {
  display: inline-block;
  font: 600 15px/1 var(--body);
  background: var(--olive);
  color: var(--card);
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  min-height: 46px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--olive-dk); color: var(--card); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  color: var(--night-text);
  background: linear-gradient(to bottom, rgba(15,23,19,.75), rgba(15,23,19,0));
}
.wordmark {
  font: 500 24px/1 var(--display);
  letter-spacing: -.01em;
  color: inherit;
  text-decoration: none;
  margin: 0;
}
.nav.solid { background: var(--night); border-bottom: 1px solid var(--night-line); padding-top: 12px; padding-bottom: 12px; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav nav a {
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--night-text);
  text-decoration: none;
  padding: 12px 2px;
}
.nav nav a:hover { color: var(--gold); }
.nav .nav-cta {
  border: 1px solid rgba(233,230,218,.55);
  border-radius: 999px;
  padding: 11px 18px;
}
.nav .nav-cta:hover { border-color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--night-text);
  background:
    linear-gradient(to top, rgba(15,23,19,.94) 0%, rgba(15,23,19,.55) 42%, rgba(15,23,19,.25) 100%),
    linear-gradient(to right, rgba(15,23,19,.55), rgba(15,23,19,0) 65%),
    url("assets/images/hero-path-bible.jpg") center 40% / cover no-repeat,
    var(--night);
}
.hero-inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 140px var(--gutter) clamp(36px, 7vh, 72px);
}
.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow .he { font: 500 17px/1 "Frank Ruhl Libre", var(--display); letter-spacing: 0; margin-right: 10px; vertical-align: -1px; }
.hero h1 {
  font-size: clamp(2.7rem, 7.6vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 300;
  max-width: 16ch;
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144;
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
.hero-sub { max-width: 36rem; font-size: 1.12rem; color: var(--night-text); opacity: .92; margin-bottom: 32px; }

.finder { position: relative; max-width: 640px; }
.finder-row { display: flex; gap: 10px; }
.finder input[type="search"] {
  flex: 1; min-width: 0;
  height: 58px;
  padding: 0 20px;
  font: 400 18px/1 var(--body);
  color: var(--ink);
  background: var(--card);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  appearance: none;
}
.finder input::placeholder { color: #7B8479; }
.finder input[type="search"]:focus { outline: none; border-color: var(--gold); }
.finder button[type="submit"] {
  height: 58px; padding: 0 26px;
  font: 600 16px/1 var(--body);
  background: var(--gold); color: var(--night);
  border: 0; border-radius: var(--r-md); cursor: pointer;
}
.finder button[type="submit"]:hover { background: #E6BA62; }
.finder-hint { margin: 16px 0 0; font-size: 14px; color: var(--night-mute); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  font: 400 14px/1 var(--body); color: var(--night-text);
  background: transparent; border: 1px solid var(--night-line);
  border-radius: 999px; padding: 9px 14px; cursor: pointer; min-height: 36px;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }

.results {
  position: absolute; left: 0; right: 0; top: 66px; z-index: 20;
  list-style: none; margin: 0; padding: 6px;
  background: var(--card); color: var(--ink);
  border-radius: var(--r-md);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
  max-height: 60vh; overflow: auto;
}
.results li { margin: 0; }
.results a, .results .none {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; min-height: 48px;
}
.results a:hover, .results a[aria-selected="true"] { background: #ECE8DA; }
.results .kind { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); min-width: 92px; }
.results .name { font-weight: 500; }
.results .none { display: block; color: var(--stone); }
.results .none a { display: inline; padding: 0; min-height: 0; color: var(--olive); text-decoration: underline; }
.counts { margin: 22px 0 0; font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-mute); }

/* ---------- featured ---------- */
.featured { padding: clamp(64px, 10vw, 112px) 0; }
.featured h2, .library h2, .topics h2, .method h2, .feedback h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1; letter-spacing: -.015em;
  margin-bottom: 18px;
}
.verse {
  margin: 40px 0 28px; padding: 26px 0 26px 28px;
  border-left: 3px solid var(--gold);
  font: 300 clamp(1.25rem, 2.4vw, 1.65rem)/1.5 var(--display);
  max-width: 44rem;
}
.verse small { display: block; margin-top: 12px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pane { border-radius: var(--r-md); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); background: var(--card); }
.pane .label { color: var(--stone); }
.pane p:last-child { margin: 0; }
.pane-first { background: var(--night); color: var(--night-text); border-color: var(--night); }
.pane-first .label { color: var(--gold); }
.split-foot { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; color: var(--stone); font-size: 15px; }

/* ---------- library ---------- */
.library { padding: clamp(56px, 8vw, 96px) 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lede.tight { margin: 4px 0 0; font-size: 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.filter input {
  height: 48px; width: min(100%, 320px); padding: 0 16px;
  font: 400 16px/1 var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
.filter input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(62,91,71,.2); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card a {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 22px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .18s, transform .18s;
}
.card a:hover { border-color: var(--olive); transform: translateY(-2px); }
.card .book { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.card h3 { font: 400 1.5rem/1.15 var(--display); letter-spacing: -.01em; }
.card .verse-line { quotes: "\201C" "\201D"; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: italic 300 1rem/1.45 var(--display); color: var(--ink); }
.card p {
  margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--stone);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .go { margin-top: auto; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--olive); padding-top: 6px; }
.empty { color: var(--stone); }

/* ---------- topics ---------- */
.topics { padding: clamp(56px, 8vw, 104px) 0; }
.topics-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.topics-photo {
  position: sticky; top: 88px;
  aspect-ratio: 4 / 5; border-radius: var(--r-md);
  background: url("assets/images/topics-olive-grove.jpg") center / cover no-repeat, var(--night-2);
}
.mini { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin: 36px 0 14px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 2px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.rows a:hover .t { color: var(--olive); }
.rows .t { font: 400 1.35rem/1.25 var(--display); }
.rows .k { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); white-space: nowrap; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; color: var(--stone); border: 1px dashed #B9B49F; border-radius: 999px; padding: 8px 14px; }
.suggest { margin-top: 22px; font-size: 15px; color: var(--stone); }

/* ---------- method ---------- */
.method { padding: clamp(48px, 7vw, 88px) 0; background: var(--night); color: var(--night-text); }
.method .label { color: var(--gold); }
.method a { color: var(--gold); }
.method-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 64px); }
.method-body p { max-width: 38rem; }
.tag { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; margin: 0 4px 4px 0; }
.t-well { background: #E4EFE1; color: #2F4838; }
.t-debated { background: #F7ECD6; color: #7A4F14; }
.t-spec { background: #F3DFD8; color: #8E4A2E; }

/* ---------- feedback ---------- */
.feedback { padding: clamp(56px, 8vw, 104px) 0; }
.feedback-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.fb { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(20px, 3vw, 32px); }
.kinds { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; padding: 0; float: left; width: 100%; }
.kinds label { position: relative; }
.kinds input { position: absolute; opacity: 0; inset: 0; }
.kinds span { display: inline-block; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; cursor: pointer; min-height: 44px; line-height: 20px; background: var(--paper); }
.kinds input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--card); }
.kinds input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.field em { font-style: normal; font-weight: 400; color: var(--stone); }
.field textarea, .field input {
  width: 100%; padding: 12px 14px; font: 400 16px/1.5 var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
.field textarea:focus, .field input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(62,91,71,.2); }
.field textarea { resize: vertical; min-height: 120px; }
.err { display: block; color: var(--clay); margin-top: 6px; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.fb-status { margin: 14px 0 0; min-height: 1.4em; font-size: 15px; color: var(--stone); }
.fb-status.ok { color: var(--olive); font-weight: 500; }
.fb-status.bad { color: var(--clay); }
.fb .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 48px; background: var(--night); color: var(--night-mute); font-size: 14px; border-top: 1px solid var(--night-line); }
.foot .wordmark { color: var(--night-text); margin-bottom: 12px; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--night-text); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-inner > *:nth-child(2) { animation-delay: .08s; }
  .hero-inner > *:nth-child(3) { animation-delay: .16s; }
  .hero-inner > *:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card a { transition: none; } }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .split, .topics-grid, .method-grid, .feedback-grid { grid-template-columns: 1fr; }
  .topics-photo { position: static; aspect-ratio: 16 / 9; }
  .nav nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .finder-row { flex-direction: column; }
  .finder input[type="search"] { flex: none; width: 100%; }
  .finder button[type="submit"] { width: 100%; }
  .results { top: 134px; }
  .hero h1 { max-width: none; }
}
