/* ==========================================================================
   Gary N. Matney  |  What Bible School Never Taught Me
   Theme derived from the supplied book cover artwork:
   antique gold, deep ink-green, warm bone paper, walnut, morning light.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   ----------------------------------------------------------------------- */
:root {
  /* Colour — sampled from the cover artwork */
  --ink:        #111A14;
  --ink-2:      #18241D;
  --ink-3:      #223228;
  --ink-4:      #2E4236;

  --gold:       #B5822F;
  --gold-lt:    #D9AE63;
  --gold-pale:  #E8D3A4;
  --gold-deep:  #7E5A1C;

  --cream:      #F7F2E7;
  --cream-2:    #FBF7EE;
  --paper:      #FFFDF8;
  --wood:       #3E2A1C;

  --text:       #26221C;
  --text-soft:  #4C453C;
  --muted:      #7A7167;

  --line:       rgba(17, 26, 20, .12);
  --line-soft:  rgba(17, 26, 20, .07);
  --line-gold:  rgba(181, 130, 47, .32);
  --line-ink:   rgba(232, 211, 164, .16);

  /* Type */
  --f-display: "Playfair Display", "Book Antiqua", Georgia, serif;
  --f-body:    "Lora", Georgia, "Times New Roman", serif;
  --f-ui:      "Jost", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-hand:    "Caveat", "Segoe Script", cursive;

  /* Rhythm */
  --shell:     1220px;
  --shell-nar: 880px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --sec-y:     clamp(4.5rem, 9vw, 8.5rem);
  --radius:    2px;

  --shadow-sm: 0 2px 10px rgba(17, 26, 20, .06);
  --shadow-md: 0 18px 40px -22px rgba(17, 26, 20, .38);
  --shadow-lg: 0 40px 80px -30px rgba(17, 26, 20, .55);
  --shadow-bk: 22px 30px 60px -18px rgba(9, 14, 11, .62);

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --header-h:  84px;
}

/* --------------------------------------------------------------------------
   2. Reset
   ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .22vw, 1.0625rem);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Warm paper grain across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--gold); color: var(--cream-2); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  padding: .75rem 1.5rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-ui);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   ----------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}

.h-xl { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem); }
.h-lg { font-size: clamp(2.05rem, 1.45rem + 2.7vw, 3.5rem); }
.h-md { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem); }
.h-sm { font-size: clamp(1.2rem, 1.08rem + .6vw, 1.55rem); }

p + p { margin-top: 1.15em; }

em { font-style: italic; }

.lede {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem);
  line-height: 1.72;
  color: var(--text-soft);
}

.prose p { color: var(--text-soft); }
.prose p + p { margin-top: 1.25em; }

/* Gold tracked label, echoing FAITH | WISDOM | PURPOSE on the cover */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7em;
  flex-wrap: wrap;
  font-family: var(--f-ui);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}
.eyebrow--gold { color: var(--gold-lt); }
.eyebrow--center { justify-content: center; }
.eyebrow .sep { color: var(--line-gold); font-weight: 300; }
.eyebrow--gold .sep { color: rgba(232, 211, 164, .4); }
.eyebrow i { font-style: normal; opacity: .55; }

/* Short gold rule, echoing the rule beneath the cover subtitle */
.rule {
  display: block;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-lt));
  margin: 1.6rem 0;
  border: 0;
}
.rule--center { margin-left: auto; margin-right: auto; }
.rule--light { background: linear-gradient(90deg, var(--gold), var(--gold-pale)); }

/* Handwritten accent — the "Noteworthy" vibe requested in the brief */
.hand {
  font-family: var(--f-hand);
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold-deep);
}
.hand--light { color: var(--gold-lt); }

.signature {
  font-family: var(--f-hand);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.signature--light { color: var(--cream); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   ----------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.shell--narrow { max-width: var(--shell-nar); }

.section {
  position: relative;
  padding-block: var(--sec-y);
  z-index: 1;
}
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.section--paper { background: var(--cream); }
.section--paper-2 { background: var(--cream-2); }

.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--cream-2); }
.section--ink .prose p,
.section--ink .lede { color: rgba(247, 242, 231, .76); }
.section--ink .eyebrow { color: var(--gold-lt); }
.section--ink .eyebrow .sep { color: rgba(232, 211, 164, .4); }

.section__head { max-width: 46rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.grid--split { grid-template-columns: 1fr; align-items: center; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1fr 1fr; }
  .grid--split-wide { grid-template-columns: 1.1fr .9fr; }
  .grid--split-narrow { grid-template-columns: .9fr 1.1fr; }
}

.stack > * + * { margin-top: 1.4rem; }

/* --------------------------------------------------------------------------
   5. Buttons & links
   ----------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1rem 2rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--f-ui);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease),
              transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: translateY(0); }

.btn--ghost { --btn-fg: var(--ink); --btn-bd: rgba(17, 26, 20, .3); }
.btn--ghost:hover { color: var(--cream-2); border-color: var(--ink); }

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: #FFFDF6;
  --btn-bd: var(--gold);
  box-shadow: 0 10px 26px -14px rgba(126, 90, 28, .85);
}
.btn--gold::after { background: var(--gold-deep); }
.btn--gold:hover { color: #FFFDF6; border-color: var(--gold-deep); }

.btn--light { --btn-fg: var(--cream); --btn-bd: rgba(232, 211, 164, .42); }
.btn--light::after { background: var(--cream); }
.btn--light:hover { color: var(--ink); border-color: var(--cream); }

.btn--sm { padding: .78rem 1.35rem; font-size: .7rem; letter-spacing: .16em; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem 1rem; align-items: center; }

/* Text link with an animated gold underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--f-ui);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: .35rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color .3s var(--ease), background-size .45s var(--ease);
}
.link:hover { color: var(--ink); background-size: 0% 1px; }
.link svg { width: 1.05em; height: 1.05em; fill: currentColor; transition: transform .35s var(--ease); }
.link:hover svg { transform: translateX(5px); }
.link--light { color: var(--gold-lt); }
.link--light:hover { color: var(--cream); }

/* --------------------------------------------------------------------------
   6. Site header
   ----------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(247, 242, 231, .9);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease), transform .45s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Transparent over a dark hero until the page scrolls */
.site-header--over {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header--over .brand__name,
.site-header--over .nav__link { color: var(--cream-2); }
.site-header--over .brand__tag { color: rgba(232, 211, 164, .72); }
.site-header--over .burger span { background: var(--cream-2); }

.site-header.is-stuck {
  background: rgba(247, 242, 231, .94);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -24px rgba(17, 26, 20, .6);
}
.site-header.is-stuck .brand__name,
.site-header.is-stuck .nav__link { color: var(--ink); }
.site-header.is-stuck .brand__tag { color: var(--gold-deep); }
.site-header.is-stuck .burger span { background: var(--ink); }

.site-header.is-hidden { transform: translateY(-104%); }

.brand { display: block; line-height: 1; }
.brand__name {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  transition: color .4s var(--ease);
}
.brand__rule {
  display: block;
  width: 26px;
  height: 1px;
  margin: .45rem 0 .38rem;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.brand:hover .brand__rule { width: 44px; }
.brand__tag {
  display: flex;
  gap: .5em;
  font-family: var(--f-ui);
  font-size: .56rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  transition: color .4s var(--ease);
}
.brand__tag i { opacity: .5; }

.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: .4rem 0;
  font-family: var(--f-ui);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left center; }
.nav__link.is-active { color: var(--gold-deep); }
.site-header--over .nav__link.is-active { color: var(--gold-lt); }

.site-header__actions { display: flex; align-items: center; gap: 1rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background-color .4s var(--ease);
}
.burger[aria-expanded="true"] span { background: var(--cream-2); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.75px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 520px) {
  .site-header__actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   7. Mobile navigation
   ----------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
  overflow-y: auto;
}
.mobile-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 82% 12%, rgba(181, 130, 47, .2), transparent 70%),
    url("../img/scene-desk.jpg") center/cover no-repeat;
  opacity: .12;
  pointer-events: none;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 3rem;
}
.mobile-nav__list { display: flex; flex-direction: column; gap: .15rem; }
.mobile-nav__list li {
  opacity: 0;
  transform: translateY(14px);
}
.mobile-nav.is-open .mobile-nav__list li {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease) calc(var(--i) * 65ms),
              transform .5s var(--ease) calc(var(--i) * 65ms);
}
.mobile-nav__link {
  display: inline-block;
  padding: .5rem 0;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.3rem + 2.6vw, 2.6rem);
  font-weight: 500;
  color: var(--cream-2);
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.mobile-nav__link:hover { color: var(--gold-lt); transform: translateX(8px); }
.mobile-nav__link.is-active { color: var(--gold-lt); }
.mobile-nav__cta { align-self: flex-start; }
.mobile-nav__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-ink);
  font-family: var(--f-ui);
  font-size: .78rem;
  letter-spacing: .1em;
  color: rgba(247, 242, 231, .66);
}
.mobile-nav__meta a { transition: color .3s var(--ease); }
.mobile-nav__meta a:hover { color: var(--gold-lt); }

/* --------------------------------------------------------------------------
   8. Hero
   ----------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem)) clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/scene-hero.jpg") center 58% / cover no-repeat;
  opacity: .36;
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.4%, -1.6%, 0); }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(62% 58% at 22% 34%, rgba(17, 26, 20, .58), transparent 72%),
    radial-gradient(60% 50% at 88% 6%, rgba(181, 130, 47, .3), transparent 72%),
    linear-gradient(180deg, rgba(17, 26, 20, .9) 0%, rgba(17, 26, 20, .62) 42%, rgba(17, 26, 20, .94) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.75rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; }
}

.hero__title {
  font-family: var(--f-display);
  line-height: .98;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero__title .t1 {
  display: block;
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream-2);
  letter-spacing: -.01em;
}
.hero__title .t2 {
  display: block;
  font-size: clamp(3.2rem, 1.9rem + 5.6vw, 6.4rem);
  font-weight: 900;
  color: var(--gold-lt);
  background: linear-gradient(168deg, #F0DCAE 4%, var(--gold-lt) 32%, var(--gold) 62%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: -.04em;
}
.hero__title .t3 {
  display: block;
  font-size: clamp(2.9rem, 1.8rem + 5vw, 5.8rem);
  font-weight: 900;
  color: var(--cream-2);
  margin-top: -.06em;
}
.hero__title .t4 {
  display: block;
  font-family: var(--f-ui);
  font-size: clamp(.82rem, .68rem + .6vw, 1.22rem);
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 1.05rem;
}
.hero__sub {
  max-width: 34rem;
  font-size: clamp(1.02rem, .96rem + .34vw, 1.22rem);
  line-height: 1.68;
  color: rgba(247, 242, 231, .8);
}
.hero__byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.1rem;
  font-family: var(--f-ui);
  font-size: .76rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(232, 211, 164, .85);
}
.hero__byline::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.hero .btn-row { margin-top: 2.4rem; }

.hero__scroll {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--f-ui);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(247, 242, 231, .55);
  text-align: center;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  margin: .7rem auto 0;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.35); opacity: .45; }
  50%      { transform: scaleY(1); opacity: 1; }
}
@media (min-width: 980px) { .hero__scroll { display: block; } }

/* --------------------------------------------------------------------------
   9. Book figure (3D-ish cover presentation)
   ----------------------------------------------------------------------- */
.book {
  position: relative;
  width: min(100%, 400px);
  margin-inline: auto;
  perspective: 1600px;
}
.book--lg { width: min(100%, 460px); }
.book__inner {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-13deg) rotateX(3deg);
  transition: transform .9s var(--ease);
}
.book:hover .book__inner { transform: rotateY(-6deg) rotateX(1deg) translateY(-8px); }
.book__img {
  width: 100%;
  border-radius: 2px 5px 5px 2px;
  box-shadow: var(--shadow-bk);
}
/* Page edges along the right of the cover */
.book__inner::after {
  content: "";
  position: absolute;
  top: 1.2%;
  right: -9px;
  width: 10px;
  height: 97.6%;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #EFE7D6 0 1px, #D3C8B2 1px 2px);
  transform: rotateY(24deg) translateZ(-2px);
  transform-origin: left center;
  box-shadow: 3px 3px 12px rgba(9, 14, 11, .35);
}
/* Spine shadow along the left */
.book__inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 15px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, rgba(9, 14, 11, .42), rgba(9, 14, 11, 0));
  z-index: 2;
  pointer-events: none;
}
.book__glow {
  position: absolute;
  inset: -16% -22% -26% -22%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(181, 130, 47, .3), transparent 68%);
  filter: blur(6px);
}
.book__badge {
  position: absolute;
  right: -14px;
  bottom: 30px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: .5rem;
  border-radius: 50%;
  background: var(--gold);
  color: #FFFDF6;
  font-family: var(--f-ui);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.7;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 16px 34px -16px rgba(9, 14, 11, .8);
}
@media (max-width: 560px) {
  .book__badge { width: 86px; height: 86px; font-size: .5rem; right: -6px; }
}

/* --------------------------------------------------------------------------
   10. Framed photograph
   ----------------------------------------------------------------------- */
.frame { position: relative; }
.frame__media { position: relative; display: block; }
.frame__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
  transition: inset .6s var(--ease);
}
.frame:hover .frame__media::before { inset: 12px -12px -12px 12px; }
.frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.frame--wide img { aspect-ratio: 16 / 11; }
.frame--square img { aspect-ratio: 1 / 1; }
.frame--ink .frame__media::before { border-color: rgba(232, 211, 164, .3); }
.frame--flip .frame__media::before { inset: 18px 18px -18px -18px; }
.frame--flip:hover .frame__media::before { inset: 12px 12px -12px -12px; }

.frame__caption {
  margin-top: 2.6rem;
  font-family: var(--f-hand);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--gold-deep);
}

/* --------------------------------------------------------------------------
   11. Editorial blocks
   ----------------------------------------------------------------------- */
.statement {
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 1.1rem + 1.7vw, 2.3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.38;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.section--ink .statement { color: var(--cream-2); }

.pullquote {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 2px solid var(--gold);
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  left: clamp(.5rem, 2vw, 1rem);
  top: -.38em;
  font-family: var(--f-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--line-gold);
  pointer-events: none;
}

.dropcap::first-letter {
  float: left;
  font-family: var(--f-display);
  font-size: 4.1em;
  font-weight: 700;
  line-height: .82;
  padding: .06em .12em 0 0;
  color: var(--gold);
}

/* Faith | Wisdom | Purpose band */
.triad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--line-gold);
}
.triad__item {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.section--ink .triad__item { color: var(--cream-2); }
.triad__dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* --------------------------------------------------------------------------
   12. Cards
   ----------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-lt));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.card:hover::before { transform: scaleX(1); }
.card__num {
  font-family: var(--f-ui);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--gold-deep);
}
.card__title { font-size: 1.22rem; font-weight: 600; }
.card p { color: var(--text-soft); font-size: .97rem; line-height: 1.72; }

.card--ink {
  background: var(--ink-2);
  border-color: var(--line-ink);
  box-shadow: none;
}
.card--ink .card__title { color: var(--cream-2); }
.card--ink p { color: rgba(247, 242, 231, .7); }
.card--ink:hover { border-color: rgba(232, 211, 164, .38); }

/* Detail list (book specification) */
.specs { border-top: 1px solid var(--line); }
.specs__row {
  display: grid;
  grid-template-columns: minmax(96px, 26%) 1fr;
  gap: .3rem 1.75rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.specs__key {
  font-family: var(--f-ui);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .18rem;
}
.specs__val { font-size: 1rem; color: var(--text); overflow-wrap: anywhere; }
.section--ink .specs, .section--ink .specs__row { border-color: var(--line-ink); }
.section--ink .specs__key { color: rgba(232, 211, 164, .7); }
.section--ink .specs__val { color: rgba(247, 242, 231, .88); }

/* Retailer tiles */
.retailers { display: grid; gap: .85rem; grid-template-columns: 1fr; }
.retailer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .04);
  font-family: var(--f-ui);
  letter-spacing: .06em;
  color: var(--cream-2);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease);
}
a.retailer:hover { border-color: var(--gold); background: rgba(181, 130, 47, .12); transform: translateY(-3px); }
.retailer__name { font-size: .95rem; }
.retailer__meta {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.retailer--soon { opacity: .58; cursor: default; }
.retailer--soon .retailer__meta { color: rgba(247, 242, 231, .5); }

/* Empty / placeholder panel */
.panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px dashed var(--line-gold);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}
.panel--ink { background: rgba(255, 253, 248, .03); border-color: rgba(232, 211, 164, .28); }
.panel__icon {
  width: 46px; height: 46px;
  margin: 0 auto 1.4rem;
  fill: var(--gold);
  opacity: .85;
}
.panel h3 { margin-bottom: .8rem; }
.panel p { color: var(--text-soft); max-width: 34rem; margin-inline: auto; }
.panel--ink p { color: rgba(247, 242, 231, .72); }
.panel .btn-row { justify-content: center; margin-top: 1.9rem; }

/* --------------------------------------------------------------------------
   13. Page hero (interior pages)
   ----------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 7vw, 6rem)) clamp(3.5rem, 7vw, 6rem);
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 62%;
  opacity: .28;
  transform: scale(1.05);
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 18% 40%, rgba(17, 26, 20, .6), transparent 76%),
    radial-gradient(60% 50% at 92% 4%, rgba(181, 130, 47, .26), transparent 70%),
    linear-gradient(180deg, rgba(17, 26, 20, .92), rgba(17, 26, 20, .74));
}
.page-hero h1 { color: var(--cream-2); max-width: 20ch; }
.page-hero__lede {
  max-width: 44rem;
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, .96rem + .32vw, 1.2rem);
  color: rgba(247, 242, 231, .78);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: 2.2rem;
  font-family: var(--f-ui);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247, 242, 231, .55);
}
.crumbs a { transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--gold-lt); }
.crumbs span[aria-hidden] { color: var(--line-gold); }

/* --------------------------------------------------------------------------
   14. Journal / blog
   ----------------------------------------------------------------------- */
.posts { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.post-card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.post-card__date {
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.post-card__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); }
.post-card p { color: var(--text-soft); font-size: .97rem; }
.post-card .link { margin-top: auto; align-self: flex-start; padding-top: .5rem; }

.article { max-width: 44rem; }
.article h2 { margin-top: 2.5rem; margin-bottom: .8rem; }
.article p { color: var(--text-soft); }
.article p + p { margin-top: 1.25em; }

/* --------------------------------------------------------------------------
   15. Forms
   ----------------------------------------------------------------------- */
.form { display: grid; gap: 1.35rem; }
.form p, .form .field { margin-top: 0; }
.form__row { display: grid; gap: 1.35rem; }
@media (min-width: 680px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: .5rem; }
.field__label {
  font-family: var(--f-ui);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__label .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(122, 113, 103, .72); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 130, 47, .14);
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #A6432B; box-shadow: 0 0 0 3px rgba(166, 67, 43, .1); }
.field__error {
  font-family: var(--f-ui);
  font-size: .78rem;
  letter-spacing: .02em;
  color: #A6432B;
}
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: .88rem; color: var(--muted); }

.alert {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: .97rem;
  line-height: 1.65;
}
.alert svg { width: 22px; height: 22px; flex: none; margin-top: .2rem; }
.alert--ok { background: rgba(70, 104, 68, .09); border-color: rgba(70, 104, 68, .35); color: #2E4A2C; }
.alert--ok svg { fill: #46683F; }
.alert--warn { background: rgba(166, 67, 43, .07); border-color: rgba(166, 67, 43, .3); color: #7E2F1C; }
.alert--warn svg { fill: #A6432B; }

/* --------------------------------------------------------------------------
   16. Contact details
   ----------------------------------------------------------------------- */
.contact-list { display: grid; gap: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1.1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.contact-item__icon svg { width: 18px; height: 18px; fill: var(--gold-deep); transition: fill .4s var(--ease); }
.contact-item:hover .contact-item__icon { background: var(--gold); border-color: var(--gold); }
.contact-item:hover .contact-item__icon svg { fill: #FFFDF6; }
.contact-item__label {
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.contact-item__value { font-size: 1.04rem; word-break: break-word; }
.contact-item__value a { transition: color .3s var(--ease); }
.contact-item__value a:hover { color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   17. CTA band
   ----------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  isolation: isolate;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/scene-hero.jpg") center 52% / cover no-repeat;
  opacity: .2;
}
.cta-band__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 20% 50%, rgba(181, 130, 47, .22), transparent 72%),
    linear-gradient(90deg, rgba(17, 26, 20, .95) 20%, rgba(17, 26, 20, .68) 100%);
}
.cta-band h2 { color: var(--cream-2); }
.cta-band p { color: rgba(247, 242, 231, .78); }
.cta-band .btn-row { margin-top: 2.2rem; }

/* --------------------------------------------------------------------------
   18. Footer
   ----------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: rgba(247, 242, 231, .72);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  font-size: .95rem;
}
.site-footer__top {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-ink);
}
@media (min-width: 760px) { .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr; } }

.site-footer__name {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  font-weight: 600;
  color: var(--cream-2);
  letter-spacing: .01em;
}
.site-footer__book { margin-top: .6rem; color: var(--gold-lt); font-size: 1.02rem; }
.site-footer__sub { margin-top: .7rem; max-width: 30rem; font-size: .92rem; line-height: 1.7; color: rgba(247, 242, 231, .58); }

.site-footer__heading {
  font-family: var(--f-ui);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.25rem;
}
.site-footer__links { display: grid; gap: .7rem; }
.site-footer__links a {
  display: inline-block;
  transition: color .3s var(--ease), transform .3s var(--ease);
  word-break: break-word;
}
.site-footer__links a:hover { color: var(--gold-lt); transform: translateX(4px); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-family: var(--f-ui);
  font-size: .76rem;
  letter-spacing: .08em;
  color: rgba(247, 242, 231, .5);
}
.site-footer__isbn { letter-spacing: .14em; }

/* --------------------------------------------------------------------------
   19. Back-to-top
   ----------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.9rem);
  bottom: clamp(1rem, 2.5vw, 1.9rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--ink);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease),
              visibility .4s var(--ease), background-color .4s var(--ease);
}
.to-top svg { width: 19px; height: 19px; fill: var(--gold-lt); transition: fill .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); border-color: var(--gold); }
.to-top:hover svg { fill: #FFFDF6; }

/* --------------------------------------------------------------------------
   20. Scroll reveal
   ----------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   21. Preferences & print
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__bg { animation: none; }
}

@media print {
  .site-header, .mobile-nav, .to-top, .hero__scroll, .btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .section--ink, .hero, .page-hero, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  .section--ink h1, .section--ink h2, .page-hero h1 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* --------------------------------------------------------------------------
   22. Sections with a photographic background
   ----------------------------------------------------------------------- */
.section.has-bg { overflow: hidden; isolation: isolate; }
.section__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: .26;
}
.section__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(64% 60% at 24% 42%, rgba(17, 26, 20, .58), transparent 74%),
    radial-gradient(58% 48% at 94% 4%, rgba(181, 130, 47, .22), transparent 72%),
    linear-gradient(180deg, rgba(17, 26, 20, .93), rgba(17, 26, 20, .78));
}

/* --------------------------------------------------------------------------
   23. Forms on a dark section
   ----------------------------------------------------------------------- */
.section--ink .field__label { color: rgba(232, 211, 164, .78); }
.section--ink .field input,
.section--ink .field select,
.section--ink .field textarea {
  background: rgba(255, 253, 248, .05);
  border-color: var(--line-ink);
  color: var(--cream-2);
}
.section--ink .field input::placeholder,
.section--ink .field textarea::placeholder { color: rgba(247, 242, 231, .45); }
.section--ink .field input:focus,
.section--ink .field select:focus,
.section--ink .field textarea:focus {
  border-color: var(--gold-lt);
  background: rgba(255, 253, 248, .08);
  box-shadow: 0 0 0 3px rgba(217, 174, 99, .16);
}
.section--ink .field.has-error input,
.section--ink .field.has-error textarea { border-color: #C96B4E; box-shadow: 0 0 0 3px rgba(201, 107, 78, .14); }
.section--ink .field__error { color: #E9A188; }
.section--ink .form__note { color: rgba(247, 242, 231, .6); }

.section--ink .alert--ok {
  background: rgba(122, 163, 116, .12);
  border-color: rgba(154, 191, 148, .4);
  color: #CFE3C9;
}
.section--ink .alert--ok svg { fill: #9ABF94; }
.section--ink .alert--warn {
  background: rgba(201, 107, 78, .12);
  border-color: rgba(201, 107, 78, .42);
  color: #F0C4B4;
}
.section--ink .alert--warn svg { fill: #C96B4E; }

.section--ink .link { color: var(--gold-lt); background-image: linear-gradient(var(--gold-lt), var(--gold-lt)); }
.section--ink .link:hover { color: var(--cream-2); }

.section--ink .panel { background: rgba(255, 253, 248, .04); border-color: rgba(232, 211, 164, .28); }
.section--ink .panel p { color: rgba(247, 242, 231, .74); }
.section--ink .panel h2, .section--ink .panel h3 { color: var(--cream-2); }
.section--ink .btn--ghost { --btn-fg: var(--cream); --btn-bd: rgba(232, 211, 164, .4); }
.section--ink .btn--ghost::after { background: var(--cream); }
.section--ink .btn--ghost:hover { color: var(--ink); border-color: var(--cream); }

.section--ink .frame__caption { color: var(--gold-lt); }

/* --------------------------------------------------------------------------
   24. Small-screen refinements
   ----------------------------------------------------------------------- */
@media (max-width: 980px) {
  /* Single-column layouts read better with wide images than tall ones */
  .frame img { aspect-ratio: 16 / 10; }
  .hero__art { order: -1; }
  .hero__grid { text-align: left; }
  .book, .book--lg { width: min(78%, 330px); }
  .book__inner { transform: rotateY(-8deg) rotateX(2deg); }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .frame::before { inset: 12px -12px -12px 12px; }
  .frame--flip::before { inset: 12px 12px -12px -12px; }
  .pullquote { padding-left: 1.25rem; }
  .pullquote::before { font-size: 3.4rem; left: .4rem; }
  .specs__row { grid-template-columns: 1fr; gap: .25rem; }
  .btn { width: 100%; }
  .btn--sm, .mobile-nav__cta { width: auto; }
  .btn-row { gap: .75rem; }
  .site-footer__bottom { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .triad { gap: .9rem 1.1rem; }
  .triad__item { font-size: 1.15rem; letter-spacing: .1em; }
}

@media (max-width: 420px) {
  .book, .book--lg { width: min(88%, 280px); }
  .book__badge { display: none; }
  .brand__tag { display: none; }
}

/* --------------------------------------------------------------------------
   22. Book trailer
   ----------------------------------------------------------------------- */
.trailer-section { overflow: hidden; }

.trailer {
  position: relative;
  max-width: 1000px;
  margin: clamp(2.5rem, 5vw, 3.75rem) auto 0;
  padding: clamp(.5rem, 1.2vw, .85rem);
  background: var(--ink);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-lg);
}

/* Gold corner brackets, echoing the cover's framing */
.trailer__corner {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 2px solid var(--gold);
  pointer-events: none;
  z-index: 3;
}
.trailer__corner--tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.trailer__corner--br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

.trailer__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.trailer__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Poster overlay with play button (JS only — native controls without JS) */
.trailer__play { display: none; }

.js-trailer .trailer__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: 100%;
  background:
    radial-gradient(ellipse at center, rgba(17, 26, 20, .15) 0%, rgba(17, 26, 20, .55) 70%, rgba(17, 26, 20, .78) 100%);
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}

.trailer__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 92px);
  height: clamp(64px, 9vw, 92px);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-lt), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.trailer__btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(232, 211, 164, .55);
  animation: trailerPulse 2.4s var(--ease) infinite;
}
.trailer__btn svg {
  width: 42%;
  height: 42%;
  margin-left: 6%;
  fill: var(--ink);
}

.trailer__label {
  font-family: var(--f-ui);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cream-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.trailer__label i { font-style: normal; opacity: .6; margin: 0 .25em; }

.trailer__play:hover .trailer__btn,
.trailer__play:focus-visible .trailer__btn {
  transform: scale(1.07);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.trailer__play:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: -6px; }

.trailer.is-playing .trailer__play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.trailer__note {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
}

@keyframes trailerPulse {
  0%   { transform: scale(.9);  opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 560px) {
  .trailer__corner { width: 30px; height: 30px; }
  .trailer__corner--tl { top: -7px; left: -7px; }
  .trailer__corner--br { bottom: -7px; right: -7px; }
  .trailer__label { font-size: .64rem; letter-spacing: .24em; }
}

@media print {
  .trailer-section { display: none; }
}
