/* Shared styles for every page except the homepage (which keeps its own inline styles). */
:root {
  --ink: #313036;
  --ink-deep: #242328;
  --ink-deeper: #1c1b20;
  --gold: #d39b3b;
  --gold-hi: #f0d08c;
  --gold-lo: #a8742a;
  --gold-text: #7a5a22;
  --tan: #d6bf98;
  --cream: #f4ead8;
  --paper: #ffffff;
  --parchment: #f6f1e8;
  --text: #2b2a2f;
  --body: #3d3c42;
  --muted: #6f6e7e;
  --line: #e6dfd2;
  --hair: rgba(214, 191, 152, 0.18);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --hebrew: "Frank Ruhl Libre", "Times New Roman", serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--serif); font-size: 19px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-lo); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sc { font-variant-caps: small-caps; letter-spacing: .04em; }
.gold-text { background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: .01em; color: var(--text); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(36, 35, 40, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav .logo img { height: 40px; width: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav ul a { font-family: var(--display); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--tan); text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--gold-hi); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 15px 24px; border-radius: 3px; border: 0; cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-quiet { color: var(--gold-hi); background: rgba(211, 155, 59, .1); border: 1px solid rgba(211, 155, 59, .55); }
.btn-quiet:hover { background: rgba(211, 155, 59, .18); border-color: var(--gold); color: #f6dfa8; }
.btn-line { color: var(--gold-text); background: transparent; border: 1px solid rgba(168, 116, 42, .5); }
.btn-line:hover { border-color: var(--gold-lo); color: var(--gold-lo); background: rgba(211, 155, 59, .06); }

/* page band */
.band { background: var(--ink); color: var(--cream); padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(211, 155, 59, .09), transparent); pointer-events: none; }
.band .wrap { position: relative; z-index: 1; }
.crumbs { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(214, 191, 152, .75); margin: 0 0 18px; }
.crumbs a { color: var(--tan); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: .6; }
.band h1 { color: var(--cream); font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; margin: 0; max-width: 22ch; }
.band .sub { margin: 16px 0 0; color: rgba(244, 234, 216, .72); font-size: 1.15rem; max-width: 60ch; }

/* article */
.article { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 88px); }
.article h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.25; margin: 2.2em 0 .6em; }
.article p, .article li { color: var(--body); }
.article p { margin: 0 0 1.1em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin: .3em 0; }
.answer { background: var(--parchment); border-left: 3px solid var(--gold); padding: 20px 24px; margin: 0 0 1.6em; font-size: 1.15rem; color: var(--text); }
.answer p { color: var(--text); margin: 0; }
.answer p + p { margin-top: .7em; }
blockquote.scripture { margin: 1.2em 0 1.4em; padding: 4px 0 4px 22px; border-left: 2px solid rgba(211, 155, 59, .55); font-size: 1.2rem; font-style: italic; color: var(--text); }
blockquote.scripture p { margin: 0; color: var(--text); }
blockquote.scripture cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.name { font-variant-caps: normal; font-weight: 600; color: var(--gold-text); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; }
table.data { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.data td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr.us td { background: var(--parchment); }
.note { font-size: .95rem; color: var(--muted); }
.related { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related a { font-size: 1.12rem; }
.copy-box { margin-top: 2.4em; padding: 22px 24px; border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.copy-box p { margin: 0; color: var(--body); }

/* FAQ */
.faq h2 { font-size: 1.25rem; margin-top: 1.8em; }

/* where to buy */
.options { display: grid; gap: 16px; margin: 1.4em 0 1.8em; }
.option { border: 1px solid var(--line); padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.option h2 { margin: 0 0 4px; font-size: 1.15rem; }
.option p { margin: 0; color: var(--muted); font-size: 1rem; }

.btn-gold { color: #201f23; background: linear-gradient(180deg, #ebc074 0%, var(--gold) 52%, #bb8530 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 28px -14px rgba(211, 155, 59, .7); }
.btn-gold:hover { color: #201f23; filter: brightness(1.05); }
.option.featured {
  position: relative; overflow: hidden; isolation: isolate; padding: 26px 28px;
  /* gold gradient border drawn by a second background layer */
  border: 1px solid transparent;
  background: linear-gradient(180deg, #fffaf0 0%, #fff 70%) padding-box,
              linear-gradient(135deg, #f0d08c, #d39b3b 35%, #a8742a 55%, #f0d08c 80%, #d39b3b) border-box;
  box-shadow: 0 22px 44px -30px rgba(168, 116, 42, .55);
  animation: feat-glow 3.6s ease-in-out infinite;
}
/* a light sweep across the card when the page opens, and again on hover */
.option.featured::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .8) 48%, rgba(255, 246, 222, .6) 52%, transparent 70%);
  transform: translateX(-130%);
  animation: feat-sweep 1.5s .5s cubic-bezier(.4, 0, .2, 1) forwards;
}
.option.featured:hover::after { animation: feat-sweep-again 1.2s cubic-bezier(.4, 0, .2, 1); }
.option.featured:hover { box-shadow: 0 26px 50px -26px rgba(168, 116, 42, .7), 0 0 0 4px rgba(211, 155, 59, .14); }
@keyframes feat-glow {
  0%, 100% { box-shadow: 0 22px 44px -30px rgba(168, 116, 42, .55), 0 0 0 0 rgba(211, 155, 59, 0); }
  50% { box-shadow: 0 24px 48px -26px rgba(168, 116, 42, .65), 0 0 0 6px rgba(211, 155, 59, .12); }
}
@keyframes feat-sweep { to { transform: translateX(130%); } }
@keyframes feat-sweep-again { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.option.featured h2 { font-size: 1.35rem; margin: 10px 0 6px; }
.option.featured p { color: var(--body); max-width: 34ch; }
.badge {
  display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: #201f23; padding: 5px 10px; border-radius: 2px;
  background: linear-gradient(90deg, #d39b3b 0%, #d39b3b 35%, #f6dfa8 50%, #d39b3b 65%, #d39b3b 100%);
  background-size: 250% 100%; background-position: 100% 0;
  animation: badge-shine 4s ease-in-out 1s infinite;
}
@keyframes badge-shine { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .option.featured, .option.featured::after, .option.featured:hover::after, .badge { animation: none; }
  .option.featured::after { display: none; }
}
.feat-buy { text-align: right; }
.feat-buy p { max-width: none; }
.price { margin: 0; font-family: var(--display); color: var(--text); line-height: 1; white-space: nowrap; }
.price .cur { font-size: 1.3rem; vertical-align: .9em; margin-right: 2px; }
.price .amt { font-size: 3rem; font-weight: 600; }
.price .cents { font-size: 1.3rem; vertical-align: .9em; }
.price-note { margin: 8px 0 14px !important; font-size: .9rem; color: var(--muted) !important; }
.p-price { font-family: var(--display); font-size: 1.15rem; color: var(--body); }
h2.also { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 2em 0 .2em; }

/* reader */
.reader-intro { max-width: 760px; }
.testament { margin: 2.4em 0 1em; font-size: 1.2rem; }
.book-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 18px; }
.book-grid a { display: block; padding: 6px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.book-grid a:hover { color: var(--gold-text); }
.chapter-grid { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.chapter-grid a { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums; }
.chapter-grid a:hover { border-color: var(--gold); color: var(--gold-text); background: var(--parchment); }
.chapter-nav { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 1.6em; flex-wrap: wrap; }
.chapter-nav.bottom { margin: 2.4em 0 0; padding-top: 1.4em; border-top: 1px solid var(--line); }
.chapter-nav a { font-family: var(--display); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.bible { font-size: 1.18rem; line-height: 1.75; }
.bible p { margin: 0 0 .55em; color: var(--text); }
.bible p.q1 { padding-left: 1.4em; text-indent: -0.4em; margin-bottom: .25em; }
.bible p.d { font-style: italic; color: var(--muted); margin-bottom: 1em; }
.bible sup.v { font-family: var(--display); font-size: .62em; color: var(--gold-lo); margin-right: 4px; vertical-align: .55em; line-height: 0; }
.bible b.dn { font-weight: 600; color: var(--gold-text); }
.bible .hl { background: rgba(211, 155, 59, .09); box-shadow: 0 0 0 3px rgba(211, 155, 59, .09); border-radius: 2px; }
.bible a.xr { font-size: .78em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.bible a.xr:hover { color: var(--gold-text); text-decoration: underline; }
.bible a.fn { text-decoration: none; color: var(--gold); font-size: .8em; }
.bible :target { background: rgba(211, 155, 59, .22); }
.footnotes { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); font-size: 1rem; color: var(--body); }
.footnotes p { margin: 0 0 .8em; }
.reader-key { font-size: .98rem; color: var(--muted); margin: 0 0 1.4em; }

/* footer */
.site-footer { background: var(--ink-deeper); color: rgba(214, 191, 152, .7); padding: 50px 0 60px; font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot img { height: 38px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.foot-links a { color: rgba(214, 191, 152, .8); text-decoration: none; font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.foot-links a:hover { color: var(--gold-hi); }
.foot-links svg { width: 18px; height: 18px; vertical-align: -3px; }
.foot-verse { margin: 32px 0 0; text-align: center; font-style: italic; font-size: 1.08rem; color: rgba(244, 234, 216, .8); }
.foot-verse .ao { font-style: normal; font-family: var(--display); color: var(--gold); margin: 0 10px; }
.foot-verse .r { font-style: normal; font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 191, 152, .6); margin-left: 8px; }
.foot-fine { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(214, 191, 152, .12); display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; font-size: 14px; color: rgba(214, 191, 152, .5); }
.foot-fine em { color: rgba(214, 191, 152, .75); }

@media (max-width: 960px) {
  .nav ul { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .nav .logo img { height: 34px; }
  .bible { font-size: 1.1rem; }
  .copy-box, .option { flex-direction: column; align-items: flex-start; }
  .feat-buy { text-align: left; }
}
