/* Selah Codex — landing page.
   Light paper like the app itself, one crimson accent, Monarcha for display,
   a book serif for Scripture, a clean sans for everything else. */

@font-face { font-family: "Monarcha"; src: url("fonts/Monarcha-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Monarcha"; src: url("fonts/Monarcha-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --paper: #fbfaf7;
  --paper-2: #f3f0ea;
  --white: #ffffff;
  --ink: #1b1a18;
  --ink-soft: #5e5951;
  --ink-mute: #8b857b;
  --rubric: #9b2c34;
  --rubric-deep: #7e2229;
  --rubric-tint: #f7ecec;
  --night: #141c2e;
  --night-2: #1c2740;
  --on-night: #eef0f5;
  --on-night-soft: #a6adc0;
  --gold: #c9a44a;
  --line: rgba(27, 26, 24, .1);
  --line-strong: rgba(27, 26, 24, .18);
  --line-night: rgba(238, 240, 245, .12);
  --shadow-sm: 0 1px 2px rgba(27,26,24,.06), 0 4px 14px rgba(27,26,24,.06);
  --shadow-lg: 0 2px 6px rgba(27,26,24,.06), 0 30px 70px -20px rgba(27,26,24,.3);
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --font-display: Monarcha, "Iowan Old Style", Georgia, serif;
  --font-scripture: "Iowan Old Style", Charter, "Source Serif Pro", Palatino, Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-x: clip;
  font-family: var(--font-ui); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; font-kerning: normal;
}
img { max-width: 100%; }
a { color: var(--rubric); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--rubric); outline-offset: 3px; border-radius: 4px; }
kbd {
  font-family: var(--font-ui); font-size: .8em; padding: .1em .45em; line-height: 1.4;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--white); color: var(--ink-soft);
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rubric);
}
.eyebrow.light { color: var(--gold); }
.eyebrow .dot { flex: none; align-self: flex-start; margin-top: .4em; width: 7px; height: 7px; border-radius: 50%; background: var(--rubric); box-shadow: 0 0 0 4px var(--rubric-tint); }

/* Scripture typesetting, shared */
.vn { color: var(--rubric); font-size: .55em; vertical-align: .6em; margin-right: .3em; font-family: var(--font-ui); font-weight: 600; font-variant-numeric: lining-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; text-decoration: none; white-space: nowrap;
  font-family: var(--font-ui); font-weight: 600; font-size: 15.5px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 12px; }
.btn-small { padding: 9px 16px; font-size: 14.5px; }
.btn-red { background: var(--rubric); color: #fff; box-shadow: 0 1px 2px rgba(155,44,52,.3), 0 8px 24px -8px rgba(155,44,52,.55); }
.btn-red:hover { background: var(--rubric-deep); }
.btn-ghost { color: var(--ink); background: var(--white); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-paper { background: var(--on-night); color: var(--night); padding: 10px 18px; font-size: 15px; }
.btn-paper:hover { background: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  background: rgba(251, 250, 247, .78); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.solid { border-bottom-color: var(--line); background: rgba(251, 250, 247, .9); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -.005em; white-space: nowrap;
}
.fleuron-icon {
  width: 26px; height: 20px; flex: none; background-color: var(--rubric);
  -webkit-mask: url("images/fleuron.png") center / contain no-repeat;
  mask: url("images/fleuron.png") center / contain no-repeat;
}
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: inline-block; padding: 7px 12px; border-radius: 8px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav ul a:hover { color: var(--ink); background: rgba(27,26,24,.05); }
.nav-actions { display: inline-flex; align-items: center; gap: 10px; }
.kbd-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--white); color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 7px 10px 7px 11px; font-family: inherit; font-size: 14px; box-shadow: var(--shadow-sm);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.kbd-btn:hover { border-color: var(--ink); color: var(--ink); }
.kbd-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kbd-btn kbd { font-size: 12px; padding: 1px 6px; }
@media (max-width: 900px) { .nav ul, .kbd-btn span { display: none; } .kbd-btn { padding: 7px 9px; } .nav-inner { gap: 12px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(155,44,52,.12), transparent 65%),
    radial-gradient(700px 400px at -10% 30%, rgba(201,164,74,.12), transparent 60%),
    var(--paper);
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(120px, 16vh, 170px) var(--gutter) clamp(56px, 8vw, 96px);
}
.hero-inner > *, .viewer > *, .panel > *, .themes-sec > *, .flow > * { min-width: 0; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; margin: 0;
  font-size: clamp(40px, 4.7vw, 64px); line-height: 1.04; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--rubric); }
.hero-lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-soft); margin: 26px 0 32px; max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.try-k { margin: 28px 0 0; color: var(--ink-mute); font-size: 15px; }
.kbd-chip { background: none; border: 0; padding: 0 2px; cursor: pointer; color: inherit; display: inline-flex; gap: 3px; vertical-align: baseline; }
.kbd-chip kbd { font-size: 12px; }

/* The typeset page — Scripture, set the way the app sets it */
.page-card {
  margin: 0; position: relative; background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(-.6deg);
}
.page-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--rubric), #c86b72 55%, var(--gold));
}
.page-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); font-weight: 500;
}
.page-kjv { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-weight: 600; font-size: 12px; }
.page-body { padding: clamp(26px, 3vw, 40px) clamp(24px, 3.4vw, 46px) clamp(26px, 3vw, 38px); text-align: center; font-family: var(--font-scripture); }
.page-super { margin: 0; color: var(--rubric); font-size: 15.5px; }
.page-book { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.1; }
.page-fleuron {
  display: block; width: 34px; height: 26px; margin: 10px auto 22px; background-color: var(--rubric);
  -webkit-mask: url("images/fleuron.png") center / contain no-repeat; mask: url("images/fleuron.png") center / contain no-repeat;
}
.page-head { margin: 0 0 12px; font-weight: 700; font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase; }
.page-text { margin: 0; text-align: left; font-size: clamp(16.5px, 1.35vw, 18.5px); line-height: 1.6; hyphens: manual; }
.page-text i { font-style: italic; }
.page-text .initial { float: left; width: 2.6em; height: auto; margin: .15em .3em 0 0; }
.page-text .initial + .vn { margin-left: 0; }
.page-card figcaption { padding: 12px 22px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-mute); text-align: center; letter-spacing: .02em; }
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 110px; }
  .page-card { max-width: 560px; transform: none; }
}

/* ---------- Showcase ---------- */
.showcase { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 6vw, 72px); }
.showcase-shot { margin: 0; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; border-radius: var(--r-md); }
.shot img {
  display: block; width: 100%; height: auto; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--white); box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shot:hover img { transform: translateY(-2px); }
.showcase .shot img { border-radius: var(--r-lg); }
figcaption { font-family: var(--font-ui); }
.showcase-shot figcaption, .panel figcaption, .theme-preview figcaption {
  margin-top: 12px; font-size: 13.5px; color: var(--ink-mute); text-align: center;
}
.showcase-shot figcaption span { display: block; font-size: 13px; opacity: .8; }

.stats {
  list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.stats li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stats strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--rubric); letter-spacing: -.01em; }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } .stats li:last-child { grid-column: 1 / -1; } }

/* ---------- Verse band ---------- */
.verse-band {
  max-width: 880px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) var(--gutter);
  text-align: center; position: relative;
}
.verse-band::before, .verse-band::after {
  content: ""; display: block; width: 44px; height: 34px; margin: 0 auto; background-color: var(--rubric);
  -webkit-mask: url("images/fleuron.png") center / contain no-repeat; mask: url("images/fleuron.png") center / contain no-repeat;
}
.verse-band::before { margin-bottom: 28px; }
.verse-band::after { margin-top: 28px; opacity: .55; transform: scaleY(-1); }
.verse-band blockquote { margin: 0; }
.verse-main p { margin: 0; font-family: var(--font-scripture); font-size: clamp(24px, 3.4vw, 40px); line-height: 1.32; letter-spacing: -.005em; }
.verse-band cite { display: block; margin-top: 18px; font-style: normal; color: var(--rubric); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.verse-note { margin: 26px auto 0; max-width: 38em; color: var(--ink-soft); font-size: 16px; }
.verse-note q { font-family: var(--font-scripture); font-style: italic; quotes: "“" "”"; }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--gutter); }
.section-head { margin-bottom: clamp(30px, 4vw, 48px); max-width: 44em; }
.section h2, .get h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.06; letter-spacing: -.02em; margin: 0 0 14px;
}
.section-head p:not(.eyebrow) { font-size: 18px; color: var(--ink-soft); margin: 0; max-width: 36em; }

/* ---------- Feature viewer ---------- */
.viewer { display: grid; gap: clamp(24px, 3vw, 36px); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 -4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 1 0; min-width: 150px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.2;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.tabs button span { grid-row: 1 / 3; align-self: start; color: var(--rubric); font-size: 12px; font-weight: 600; letter-spacing: .06em; padding-top: 3px; font-variant-numeric: tabular-nums; }
.tabs button small { grid-column: 2; font-weight: 400; font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; margin-top: 4px; }
.tabs button:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs button[aria-selected="true"] small { color: rgba(251,250,247,.65); }
.tabs button[aria-selected="true"] span { color: #e3a6ab; }

.panels { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 40px); }
.panel { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.panel[hidden] { display: none; }
.panel-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -.015em; margin: 4px 0 14px; }
.panel-copy p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16.5px; }
.panel-copy ul { list-style: none; margin: 0; padding: 0; }
.panel-copy li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.panel-copy li strong { color: var(--ink); font-weight: 600; }
.panel-copy li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--rubric-tint); border: 1.5px solid var(--rubric);
}
.panel-copy li::after {
  content: ""; position: absolute; left: 4.5px; top: 23.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--rubric);
}
.panel figure { margin: 0; }
.panel .shot img { box-shadow: var(--shadow-sm); }
.js .panel:not([hidden]) { animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.thumbs { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; background: var(--paper-2); border-radius: 10px; }
.thumb {
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 7px;
  background: transparent; color: var(--ink-soft); border: 0; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.thumb:hover { color: var(--ink); }
.thumb.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 980px) {
  .tabs button { flex: 0 0 auto; min-width: 0; grid-template-columns: auto; padding: 10px 14px; font-size: 15px; }
  .tabs button span { grid-row: auto; display: none; }
  .tabs button small { display: none; }
  .panel { grid-template-columns: 1fr; }
}

/* ---------- Study flow ---------- */
.flow-sec { padding-top: 0; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; }
.flow li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 22px 22px; box-shadow: var(--shadow-sm); }
.flow li > span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--rubric-tint); color: var(--rubric); font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 16px;
}
.flow strong { font-family: var(--font-display); font-size: 21px; font-weight: 700; display: block; line-height: 1.15; }
.flow p { margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Themes ---------- */
.themes-sec { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.themes-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 17px; margin: 0 0 28px; }
.theme-btns { display: flex; flex-direction: column; gap: 8px; }
.theme-btn {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px;
  font-family: var(--font-ui); font-weight: 600; font-size: 16px; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.theme-btn i {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--sw) 50%, var(--sw2) 50%);
}
.theme-btn span { display: flex; flex-direction: column; gap: 2px; }
.theme-btn small { font-weight: 400; font-size: 13.5px; color: var(--ink-soft); }
.theme-btn:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.theme-btn.is-active { border-color: var(--rubric); box-shadow: 0 0 0 3px var(--rubric-tint); }
.theme-btn.is-active::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--rubric); }
.theme-preview { margin: 0; }
.theme-preview .shot img { transition: opacity .25s var(--ease), transform .3s var(--ease); }
@media (max-width: 920px) { .themes-sec { grid-template-columns: 1fr; } }

/* ---------- Get it ---------- */
.get {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(201,164,74,.16), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(155,44,52,.25), transparent 60%),
    var(--night);
  color: var(--on-night);
}
.get-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 110px) var(--gutter); }
.get .section-head p:not(.eyebrow), .get-lede { color: var(--on-night-soft); font-size: 18px; }
.os-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.os-list li {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; column-gap: 12px; align-items: start;
  padding: 22px 22px 20px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-night); min-height: 150px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.os-list li:hover { background: rgba(255,255,255,.07); border-color: rgba(238,240,245,.22); }
.os-name { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; grid-column: 1; }
.os-for { color: var(--on-night-soft); font-size: 14.5px; grid-column: 1; margin-top: 4px; }
.os-tag { grid-column: 2; grid-row: 1; justify-self: end; color: var(--night); background: var(--gold); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.os-list .btn, .soon { grid-column: 1 / -1; grid-row: 3; align-self: end; justify-self: start; margin-top: 18px; }
.os-list li.is-mine { background: rgba(201,164,74,.1); border-color: rgba(201,164,74,.5); }
.os-soon .os-name, .os-soon .os-for { opacity: .5; }
.soon { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-soft); padding: 8px 0; }
.get-src { margin: 32px 0 0; color: var(--on-night-soft); font-size: 16px; max-width: 48em; }
.get-src a { color: var(--gold); }
@media (max-width: 900px) { .os-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .os-list { grid-template-columns: 1fr; } .os-list li { min-height: 0; } }

/* ---------- Resources ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.resource-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.resource-card h3 { margin: 0; font-family: var(--font-display); font-size: 28px; }
.resource-card h3 a { color: inherit; text-decoration: none; }
.resource-card h3 a:hover { color: var(--rubric); text-decoration: underline; }
.resource-card > p:not(.eyebrow) { color: var(--ink-soft); margin: 14px 0 24px; }
.resource-card .btn { margin-top: auto; }
@media (max-width: 600px) { .resource-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--rubric), var(--rubric)) center / 10px 1.5px no-repeat, linear-gradient(var(--rubric), var(--rubric)) center / 1.5px 10px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); max-width: 40em; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--paper-2); text-align: center; }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 48px; }
.foot-crosses { width: 72px; height: auto; }
.foot-crosses path { fill: none; stroke: var(--rubric); stroke-width: 3; stroke-linecap: square; }
.foot-brand { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin: 14px 0 12px; }
.foot-verse { margin: 0 auto 6px; max-width: 32em; font-family: var(--font-scripture); font-size: 17px; }
.foot-verse cite { display: block; margin-top: 6px; font-family: var(--font-ui); font-style: normal; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--rubric); font-weight: 600; }
.foot-line { color: var(--ink-mute); margin: 14px 0 22px; font-size: 15px; }
.foot-links { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 14.5px; font-weight: 500; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--rubric); }

/* ---------- ⌘K palette ---------- */
.palette-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(20, 18, 16, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px;
}
.palette-backdrop[hidden] { display: none; }
.palette {
  width: min(640px, 100%); background: var(--white); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: 16px; box-shadow: 0 30px 80px -10px rgba(0,0,0,.45); overflow: hidden;
}
.palette-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 18px; height: 18px; fill: none; stroke: var(--rubric); stroke-width: 2; stroke-linecap: round; flex: none; }
.palette-input input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 17px; color: inherit; }
.palette-input input:focus { outline: none; }
.palette-input input::placeholder { color: var(--ink-mute); }
.palette-results { list-style: none; margin: 0; padding: 8px; max-height: 46vh; overflow-y: auto; }
.palette-results li { padding: 0; }
.palette-results button {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 9px; cursor: pointer; padding: 10px 12px; font: inherit; font-size: 15.5px; color: var(--ink);
}
.palette-results button small { color: var(--ink-mute); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.palette-results button.is-active { background: var(--rubric-tint); color: var(--rubric-deep); }
.palette-results button.is-active small { color: var(--rubric); }
.palette-empty { padding: 16px 14px; color: var(--ink-soft); }
.palette-foot { margin: 0; padding: 10px 18px 12px; border-top: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.palette-foot kbd { font-size: 11px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1120px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(20, 18, 16, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: var(--white); border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.25); }
.lightbox figcaption { color: var(--on-night); margin-top: 12px; text-align: center; font-size: 14px; }
.lightbox-close {
  position: absolute; top: -46px; right: 0; cursor: pointer;
  background: var(--white); color: var(--ink); border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 14.5px; font-weight: 500;
}
.lightbox[open] { overflow: visible; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .panel:not([hidden]) { animation: none; }
  * { transition: none !important; }
}
@media print {
  .nav, .hero-cta, .try-k, .tabs, .thumbs, .theme-btns, .palette-backdrop { display: none !important; }
  .panel[hidden] { display: grid; }
  .get { background: #fff; color: #000; }
}
