/* BibleBound page. Colours and type are the app's own: parchment, ink brown, gold, EB Garamond and DM Sans. */
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-400Regular_Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --paper: #efe6d3;
  --paper-deep: #e7dcc4;
  --card: #f7f0e1;
  --ink: #33281c;
  --ink-soft: #5d4f3d;
  --muted: #84735c;
  --line: #d9cbae;
  --gold: #8a6a1c;
  --gold-bright: #b8923a;
  --gold-pale: #ecd9a4;
  --night: #2b2118;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 40, 10, .08), 0 10px 30px -12px rgba(60, 40, 10, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -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; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow, .narrow { max-width: 760px; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.sub { font-size: 1.12rem; color: var(--ink-soft); margin-top: 16px; max-width: 46em; }
.gold { color: var(--gold); }
.fine { font-size: .84rem; color: var(--muted); }
.label { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--gold); color: #fff8e6; border: 1px solid var(--gold);
  font: 700 1rem/1 var(--sans); padding: 16px 24px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(110, 80, 10, .7); transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #73570f; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--gold); box-shadow: none; }
.btn-ghost:hover { background: var(--gold-pale); color: var(--ink); }
.btn-small { padding: 11px 18px; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.cta-row.center { justify-content: center; }

/* ── top bar ── */
.bar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 10px 22px; background: rgba(239, 230, 211, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.3rem var(--serif); }
.bar-brand img { border-radius: 8px; }
.bar-nav { margin-left: auto; display: flex; gap: 22px; }
.bar-nav a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500; }
.bar-nav a:hover { color: var(--gold); }
@media (max-width: 760px) { .bar-nav { display: none; } .bar .btn { margin-left: auto; } }

/* ── hero ── */
.hero {
  max-width: 1180px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) 22px 40px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 500; }
.lead { font-size: clamp(1.12rem, 1.9vw, 1.32rem); color: var(--ink-soft); margin-top: 24px; max-width: 32em; }
.hero-art { margin: 0; position: relative; justify-self: center; max-width: 430px; width: 100%; }
.hero-art img {
  border-radius: 22px; box-shadow: 0 2px 0 #fff6 inset, 0 30px 60px -24px rgba(50, 30, 5, .55), 0 0 0 1px rgba(120, 90, 20, .35);
  transform: rotate(1.6deg); transition: transform .5s ease;
}
.hero-art:hover img { transform: rotate(0deg); }
.hero-art::before {
  content: ""; position: absolute; inset: -6% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 170, 70, .38), transparent 72%);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; }
}

/* ── facts strip ── */
.facts {
  max-width: 1120px; margin: 18px auto 0; padding: 0 22px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
.facts div { padding: 18px 16px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 500 2.5rem/1 var(--serif); color: var(--gold); }
.facts span { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.35; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 4px 18px; }
  .facts div { border-left: 0; padding: 12px 0; border-top: 1px solid var(--line); }
  .facts div:first-child { grid-column: 1 / -1; }
}

/* ── prose ── */
.prose { max-width: 720px; margin: 0 auto; padding: clamp(64px, 9vw, 110px) 22px; font-size: 1.2rem; line-height: 1.7; color: var(--ink-soft); }
.prose h2 { color: var(--ink); margin-bottom: 26px; }
.prose p { font-family: var(--serif); font-size: 1.36rem; line-height: 1.55; color: var(--ink); }
.prose .drop::first-letter {
  float: left; font: 600 4.9rem/.82 var(--serif); color: var(--gold); padding: 8px 10px 0 0;
}

/* ── bands ── */
.band { background: linear-gradient(180deg, var(--paper-deep), #eadfc8); border-block: 1px solid var(--line); padding: clamp(60px, 8vw, 100px) 0; }

/* ── eras ribbon ── */
.eras-shell { position: relative; margin-top: 36px; }
.eras {
  list-style: none; margin: 0; padding: 26px max(22px, calc((100vw - 1120px) / 2 + 22px)) 30px;
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; position: relative;
}
.eras::-webkit-scrollbar { display: none; }
.era {
  flex: 0 0 236px; scroll-snap-align: center; position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 18px; box-shadow: var(--shadow);
}
/* the golden thread that ties the cards together */
.era::after {
  content: ""; position: absolute; top: 34px; left: 100%; width: 19px; height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), #e2c26a); border-radius: 2px;
}
.era:last-child::after { display: none; }
.era-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #fff8e6; font: 700 .92rem var(--sans); box-shadow: 0 0 0 4px var(--gold-pale); }
.era h3 { margin-top: 14px; font-size: 1.5rem; }
.era-count { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.era-faces { display: flex; align-items: flex-end; justify-content: center; gap: 0; height: 132px; overflow: hidden; margin-top: 12px; border-bottom: 3px solid var(--line); border-radius: 0 0 4px 4px; }
.era-faces img { height: 120px; width: auto; max-width: 34%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 3px 2px rgba(60, 40, 10, .22)); }
.era-names { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.eras-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--gold); font: 500 1.7rem/1 var(--serif); cursor: pointer; box-shadow: var(--shadow); padding: 0; max-height: 46px; bottom: auto;
}
.eras-nav.prev { left: 14px; } .eras-nav.next { right: 14px; }
.eras-nav:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .eras-nav { display: none; } .era { flex-basis: 214px; } }
.thread-note { display: flex; align-items: center; gap: 12px; font: italic 400 1.25rem var(--serif); color: var(--ink-soft); margin: 14px 0 0; }
.thread-dot { flex: none; width: 46px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-bright), #e2c26a); }

/* ── explorer ── */
.try { padding: clamp(64px, 9vw, 110px) 0; }
.explorer {
  max-width: 980px; margin: 36px auto 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); position: relative;
}
@media (max-width: 1020px) { .explorer { margin-inline: 14px; } }
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px; font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.trail button { font: 500 .86rem var(--sans); color: var(--gold); background: none; border: 0; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.trail button:hover { background: var(--gold-pale); }
.trail .here { color: var(--ink); font-weight: 700; padding: 4px 6px; }
.trail .sep { opacity: .5; }
.trail .reset { margin-left: auto; color: var(--muted); }
.person { display: grid; grid-template-columns: 250px 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; }
.person.swap { animation: swap .35s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stage {
  position: relative; border-radius: 20px; padding: 18px 12px 0; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #fdf6df 0%, #ecdcb0 100%); border: 1px solid var(--line);
}
.stage img { height: 300px; width: auto; margin: 0 auto; filter: drop-shadow(0 8px 6px rgba(60, 40, 10, .28)); position: relative; z-index: 1; }
.stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 12px; height: 16px; border-radius: 50%; background: rgba(90, 60, 10, .2); filter: blur(6px); }
.era-pill { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); border: 1px solid var(--gold-bright); border-radius: 999px; padding: 4px 12px; }
.person h3 { font-size: clamp(2.2rem, 5vw, 3rem); margin-top: 10px; }
.known { font: italic 400 1.3rem var(--serif); color: var(--ink-soft); margin: 4px 0 12px; }
.blurb { font-size: 1rem; color: var(--ink-soft); margin: 0 0 8px; }
.verse { font-size: .84rem; color: var(--muted); margin: 0 0 18px; }
.rel { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 500 .95rem var(--sans); color: var(--ink);
  background: #fffaf0; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 5px; transition: all .15s ease;
}
.chip:hover { border-color: var(--gold-bright); background: var(--gold-pale); transform: translateY(-1px); }
.chip .face, .faces .face { width: 34px; height: 34px; border-radius: 50%; background: #ecdcb0 no-repeat 50% 5% / 185%; border: 1px solid var(--line); flex: none; }
.chip small { color: var(--muted); font-size: .76rem; }
.rel-note { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.stories { grid-column: 1 / -1; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 18px; }
.story-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.story { background: #fffaf0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.story img { aspect-ratio: 1.25; object-fit: cover; width: 100%; }
.story-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.story-own { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.story h4 { font: 500 1.25rem/1.15 var(--serif); margin: 0; }
.story .ref { font-size: .8rem; color: var(--muted); }
.story .chips { margin-top: auto; padding-top: 10px; }
.story .chip { font-size: .82rem; padding: 3px 10px 3px 4px; }
.story .chip .face { width: 26px; height: 26px; }
.everyone { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.faces { display: flex; flex-wrap: wrap; gap: 8px; }
.faces button { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.faces .face { width: 46px; height: 46px; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.faces button:hover .face { transform: scale(1.12); box-shadow: 0 0 0 3px var(--gold-pale); }
.faces button[aria-current="true"] .face { box-shadow: 0 0 0 3px var(--gold-bright); }
.sample-note { margin: 20px auto 0; font-size: .9rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; }
  .stage img { height: 230px; }
  .story-row { grid-template-columns: 1fr; }
  .story { flex-direction: row; }
  .story img { width: 116px; aspect-ratio: 1; flex: none; }
}

/* ── walkthrough ── */
.walk { padding: clamp(64px, 9vw, 110px) 0 40px; background: var(--night); color: #efe3c8; }
.walk h2 { color: #fbf1d8; } .walk .sub { color: #cdbd9c; } .walk .ap-kicker { color: #d9b868; }
.walk-grid { max-width: 1040px; margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1fr 360px; gap: clamp(30px, 7vw, 110px); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .35s ease; }
.step.on { opacity: 1; }
.step .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d9b868; color: #d9b868; font: 700 .95rem var(--sans); margin-bottom: 16px; }
.step h3 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: #fbf1d8; }
.step p { font-size: 1.14rem; color: #d8c9a8; margin-top: 14px; max-width: 28em; }
.step-shot { display: none; }
.phone-col { position: relative; }
.phone {
  position: sticky; top: max(84px, calc(50vh - 380px)); width: 340px; aspect-ratio: 645 / 1398; margin: 0 auto;
  border-radius: 46px; background: #0e0a06; padding: 10px; box-shadow: 0 0 0 2px #6a5530, 0 40px 80px -30px #000;
}
.phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 37px; opacity: 0; transition: opacity .45s ease; }
.phone img.on { opacity: 1; }
@media (max-width: 860px) {
  .walk-grid { grid-template-columns: 1fr; }
  .phone-col { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; border-top: 1px solid #4a3b28; }
  .step-shot { display: block; width: min(300px, 78vw); margin: 22px auto 0; border-radius: 30px; box-shadow: 0 0 0 7px #0e0a06, 0 0 0 9px #6a5530, 0 30px 60px -30px #000; }
}

/* ── gallery ── */
.gallery { max-width: 1180px; margin: 40px auto 0; padding: 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 34px 14px 12px; color: #fff8e6; background: linear-gradient(transparent, rgba(20, 12, 4, .82)); }
.gallery figcaption b { display: block; font: 500 1.2rem/1.15 var(--serif); }
.gallery figcaption span { font-size: .76rem; opacity: .85; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:first-child img { height: 100%; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ── never ── */
.never { padding-block: clamp(64px, 9vw, 110px) 0; }
.never-grid { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.never-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.never-grid b { display: block; font: 500 1.4rem/1.15 var(--serif); margin-bottom: 8px; }
.never-grid b::before { content: ""; display: block; width: 26px; height: 3px; background: var(--gold-bright); border-radius: 2px; margin-bottom: 14px; }
.never-grid span { font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 860px) { .never-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .never-grid { grid-template-columns: 1fr; } }

/* ── leaders ── */
.leaders-grid { display: grid; grid-template-columns: 1.1fr 1.1fr .9fr; gap: 18px; margin-top: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 14px; }
.card ol, .card ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.card li { margin-bottom: 10px; }
.card li::marker { color: var(--gold); font-weight: 700; }
.card-ask { background: var(--night); color: #e9dcbd; border-color: var(--night); }
.card-ask h3 { color: #fbf1d8; } .card-ask .btn { margin-top: 6px; background: #d9b868; border-color: #d9b868; color: var(--night); }
@media (max-width: 900px) { .leaders-grid { grid-template-columns: 1fr; } }

/* ── next ── */
.coming { padding-block: clamp(64px, 9vw, 110px); }
.next-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.next-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.next-list b { display: block; font: 500 1.4rem/1.2 var(--serif); }
.next-list span { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 700px) { .next-list { grid-template-columns: 1fr; } }

/* ── ask ── */
.ask { background: radial-gradient(90% 120% at 50% 0%, #f8eccb 0%, var(--paper-deep) 70%); border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 110px) 22px; text-align: center; }
.ask-inner { max-width: 640px; margin: 0 auto; }
.ask-mark { width: min(360px, 80%); margin: 0 auto 26px; }
.ask h2 { margin-bottom: 22px; }
.ask p { font: 400 1.34rem/1.5 var(--serif); }
.sign { margin-top: 28px; font-size: 1.1rem !important; color: var(--ink-soft); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--night); color: #fbf1d8; padding: 12px 20px; border-radius: 999px; font-size: .92rem; z-index: 90; box-shadow: var(--shadow); }

.foot { text-align: center; padding: 34px 22px 46px; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.foot p { margin: 0 0 6px; }

/* ── gentle arrival ── */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .hero-art img { transform: none; }
  .person.swap { animation: none; }
  * { transition-duration: .01ms !important; }
}
