/* Map & Lamp — mapandlamp.com. Palette P1 "Lamplit Clay" and type from the brand file
   (~/Desktop/Bible Channel/Brand/Round 1/01-Brand-File-Draft.md). One bold moment: the lamp over the map. */
:root {
  --ink: #1E1813;        /* Lamp Black */
  --ink-2: #2A211A;      /* a step up, for panels */
  --paper: #E8D5B0;      /* Linen */
  --paper-dim: #CDBB97;
  --stone: #8C7F68;      /* Stone: rules and quiet marks only (4.48:1 on ink, not for small type) */
  --clay: #A65A33;       /* Terracotta */
  --ochre: #C98E36;      /* Ochre */
  --glow: #F3B95F;       /* Lamp Glow */
  --lapis: #2B4770;      /* Lapis */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Alegreya Sans", system-ui, sans-serif;
  --sc: "Alegreya Sans SC", "Alegreya Sans", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 34rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 1.125rem/1.62 var(--sans); font-kerning: normal;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* paper grain over everything, very faint: the page should feel like it is lit, not printed */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--glow); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; font-variation-settings: "opsz" 144, "SOFT" 100; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; }
p { margin: 0; }

/* ---------- header ---------- */
.top {
  position: absolute; z-index: 10; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 46px; height: auto; flex: none; }
.brand-word, .foot-brand p { font: 600 1.35rem/1 var(--serif); font-variation-settings: "opsz" 144, "SOFT" 100; letter-spacing: -.005em; }
.brand-word i, .foot-brand i { font-style: italic; font-weight: 420; color: var(--glow); }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 1rem; }
.top nav a { text-decoration: none; color: var(--paper-dim); transition: color .2s; }
.top nav a:hover { color: var(--paper); }
.top nav .nav-sub { color: var(--ink); background: var(--glow); padding: 8px 16px; border-radius: 999px; font-weight: 500; }
.top nav .nav-sub:hover { color: var(--ink); background: #F7CB82; }
@media (max-width: 760px) { .top nav a:not(.nav-sub) { display: none; } .mark { width: 38px; } .brand-word { font-size: 1.15rem; } }

/* ---------- hero: the lamp over the map ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-map { position: absolute; inset: 0; z-index: -1; --x: 22%; --y: 52%; --r: 30vmax; }
.hero-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
@media (max-aspect-ratio: 1/1) { .hero-map img { object-position: 24% 50%; } }
.hero-dark { filter: brightness(.16) saturate(.7) sepia(.25); }
.hero-lit {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.92) 12%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.42) 48%, rgba(0,0,0,.2) 64%, rgba(0,0,0,.07) 80%, transparent 96%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.92) 12%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.42) 48%, rgba(0,0,0,.2) 64%, rgba(0,0,0,.07) 80%, transparent 96%);
  filter: saturate(1.08) brightness(1.05);
}
.hero-warmth {   /* the lamp's color on the clay, plus a floor of shadow under the copy */
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle calc(var(--r) * .55) at var(--x) var(--y), rgba(243,185,95,.2), rgba(243,185,95,.06) 45%, transparent 75%),
    linear-gradient(180deg, rgba(30,24,19,.55) 0%, transparent 22%, transparent 48%, rgba(30,24,19,.88) 100%);
  mix-blend-mode: normal;
}
.hero-copy { padding: 0 var(--gutter) clamp(56px, 10vh, 120px); max-width: 52rem; }
.hero h1 {
  font-size: clamp(3.1rem, 9vw, 8.4rem); line-height: .92; font-weight: 600; letter-spacing: -.025em;
  text-shadow: 0 2px 30px rgba(30,24,19,.7);
}
.hero-lede { margin-top: 26px; max-width: 31rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--paper-dim); text-shadow: 0 1px 14px rgba(30,24,19,.9); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-hint {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 10vh, 120px);
  font: italic 400 1rem var(--serif); color: var(--stone); writing-mode: vertical-rl; transform: rotate(180deg);
}
@media (hover: none), (max-width: 760px) { .hero-hint { display: none; } }

/* load: the room is dark, then the lamp catches */
.js .hero-lit, .js .hero-warmth { opacity: 0; transition: opacity 1.8s ease .25s; }
.js.lamp-on .hero-lit, .js.lamp-on .hero-warmth { opacity: 1; }
.js .hero-copy { opacity: 0; transform: translateY(10px); transition: opacity 1.1s ease .9s, transform 1.1s ease .9s; }
.js.lamp-on .hero-copy { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .hero-lit, .js .hero-warmth, .js .hero-copy { transition: none; opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1.05rem; transition: background .2s, color .2s, border-color .2s; }
.btn-glow { background: var(--glow); color: var(--ink); }
.btn-glow:hover { background: #F7CB82; }
.btn-quiet { border: 1px solid rgba(232,213,176,.35); color: var(--paper); }
.btn-quiet:hover { border-color: var(--paper); }

/* ---------- intro statement ---------- */
.intro { padding: clamp(96px, 16vh, 180px) var(--gutter) clamp(72px, 12vh, 140px); }
.intro p {
  max-width: 21em; font: 380 clamp(1.7rem, 3.6vw, 3rem)/1.22 var(--serif); font-variation-settings: "opsz" 72, "SOFT" 100;
  letter-spacing: -.012em; color: var(--paper);
}

/* ---------- episodes ---------- */
.episodes { padding: 0 var(--gutter) clamp(96px, 14vh, 170px); }
.episodes > h2 { margin-bottom: clamp(32px, 5vh, 56px); }
.ep-when { font: 500 .95rem var(--sans); color: var(--glow); letter-spacing: .01em; margin-bottom: 10px; }
.ep-lead { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ep-img { margin: 0; position: relative; }
.ep-img img { width: 100%; border-radius: 3px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.ep-text h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.ep-sub { font: italic 400 clamp(1.15rem, 1.6vw, 1.35rem) var(--serif); color: var(--paper-dim); margin: 8px 0 22px; }
.ep-text > p:not(.ep-when):not(.ep-sub) { max-width: var(--measure); color: var(--paper-dim); margin-bottom: 30px; }
.ep-next { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: clamp(56px, 9vh, 96px); }
.ep-small img { width: 100%; border-radius: 3px; margin-bottom: 20px; opacity: .92; }
.ep-small h3 { margin-bottom: 8px; }
.ep-small > p:last-child { color: var(--paper-dim); max-width: 30rem; }
@media (max-width: 860px) { .ep-lead, .ep-next { grid-template-columns: 1fr; } }

/* ---------- the shelf ---------- */
.shelf-sec { padding: clamp(80px, 12vh, 150px) 0 clamp(96px, 14vh, 170px); background: radial-gradient(ellipse 70% 60% at 50% 70%, #2A1F17 0%, var(--ink) 70%); }
.shelf-head { padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 48px; margin-bottom: clamp(40px, 7vh, 72px); }
.shelf-head p { max-width: 26rem; color: var(--paper-dim); }
.shelf-wrap { position: relative; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--stone) transparent; }
.shelf { display: flex; align-items: flex-end; gap: 3px; min-width: 980px; height: 300px; padding-top: 20px; }
.shelf .gap { flex: 0 0 34px; }
.spine {
  --h: 240px; --w: 15px; --c: #4A3B2E;
  flex: 1 1 var(--w); min-width: 11px; height: var(--h); position: relative; cursor: pointer; border: 0; padding: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.07) 30%, rgba(255,255,255,.02) 60%, rgba(0,0,0,.4)),
    linear-gradient(180deg, transparent 9%, rgba(201,142,54,.28) 9.5%, rgba(201,142,54,.28) 10.5%, transparent 11%, transparent 88%, rgba(201,142,54,.28) 88.5%, rgba(201,142,54,.28) 89.5%, transparent 90%),
    var(--c);
  border-radius: 2px 2px 0 0; transition: transform .25s ease, filter .25s ease, box-shadow .4s ease;
}
.spine:hover, .spine:focus-visible, .spine.is-active { transform: translateY(-8px); filter: brightness(1.35); outline-offset: 2px; }
.spine.coming::before { content: ""; position: absolute; left: 50%; top: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--glow); opacity: .7; }
.spine.lit {
  --c: #B8803A; filter: brightness(1.15);
  box-shadow: 0 0 22px 4px rgba(243,185,95,.45), 0 0 80px 20px rgba(243,185,95,.16);
}
.spine.lit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(243,185,95,.55), rgba(243,185,95,.15)); mix-blend-mode: screen; animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .spine.lit::after { animation: none; } .spine { transition: none; } }
.shelf-board { height: 18px; margin: 0 calc(var(--gutter) * -1); background: linear-gradient(180deg, #5A4532, #3A2C20 60%, #261D16); box-shadow: 0 18px 40px -10px rgba(0,0,0,.8); min-width: calc(980px + var(--gutter) * 2); }
.shelf-read { padding: 26px var(--gutter) 0; font: 400 clamp(1.2rem, 1.8vw, 1.5rem) var(--serif); color: var(--paper); min-height: 2.2em; }
.shelf-read span { color: var(--paper-dim); font-style: italic; }

/* ---------- the verse: Daniel at his window (Daniel 6:10) holds the right side; the words sit in the dark beside him ---------- */
.verse { position: relative; min-height: 82vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 120px var(--gutter); }
.verse img { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2; }
.verse::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 36%, rgba(30,24,19,.7) 48%, rgba(30,24,19,.12) 66%, rgba(30,24,19,.3) 100%),
              linear-gradient(180deg, var(--ink), transparent 16%, transparent 84%, var(--ink)); }
.verse blockquote { margin: 0; width: min(33vw, 540px); }
@media (max-width: 760px) { .verse blockquote { width: auto; max-width: 22rem; } }
.verse p { font: 400 clamp(2.2rem, 4.6vw, 4.2rem)/1.08 var(--serif); font-variation-settings: "opsz" 144, "SOFT" 100; letter-spacing: -.015em; }
.verse cite { display: block; margin-top: 26px; font: 500 1.05rem var(--sans); font-style: normal; color: var(--glow); }
@media (max-width: 760px) {
  .verse { align-items: end; min-height: 92vh; padding-bottom: 72px; }
  .verse img { width: 100%; height: 62%; }
  .verse::before { background: linear-gradient(180deg, var(--ink) 0%, rgba(30,24,19,.1) 12%, rgba(30,24,19,.2) 40%, var(--ink) 64%); }
}

/* ---------- method ---------- */
.method { padding: clamp(96px, 14vh, 170px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.method-list { margin: 0; display: grid; gap: 0; }
.method-list > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-top: 1px solid rgba(140,127,104,.35); }
.method-list > div:last-child { border-bottom: 1px solid rgba(140,127,104,.35); }
.method-list dt { font: 560 1.3rem/1.25 var(--serif); font-variation-settings: "opsz" 48, "SOFT" 100; }
.method-list dd { margin: 0; color: var(--paper-dim); max-width: var(--measure); }
@media (max-width: 860px) { .method, .method-list > div { grid-template-columns: 1fr; } }

/* ---------- believe teaser ---------- */
.believe-teaser { padding: 0 var(--gutter) clamp(110px, 16vh, 190px); }
.believe-teaser > div { max-width: 44rem; border-left: 2px solid var(--clay); padding-left: clamp(22px, 3vw, 40px); }
.believe-teaser h2 { margin-bottom: 20px; }
.believe-teaser p { font: 380 clamp(1.15rem, 1.7vw, 1.4rem)/1.5 var(--serif); font-variation-settings: "opsz" 24, "SOFT" 100; color: var(--paper); margin-bottom: 24px; }
.link { color: var(--glow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; font-weight: 500; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid rgba(140,127,104,.3); padding: 44px var(--gutter) 40px; display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.foot-links a { color: var(--paper-dim); text-decoration: none; }
.foot-links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.foot-small { grid-column: 1 / -1; font-size: .95rem; color: #A99B80; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

/* ---------- believe page ---------- */
.page { padding: clamp(150px, 22vh, 220px) var(--gutter) clamp(96px, 14vh, 160px); max-width: 64rem; }
.page h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.02em; }
.page .lede { margin: 28px 0 clamp(48px, 8vh, 80px); max-width: 36rem; font: 380 clamp(1.2rem, 1.9vw, 1.5rem)/1.48 var(--serif); font-variation-settings: "opsz" 24, "SOFT" 100; color: var(--paper-dim); }
.creed { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.creed li { counter-increment: c; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 18px; padding: 22px 0; border-top: 1px solid rgba(140,127,104,.3); }
.creed li::before { content: counter(c); font: 500 1.6rem/1.2 var(--serif); color: var(--glow); font-variant-numeric: oldstyle-nums; }
.creed p { max-width: 38rem; font-size: 1.15rem; }
.creed strong { font: 560 1.25rem var(--serif); font-variation-settings: "opsz" 36, "SOFT" 100; display: block; margin-bottom: 4px; color: var(--paper); }
.page h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: clamp(64px, 10vh, 100px) 0 18px; }
.page .prose p { max-width: 38rem; color: var(--paper-dim); margin-bottom: 18px; }
.page .prose p:last-child { margin-bottom: 0; }
.top.solid { position: absolute; }
