/* ==========================================================================
   AND THE WORD BECAME FLESH — Contemporary Scholar Theme
   White-dominant, content-first, Gen-Z friendly. Inspired by
   clearlyreformed.org: minimal shadows, sharp grid, bold type.
   Three palettes — Gold (default), Blue, Green — toggleable.
   ========================================================================== */

/* ---------------------------------------------------------------- TOKENS - */
:root {
  /* Surfaces — white-first */
  --bg:            #ffffff;
  --bg-soft:       #fafaf7;
  --bg-mute:       #f4f2ec;
  --bg-dark:       #111111;        /* footer / contrasts */
  --bg-darker:     #0b0b0b;

  --line:          #e8e4d8;
  --line-strong:   #d8d2bf;
  --line-dark:     #1f1f1f;

  --text:          #111111;
  --text-soft:     #4a4a48;
  --text-muted:    #7d7872;
  --text-onDark:   #f5f3ec;
  --text-onDark-2: #b8b4aa;

  /* Accent palette — overridden per theme */
  --accent:        #a07a1f;        /* dark gold */
  --accent-2:      #c9a447;
  --accent-soft:   #f5edd6;
  --accent-ink:    #5a4413;
  --accent-onDark: #d8b659;

  /* Type */
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif:   "Source Serif 4", "Cormorant Garamond", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --container:    1280px;
  --container-md: 980px;
  --container-sm: 720px;

  /* Subtle shadow only when needed */
  --shadow-soft: 0 1px 2px rgba(20,20,20,.04);
  --shadow-card: 0 1px 0 rgba(20,20,20,.04);
}

/* ----- Palette: Blue ----- */
html[data-palette="blue"] {
  --accent:        #1e3a8a;
  --accent-2:      #2f55c8;
  --accent-soft:   #e9efff;
  --accent-ink:    #0f1f4a;
  --accent-onDark: #93b0f5;
}

/* ----- Palette: Green ----- */
html[data-palette="green"] {
  --accent:        #145a3a;
  --accent-2:      #2e8a5b;
  --accent-soft:   #e6f2ec;
  --accent-ink:    #0a3623;
  --accent-onDark: #6dc095;
}

/* ----------------------------------------------------------------- RESET - */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { padding: 0; margin: 0; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

.container    { max-width: var(--container);    margin: 0 auto; padding: 0 24px; }
.container-md { max-width: var(--container-md); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }

/* ----------------------------------------------------------- TYPOGRAPHY - */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.1;
  margin: 0 0 .4em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: -.005em; }

p { margin: 0 0 1em; }
em { font-family: var(--display); font-style: italic; color: var(--accent-ink); }
strong { font-weight: 600; color: var(--text); }
small { color: var(--text-muted); }
code {
  font-family: var(--mono); font-size: .85em;
  padding: 1px 6px; border-radius: 3px;
  background: var(--bg-mute); color: var(--accent-ink);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.section-title { color: var(--text); }
.section-sub { color: var(--text-soft); max-width: 60ch; font-size: 1.05rem; }

/* --------------------------------------------------- READING PROGRESS BAR */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; z-index: 200; pointer-events: none;
}
.reading-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  transition: width .12s linear;
}

/* ------------------------------------------------------------ TOP RIBBON - */
.top-ribbon {
  background: var(--bg-darker);
  color: var(--text-onDark);
  font-family: var(--sans);
}
.ribbon-row {
  display: flex; align-items: center; gap: 14px;
  height: 36px; font-size: .82rem;
}
.ribbon-tag {
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bg-darker); background: var(--accent-onDark);
  padding: 3px 9px; border-radius: 2px; font-size: .68rem;
}
.ribbon-text { flex: 1; opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ribbon-text em { color: var(--accent-onDark); font-style: italic; }
.ribbon-link { color: var(--accent-onDark); font-weight: 600; }
.ribbon-link:hover { color: #fff; }

/* ------------------------------------------------------------- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-mark svg circle { fill: var(--accent); stroke: none; }
.brand-mark svg path { stroke: var(--bg); }
.brand-mark svg text { fill: var(--bg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line-1 {
  font-family: var(--sans); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
.brand-line-2 {
  font-family: var(--display); font-size: 1.4rem;
  font-style: italic; color: var(--text);
  margin-top: 3px;
}

.primary-nav ul {
  list-style: none; display: flex; gap: 2px; align-items: center;
}
.primary-nav li { position: relative; }
.primary-nav a {
  display: inline-block;
  font-family: var(--sans); font-size: .92rem; font-weight: 500;
  color: var(--text);
  padding: 10px 14px; border-radius: 4px;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.primary-nav a small { color: var(--text-muted); margin-left: 2px; font-size: .7em; font-weight: 400; }
.primary-nav a:hover { color: var(--accent); background: var(--bg-soft); text-decoration: none; }

.has-mega .mega {
  position: absolute; top: 100%; left: 0;
  min-width: 460px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(20,20,20,.08);
  opacity: 0; transform: translateY(6px);
  pointer-events: none;
  transition: opacity .15s, transform .2s ease;
  margin-top: 6px;
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.mega-col h6 {
  margin: 0 0 .8em;
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.mega-col a {
  display: block;
  font-family: var(--sans); font-size: .92rem; font-weight: 500;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mega-col a:last-child { border-bottom: 0; }
.mega-col a:hover { color: var(--accent); padding-left: 4px; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 4px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  transition: color .15s, background-color .15s, border-color .15s;
}
.icon-btn:hover {
  color: var(--accent);
  background: var(--bg-soft);
  border-color: var(--line);
}

.menu-btn { display: none; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }

/* ----- Palette switcher (3 dots) ----- */
.palette-switcher {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: 6px;
  background: var(--bg);
}
.palette-switcher button {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform .15s, border-color .15s;
  position: relative;
}
.palette-switcher button.gold  { background: #a07a1f; }
.palette-switcher button.blue  { background: #1e3a8a; }
.palette-switcher button.green { background: #145a3a; }
.palette-switcher button:hover { transform: scale(1.1); }
.palette-switcher button.is-active { border-color: var(--text); }

/* ---------------------------------------------------------------- HERO --- */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grain { display: none; }
.hero-frame { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 70px;
  align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-title { margin-bottom: .35em; font-weight: 600; }
.hero-title .line-a { display: inline; color: var(--text); }
.hero-title .line-b {
  display: inline;
  color: var(--accent);
}
.hero-title .line-b em {
  font-style: italic;
  color: var(--accent);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: none;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-soft);
  max-width: 60ch;
  font-family: var(--sans);
  line-height: 1.6;
}

.hero-quote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 4px 4px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.45;
  box-shadow: none;
}
.hero-quote::before { display: none; }

.hero-actions {
  display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap;
}
.hero-meta {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-meta li {
  display: flex; flex-direction: column;
  font-family: var(--sans); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.hero-meta strong {
  font-family: var(--display);
  font-size: 2rem; line-height: 1;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}

/* ---------- Hero card → portrait card (real photo) ---------- */
.hero-card { position: relative; }
.hero-card-inner {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transform: none;
  box-shadow: var(--shadow-soft);
  padding: 0;
}
.hero-card-inner::before, .hero-card-inner::after { display: none; }

.portrait-photo {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; object-position: center 18%;
  display: block;
  filter: saturate(.92) contrast(1.02);
}
.hero-card-meta {
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.hero-card-meta .card-ribbon {
  display: inline-block;
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px; border-radius: 2px;
  box-shadow: none; margin-bottom: 10px;
}
.hero-card-meta .card-title {
  font-family: var(--display); font-size: 1.55rem;
  color: var(--text); font-weight: 600; margin: 0 0 .2em;
}
.hero-card-meta .card-sub {
  color: var(--text-soft); font-size: .94rem; margin: 0 0 14px;
  font-family: var(--sans);
}
.hero-card-meta .card-foot {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* ---------------------------------------------------------- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .005em;
  padding: 12px 20px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }

.btn-gold {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-gold:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-gold::after { display: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--accent); border-color: var(--accent); }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------------------------------------------------------- MARQUEE ---- */
.marquee {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee::before { display: none; }
.marquee-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 18px 0;
}
.marquee-label {
  font-family: var(--sans); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid var(--line-strong);
  padding-right: 22px;
}
/* Container clips overflow + edge-fade mask so text disappears before bar */
.marquee-track-wrap {
  position: relative;
  overflow: hidden;
  /* Soft edge fade so items "disappear" before the bar edge */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0,
    #000 48px,
    #000 calc(100% - 48px),
    transparent 100%);
          mask-image: linear-gradient(to right,
    transparent 0,
    #000 48px,
    #000 calc(100% - 48px),
    transparent 100%);
}
.marquee-track {
  display: flex; gap: 22px; align-items: center;
  font-family: var(--display); font-style: italic;
  font-size: 1.05rem; color: var(--text-soft);
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  width: max-content; /* allow free flow */
}
.marquee-track-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track i { color: var(--accent); font-style: normal; opacity: .8; }
.marquee-track a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color .15s;
  font-style: italic;
}
.marquee-track a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------- SECTIONS ---- */
.section { padding: 90px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .section-sub { margin: 0 auto; }

/* ---------------------------------------------------------- ABOUT ------ */
.section-about { background: var(--bg); border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}
.portrait-frame {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-soft);
}
.portrait-frame::before, .portrait-frame::after { display: none; }
.portrait-frame img {
  width: 100%; aspect-ratio: 5/6; object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: saturate(.95) contrast(1.02);
}
.portrait-medal {
  position: absolute; bottom: 12px; right: 12px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: .92rem; font-weight: 600;
  color: #fff; background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(20,20,20,.18);
}

.about-copy .section-sub {
  font-family: var(--display); font-style: italic;
  color: var(--accent); margin: 0 0 1.3em;
}
.creds {
  list-style: none; padding: 0; margin: 26px 0 0;
  border-top: 1px solid var(--line);
}
.creds li {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 20px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem; align-items: baseline;
}
.creds li span {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; color: var(--text-muted); text-transform: uppercase;
}
.creds li strong { color: var(--text); font-weight: 600; display: inline; }
.creds li .cred-loc {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 4px;
}

/* --------------------------------------------------- VERSE LOOKUP ---- */
.section-verse { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.verse-tool {
  max-width: 820px; margin: 0 auto;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}
.verse-tool::before { display: none; }
.verse-input {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 8px; align-items: center;
  padding: 6px;
  background: var(--bg-soft);
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: none;
}
.verse-icon { font-size: 1.2rem; color: var(--accent); padding: 0 8px 0 12px; }
.verse-input input[type="text"] {
  background: transparent; border: 0;
  font-family: var(--display); font-size: 1.1rem;
  color: var(--text);
  padding: 12px 6px;
  outline: none; min-width: 0;
}
.verse-input select {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: .85rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 3px;
  padding: 8px 10px;
}
.verse-quick {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: 14px; font-family: var(--sans); font-size: .82rem;
  color: var(--text-muted);
}
.verse-quick button {
  font-family: var(--sans); font-size: .8rem;
  color: var(--text); padding: 6px 12px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: none; transition: border-color .15s, color .15s;
}
.verse-quick button:hover { color: var(--accent); border-color: var(--accent); }

.verse-output {
  margin-top: 22px; min-height: 120px;
  padding: 22px 26px;
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 4px;
  border: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.05rem;
  line-height: 1.7; box-shadow: none;
}
.verse-output::before { display: none; }
.verse-output .verse-placeholder { color: var(--text-muted); font-style: italic; margin: 0; }
.verse-output .verse-ref {
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.verse-output p { color: var(--text); margin: 0; }
.verse-output sup {
  font-family: var(--sans); font-size: .65em; color: var(--accent);
  font-weight: 700; padding: 0 3px;
}
.verse-output .verse-error { color: #b22; font-style: italic; }

/* ------------------------------------------------------ FEATURED ---- */
.section-featured { background: var(--bg); border-bottom: 1px solid var(--line); }
.featured-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 72px; align-items: center;
}
.featured-meta .byline { color: var(--text-muted); font-size: .9rem; margin-bottom: 1em; font-family: var(--sans); }
.featured-meta .featured-excerpt { font-size: 1.1rem; color: var(--text-soft); font-family: var(--sans); }
.featured-tags { list-style: none; padding: 0; margin: 18px 0 28px; display: flex; gap: 6px; flex-wrap: wrap; }
.featured-tags li {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  color: var(--accent); padding: 4px 10px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid transparent;
}

.paper {
  background: var(--bg-soft);
  color: var(--text);
  padding: 44px 50px;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-family: var(--serif);
  font-size: 1.02rem; line-height: 1.8;
  position: relative; transform: none;
  background-image: none;
}
.paper::before { display: none; }
.paper-head {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
  margin-bottom: 22px;
}
.paper-head .rule { flex: 1; height: 1px; background: var(--line-strong); }
.paper-head .ref { color: var(--accent); }
.paper-body p { color: var(--text); }
.paper-body em { color: var(--accent-ink); }
.paper-body .dropcap::first-letter {
  font-family: var(--display); font-size: 4em;
  float: left; line-height: .85;
  padding: 6px 10px 0 0;
  color: var(--accent); font-style: italic; font-weight: 600;
}
.paper-body .footnote {
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 22px;
  font-size: .85rem; color: var(--text-muted); font-style: italic;
}

/* ------------------------------------------------------ ARTICLES ---- */
.section-articles { background: var(--bg); border-bottom: 1px solid var(--line); }
.filter-bar {
  display: grid; grid-template-columns: 320px 1fr; gap: 18px;
  align-items: center; margin-bottom: 36px;
}
.filter-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  color: var(--text-muted);
  box-shadow: none;
}
.filter-search:focus-within { border-color: var(--accent); }
.filter-search input {
  flex: 1; background: transparent; border: 0;
  color: var(--text);
  font-family: var(--sans); font-size: .94rem;
  padding: 11px 0; outline: 0;
}
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  color: var(--text); padding: 7px 12px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: none;
  transition: color .15s, border-color .15s, background-color .15s;
}
.chip span { color: var(--text-muted); margin-left: 4px; font-weight: 600; font-size: .9em; }
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip.is-active {
  color: #fff; background: var(--text); border-color: var(--text);
  box-shadow: none;
}
.chip.is-active span { color: rgba(255,255,255,.7); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.article {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: background-color .2s;
}
.article::before, .article::after { display: none; }
.article:hover { background: var(--bg-soft); }

.article-cat {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.article-title {
  font-family: var(--display); font-size: 1.45rem; line-height: 1.18;
  color: var(--text); margin: 0 0 12px;
  font-weight: 600;
}
.article-excerpt {
  font-family: var(--sans); font-size: .94rem;
  color: var(--text-soft); flex: 1; line-height: 1.55;
}
.article-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: .8rem;
  color: var(--text-muted);
}
.article-foot .read-more {
  color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.article-foot .read-more:hover { color: var(--accent-ink); text-decoration: none; }
.article-foot .read-more::after {
  content: "→"; transition: transform .2s; font-weight: 400;
}
.article-foot .read-more:hover::after { transform: translateX(3px); }

.grid-foot { text-align: center; margin-top: 44px; }
.article.is-hidden { display: none; }

/* ---------------------------------------------------- BIBLE LINKS ---- */
.section-bible { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.resource-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.resource {
  position: relative; display: block;
  padding: 24px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  color: var(--text); overflow: hidden;
  transition: border-color .2s;
  text-decoration: none;
}
.resource::before { display: none; }
.resource:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }

.resource-tag {
  display: inline-block;
  font-family: var(--sans); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px; padding: 0; border: 0; background: none;
}
.resource h4 { color: var(--text); margin: 0 0 6px; font-family: var(--display); font-size: 1.25rem; }
.resource p { color: var(--text-soft); font-size: .9rem; margin: 0; font-family: var(--sans); }
.resource-arrow {
  position: absolute; top: 22px; right: 24px;
  color: var(--text-muted); font-size: 1.1rem;
  transition: transform .2s, color .2s;
}
.resource:hover .resource-arrow { transform: translate(2px,-2px); color: var(--accent); }

/* --------------------------------------------------------- MEDIA ---- */
.section-media { background: var(--bg); border-bottom: 1px solid var(--line); }
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.media-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
  transition: border-color .2s;
  text-decoration: none;
  color: var(--text);
}
.media-card:hover { border-color: var(--accent); }

.media-thumb {
  position: relative; aspect-ratio: 16/9;
  background: var(--bg-mute); overflow: hidden;
}
.thumb-art { position: absolute; inset: 0; }
.thumb-art[data-art="1"] {
  background:
    radial-gradient(circle at 30% 40%, var(--accent) 0%, transparent 35%),
    radial-gradient(circle at 70% 60%, var(--accent-2) 0%, transparent 40%),
    var(--bg-mute);
  opacity: .3;
}
.thumb-art[data-art="2"] {
  background:
    radial-gradient(circle at 60% 30%, var(--accent-2) 0%, transparent 30%),
    radial-gradient(circle at 25% 75%, var(--accent) 0%, transparent 40%),
    var(--bg-mute);
  opacity: .35;
}
.thumb-art[data-art="3"] {
  background:
    radial-gradient(circle at 40% 50%, var(--accent) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, var(--accent-2) 0%, transparent 35%),
    var(--bg-mute);
  opacity: .3;
}
.media-thumb .play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.1rem;
  background: var(--accent); color: #fff;
  box-shadow: none;
  border: 0;
  transition: transform .2s, background-color .2s;
}
.media-card:hover .play { transform: translate(-50%,-50%) scale(1.06); background: var(--accent-ink); }
.media-thumb .duration {
  position: absolute; right: 10px; bottom: 10px;
  font-family: var(--mono); font-size: .76rem;
  color: #fff; padding: 3px 8px; border-radius: 2px;
  background: rgba(20,20,20,.85); border: 0;
}
.media-body { padding: 22px 24px 24px; }
.media-cat {
  display: inline-block;
  font-family: var(--sans); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.media-body h4 {
  font-family: var(--display); margin: 0 0 6px; color: var(--text);
  font-size: 1.2rem; font-weight: 600; line-height: 1.25;
}
.media-meta { font-size: .84rem; color: var(--text-muted); margin: 0; font-family: var(--sans); }

/* --------------------------------------------------------- BOOKS ---- */
.section-books { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.books-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px;
  align-items: center;
}
.bookshelf { position: relative; padding: 0 0; }
.shelf-stage { overflow: hidden; }
.shelf-row {
  display: flex;
  gap: 24px; align-items: stretch;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.shelf-row > .book-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}
.book-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
}
.shelf-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 6px 16px -6px rgba(20,20,20,.35);
  transition: background .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}
.shelf-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.shelf-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shelf-arrow[disabled] { opacity: .35; cursor: not-allowed; }
.shelf-arrow.shelf-prev { left: -18px; }
.shelf-arrow.shelf-next { right: -18px; }
.shelf-arrow[hidden] { display: none; }
.cover {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 3px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0;
  font-family: var(--display);
  text-align: center;
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(20,20,20,.25);
  position: relative;
  transition: transform .25s ease;
  border-left: 0;
  background: var(--bg-mute);
  overflow: hidden;
}
.cover::before, .cover::after { display: none; }
.book-card:hover .cover { transform: translateY(-4px); }

.cover img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* All three covers are now real photos */
.cover-1, .cover-2, .cover-3 { background: transparent; padding: 0; }
.cover-1::after, .cover-1::before { display: none; }
.cover-title, .cover-author { display: none; }

.book-name {
  font-family: var(--display); color: var(--text); font-size: 1.1rem;
  font-weight: 600; line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.book-tag {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.shelf-plank { display: none; }

/* ----------------------------------------------- CONTACT / NEWS ---- */
.section-contact { background: var(--bg); border-bottom: 1px solid var(--line); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px;
}
.news-card, .contact-card {
  position: relative; padding: 36px 32px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.news-card::before, .contact-card::before { display: none; }
.news-card h3, .contact-card h3 {
  font-family: var(--display); margin: 0 0 .35em; color: var(--text);
  font-size: 1.5rem;
}
.news-card p, .contact-card p { color: var(--text-soft); font-family: var(--sans); }

.news-form {
  display: flex; gap: 8px; margin-top: 18px;
}
.news-form input {
  flex: 1; font-family: var(--sans); font-size: .94rem;
  padding: 12px 14px; background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: none; outline: 0;
}
.news-form input:focus { border-color: var(--accent); }
.news-fine { display: block; margin-top: 10px; color: var(--text-muted); }

.contact-form { display: grid; gap: 12px; margin-top: 18px; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label {
  display: block; font-family: var(--sans); font-size: .68rem;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  margin-top: 6px; width: 100%;
  font-family: var(--sans); font-size: .94rem;
  padding: 11px 13px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: none; outline: 0; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }

/* ---------------------------------------------------------- FOOTER ---- */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-onDark);
  border-top: 0;
}
.site-footer::before { display: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0 36px;
}
.foot-brand h4 {
  font-family: var(--display); font-size: 1.5rem;
  color: #fff; margin: 0 0 .3em;
}
.foot-brand p { color: var(--text-onDark-2); margin: 0 0 .6em; font-family: var(--sans); }
.foot-quote {
  font-family: var(--display); font-style: italic;
  color: var(--accent-onDark); margin-top: 14px !important;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12);
}
.foot-col h6 {
  color: var(--accent-onDark);
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: .8em;
}
.foot-col a {
  display: block; padding: 6px 0; font-size: .92rem;
  color: var(--text-onDark); font-family: var(--sans);
  text-decoration: none;
}
.foot-col a:hover { color: var(--accent-onDark); padding-left: 3px; text-decoration: none; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
}
.footer-bar-row { display: flex; justify-content: space-between; align-items: center; }
.footer-bar small { color: var(--text-onDark-2); font-family: var(--sans); font-size: .8rem; }

/* -------------------------------------------------- SEARCH OVERLAY ---- */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20,20,20,.55);
  display: none;
  padding: 80px 24px 24px;
}
.search-overlay.is-open { display: block; }
.search-shell {
  max-width: 720px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(20,20,20,.18);
  overflow: hidden;
}
.search-shell::before { display: none; }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}
.search-bar input {
  flex: 1; background: transparent; border: 0;
  color: var(--text);
  font-family: var(--display); font-size: 1.3rem;
  outline: 0; padding: 6px 0;
}
.search-results {
  max-height: 50vh; overflow-y: auto;
  padding: 6px;
}
.search-result {
  display: block; padding: 12px 16px;
  border-radius: 4px; color: var(--text);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .15s;
}
.search-result:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }
.search-result strong {
  display: block; font-family: var(--display);
  font-size: 1.05rem; margin-bottom: 2px;
}
.search-result small {
  color: var(--text-muted); font-family: var(--sans);
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
}
.search-result mark {
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 0 2px; border-radius: 2px;
}
.search-empty { text-align: center; color: var(--text-muted); padding: 30px 14px; font-style: italic; }

/* -------------------------------------------------------- DRAWER ---- */
.drawer {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(20,20,20,.55);
  display: none;
}
.drawer.is-open { display: block; }
.drawer-inner {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(320px, 90vw);
  padding: 76px 24px 24px;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(20,20,20,.12);
  overflow-y: auto;
}
.drawer-link {
  display: block;
  font-family: var(--display); font-size: 1.4rem;
  color: var(--text); padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.drawer-link:hover { color: var(--accent); text-decoration: none; }

/* --------------------------------------------------------- TOAST ---- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-darker);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  border: 0;
  box-shadow: 0 8px 24px rgba(20,20,20,.2);
  font-family: var(--sans); font-size: .9rem;
  z-index: 400; opacity: 0;
  transition: transform .3s ease, opacity .2s;
  pointer-events: none;
  max-width: 90vw;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ----------------------------------------------------- READING MODE ---- */
body.reading-mode .top-ribbon,
body.reading-mode .marquee,
body.reading-mode .section-featured,
body.reading-mode .section-bible,
body.reading-mode .section-media,
body.reading-mode .section-books,
body.reading-mode .section-contact,
body.reading-mode .site-footer,
body.reading-mode .hero-card,
body.reading-mode .section-verse {
  display: none;
}
body.reading-mode .hero { padding: 30px 0; }
body.reading-mode .hero-grid { grid-template-columns: 1fr; }
body.reading-mode .articles-grid {
  grid-template-columns: 1fr; max-width: 740px; margin: 0 auto; border: 1px solid var(--line);
}

/* ----------------------------------------------------- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .featured-grid, .books-grid, .contact-grid {
    grid-template-columns: 1fr; gap: 50px;
  }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-chips { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .container, .container-md, .container-sm { padding: 0 18px; }
  .primary-nav { display: none; }
  .menu-btn { display: flex; }
  .palette-switcher { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 50px 0 70px; }
  .top-ribbon .ribbon-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar-row { flex-direction: column; gap: 6px; text-align: center; }
  .paper { padding: 30px 24px; }
  .shelf-row { gap: 14px; }
  .shelf-row > .book-card { flex: 0 0 calc((100% - 14px) / 2); }
  .shelf-arrow { width: 36px; height: 36px; }
  .shelf-arrow.shelf-prev { left: -8px; }
  .shelf-arrow.shelf-next { right: -8px; }
  .has-mega .mega { display: none; }
  .verse-input { grid-template-columns: 1fr; }
  .verse-icon { display: none; }
  .marquee-track-wrap {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
  .articles-grid { grid-template-columns: 1fr; }
  .article { border-right: 0; }
}

/* ---------------------------------------------------- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; }
.fade-in.is-visible { animation: fadeUp .6s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================ READER MODAL */
.reader {
  position: fixed; inset: 0; z-index: 500;
  display: none;
}
.reader.is-open { display: block; }
.reader-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,20,20,.55);
  animation: fade .25s ease;
}
.reader-shell {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(880px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(20,20,20,.18);
  display: flex; flex-direction: column;
  animation: slideR .35s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideR { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.reader-bar {
  flex: 0 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  gap: 12px;
}
.reader-bar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.reader-bar-right { display: flex; align-items: center; gap: 6px; }
.reader-crumb {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reader-fontsize {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 4px;
  margin-right: 6px;
}
.reader-fontsize button {
  padding: 7px 11px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  color: var(--text-soft);
  border-right: 1px solid var(--line);
}
.reader-fontsize button:last-child { border-right: 0; }
.reader-fontsize button.is-active { background: var(--accent); color: #fff; }

.reader-progress {
  flex: 0 0 auto; height: 2px; background: var(--line);
}
.reader-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--accent); transition: width .12s linear;
}

.reader-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.reader-article {
  max-width: 720px; margin: 0 auto;
  padding: 56px 40px 80px;
}
.reader-article[data-size="sm"] { font-size: 15px; }
.reader-article[data-size="md"] { font-size: 17px; }
.reader-article[data-size="lg"] { font-size: 19px; }

.reader-cat {
  display: inline-block;
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.reader-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600; line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--text);
  letter-spacing: -.012em;
}
.reader-deck {
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--text-soft);
  margin: 0 0 28px;
  line-height: 1.5;
}
.reader-byline {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.byline-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  border: 1px solid var(--line);
}
.byline-text { line-height: 1.3; min-width: 0; }
.byline-text strong {
  display: block;
  font-family: var(--display); font-size: 1.1rem;
  font-weight: 600; color: var(--text);
}
.byline-text small { font-family: var(--sans); font-size: .82rem; color: var(--text-muted); }
.byline-actions { display: flex; gap: 6px; }

.reader-body {
  font-family: var(--serif);
  line-height: 1.75;
  color: var(--text);
}
.reader-body h3 {
  font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  margin: 1.4em 0 .5em; color: var(--text);
}
.reader-body p { margin: 0 0 1.1em; }
.reader-body p.dropcap::first-letter {
  font-family: var(--display); font-size: 4em;
  float: left; line-height: .85;
  padding: 6px 12px 0 0;
  color: var(--accent); font-style: italic; font-weight: 600;
}
.reader-body ul, .reader-body ol { margin: 0 0 1.1em 1.2em; padding: 0; }
.reader-body li { margin-bottom: .5em; }
.reader-body em { color: var(--accent-ink); }
.reader-body strong { color: var(--text); }
.reader-body .footnote {
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-top: 28px;
  font-family: var(--sans);
  font-size: .9rem; color: var(--text-muted); font-style: italic;
}

/* Author card inside reader */
.author-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 22px;
  padding: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 6px;
  margin: 48px 0 36px;
}
.author-card img {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.author-meta h4 {
  font-family: var(--display); font-size: 1.35rem;
  margin: 4px 0 8px; color: var(--text);
}
.author-meta p {
  font-family: var(--sans); font-size: .94rem;
  color: var(--text-soft); margin: 0 0 14px;
  line-height: 1.55;
}
.author-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Share rail */
.share-rail {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-rail-label {
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 8px;
}
.share-rail button {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: color .15s, background-color .15s, border-color .15s;
}
.share-rail button:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

/* Comments */
.comments {
  border-top: 1px solid var(--line);
  padding-top: 36px; margin-top: 8px;
}
.comments-head h3 {
  font-family: var(--display); font-size: 1.6rem;
  margin: 0 0 .25em; color: var(--text);
}
.comments-head h3 small {
  font-family: var(--sans); font-size: .8em;
  color: var(--text-muted); font-weight: 400; margin-left: 6px;
}
.comments-head p {
  font-family: var(--sans); font-size: .88rem;
  color: var(--text-muted); margin: 0 0 22px;
}
.comment-form {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 6px;
  margin-bottom: 28px;
}
.comment-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.comment-form input,
.comment-form textarea {
  font-family: var(--sans); font-size: .94rem;
  padding: 10px 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 3px;
  outline: 0; resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form-actions {
  display: flex; justify-content: space-between; align-items: center;
}
.comment-form-actions small { color: var(--text-muted); font-size: .82rem; }

.comment-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.comment {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.1rem; font-weight: 600;
  color: #fff; background: var(--accent);
}
.comment-meta {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
}
.comment-meta strong { font-family: var(--display); font-size: 1rem; color: var(--text); font-weight: 600; }
.comment-meta small { font-family: var(--sans); font-size: .76rem; color: var(--text-muted); }
.comment-text { font-family: var(--sans); font-size: .95rem; color: var(--text-soft); margin: 0 0 6px; line-height: 1.55; }
.comment-actions {
  display: flex; gap: 14px;
  font-family: var(--sans); font-size: .8rem;
  color: var(--text-muted);
}
.comment-actions button {
  font-family: inherit; font-size: inherit; color: inherit;
  display: inline-flex; align-items: center; gap: 4px;
}
.comment-actions button:hover { color: var(--accent); }
.comment-actions .liked { color: var(--accent); }

/* Related */
.related {
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.related h4 {
  font-family: var(--display); font-size: 1.3rem;
  font-weight: 600; margin: 0 0 18px; color: var(--text);
}
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.related li a {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); text-decoration: none;
  transition: border-color .15s;
}
.related li a:hover { border-color: var(--accent); text-decoration: none; }
.related li a strong {
  display: block; font-family: var(--display);
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 2px;
}
.related li a small { font-family: var(--sans); font-size: .78rem; color: var(--text-muted); letter-spacing: .12em; text-transform: uppercase; }
.related li a span.arrow { color: var(--accent); align-self: center; font-size: 1.1rem; }

/* Reader responsive */
@media (max-width: 760px) {
  .reader-shell { width: 100%; }
  .reader-article { padding: 36px 22px 60px; }
  .reader-byline { grid-template-columns: 40px 1fr; }
  .byline-actions { grid-column: 1 / -1; margin-top: 8px; }
  .author-card { grid-template-columns: 64px 1fr; gap: 14px; padding: 18px; }
  .author-card img { width: 64px; height: 64px; }
  .comment-form-row { grid-template-columns: 1fr; }
}

/* ========================================================= VIDEO MODAL */
.video-modal {
  position: fixed; inset: 0; z-index: 550;
  display: none;
}
.video-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,15,15,.85);
  animation: fade .25s ease;
}
.video-shell {
  position: relative;
  max-width: 980px; width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.video-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.video-meta-mini { min-width: 0; }
.video-cat {
  display: inline-block;
  font-family: var(--sans); font-size: .66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.video-meta-mini h3 {
  font-family: var(--display); font-size: 1.2rem;
  font-weight: 600; margin: 0; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-bar-actions { display: flex; gap: 6px; }
.video-frame {
  position: relative; width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.video-iframe { position: absolute; inset: 0; }
.video-iframe iframe {
  width: 100%; height: 100%; border: 0; display: block;
  position: relative; z-index: 2;
}
.video-fallback {
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--sans);
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.55);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
}
.video-fallback:hover { color: #fff; background: rgba(0,0,0,.75); }
.video-meta {
  display: grid; grid-template-columns: 1fr auto; gap: 18px;
  align-items: center;
  padding: 16px 22px;
}
.video-meta p {
  font-family: var(--sans); font-size: .92rem;
  color: var(--text-soft); margin: 0; line-height: 1.55;
}
.video-share { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 760px) {
  .video-modal.is-open { padding: 0; align-items: stretch; }
  .video-shell { border-radius: 0; max-height: 100%; display: flex; flex-direction: column; }
  .video-meta { grid-template-columns: 1fr; }
}

/* When a modal is open, prevent body scroll */
body.has-modal { overflow: hidden; }

/* ===== Real media-card thumbnails (YouTube poster) ===== */
.media-card { cursor: pointer; }
.media-thumb img.thumb-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.media-card:hover .thumb-photo { transform: scale(1.04); }
.media-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.media-thumb .play, .media-thumb .duration { z-index: 2; }

/* ========================================================= BOOK PREVIEW (cards) */
button.book-card {
  background: transparent; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
  width: 100%;
}
button.book-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.book-card .cover-preview {
  position: absolute; left: 50%; bottom: 12px;
  transform: translate(-50%, 8px);
  font-family: var(--sans);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px; border-radius: 999px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.book-card:hover .cover-preview,
.book-card:focus-visible .cover-preview {
  opacity: 1; transform: translate(-50%, 0);
}
.book-card .cover { position: relative; }

/* ========================================================= BOOK MODAL */
.book-modal {
  position: fixed; inset: 0; z-index: 560;
  display: none;
}
.book-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.book-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,15,15,.85);
  animation: fade .25s ease;
}
.book-shell {
  position: relative;
  max-width: 1040px; width: 100%;
  max-height: calc(100vh - 48px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: pop .25s ease;
  display: flex; flex-direction: column;
}
.book-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.book-bar-left { min-width: 0; }
.book-bar-tag {
  display: inline-block;
  font-family: var(--sans); font-size: .66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.book-bar h3 {
  font-family: var(--display); font-size: 1.2rem;
  font-weight: 600; margin: 0; color: var(--text);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  line-height: 1.25;
}
.book-bar-actions { display: flex; gap: 6px; flex-shrink: 0; }
.book-modal-scroll {
  overflow: auto;
  padding: 28px 28px 32px;
}
.book-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 36px;
  align-items: start;
}
.book-cover-lg {
  margin: 0;
  position: sticky; top: 0;
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 0;
  min-height: 200px;
}
.book-cover-lg img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 18px 40px -12px rgba(20,20,20,.45);
  display: block;
  background: var(--bg-soft);
}
.book-cover-lg figcaption {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: .78rem; color: var(--text-muted);
  text-align: center;
  letter-spacing: .04em;
  word-break: break-word;
}
.book-detail { min-width: 0; }
.book-byline {
  font-family: var(--sans);
  color: var(--text-muted); font-size: .9rem;
  margin: 0 0 12px;
}
.book-byline strong { color: var(--text); font-weight: 600; }
.book-facts {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.book-facts li {
  font-family: var(--sans); font-size: .82rem;
  color: var(--text-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.book-facts li span {
  font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
.book-facts li strong {
  color: var(--text); font-weight: 600;
}
.book-section-title {
  font-family: var(--display);
  font-size: 1rem; font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
  letter-spacing: .01em;
}
.book-summary p {
  font-family: var(--sans);
  font-size: .95rem; line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 10px;
}
.book-highlights {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.book-highlights li {
  position: relative;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: .92rem; color: var(--text-soft); line-height: 1.55;
}
.book-highlights li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-size: .9rem;
}
.book-order-lead {
  font-family: var(--sans);
  font-size: .92rem; color: var(--text-soft); line-height: 1.6;
  margin: 0 0 14px;
}
.book-order-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px;
}
.book-order-actions .btn { min-width: 0; }
.book-order-note {
  font-family: var(--sans); font-size: .82rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  line-height: 1.5;
}
.book-order-note strong { color: var(--text); font-weight: 600; }

@media (max-width: 760px) {
  .book-modal.is-open { padding: 0; align-items: stretch; }
  .book-shell { border-radius: 0; max-height: 100%; }
  .book-modal-scroll { padding: 18px 16px 26px; }
  .book-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .book-cover-lg { position: static; max-width: 220px; margin: 0 auto; }
  .book-facts { grid-template-columns: 1fr 1fr; }
}

/* ========================================================= ABOUT MODAL */
.about-modal {
  position: fixed; inset: 0; z-index: 565;
  display: none;
}
.about-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.about-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,15,15,.85);
  animation: fade .25s ease;
}
.about-shell {
  position: relative;
  max-width: 880px; width: 100%;
  max-height: calc(100vh - 48px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: pop .25s ease;
  display: flex; flex-direction: column;
}
.about-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.about-bar-left { min-width: 0; }
.about-bar-tag {
  display: inline-block;
  font-family: var(--sans); font-size: .66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.about-bar h3 {
  font-family: var(--display); font-size: 1.2rem;
  font-weight: 600; margin: 0; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.about-modal-scroll {
  overflow: auto;
  padding: 0;
}
.about-long {
  padding: 0 38px 34px;
  font-family: var(--serif), var(--display);
  color: var(--text);
}
.about-long-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px; align-items: center;
  padding: 26px 0 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.about-long-hero img {
  width: 120px; height: 120px;
  object-fit: cover; object-position: center 18%;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.about-long-hero h1 {
  font-family: var(--display);
  font-size: 1.7rem; font-weight: 600;
  margin: 4px 0 6px; color: var(--text);
  line-height: 1.2;
}
.about-long-sub {
  font-family: var(--sans);
  color: var(--text-muted); font-size: .9rem;
  line-height: 1.45; margin: 0;
}
.about-long h2 {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--text);
  margin: 28px 0 8px;
  letter-spacing: .005em;
}
.about-long p {
  font-family: var(--serif), var(--display);
  font-size: 1.02rem; line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 14px;
}
.about-long em { color: var(--text); }
.about-long strong { color: var(--text); }
.about-bullets {
  list-style: none; padding: 0;
  margin: 6px 0 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.about-bullets li {
  position: relative; padding-left: 22px;
  font-family: var(--sans); font-size: .94rem;
  color: var(--text-soft); line-height: 1.6;
}
.about-bullets li::before {
  content: "✦"; position: absolute; left: 0; top: 0;
  color: var(--accent);
}
.about-closing {
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--text);
}

/* Signature block */
.about-signoff {
  margin: 36px 0 14px;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line);
  text-align: left;
}
.about-signoff-line {
  font-family: var(--serif), var(--display);
  font-style: italic;
  color: var(--text-soft);
  margin: 0 0 6px;
  font-size: 1rem;
}
.about-signature {
  display: block;
  width: 240px; max-width: 70%;
  height: auto;
  margin: 6px 0 4px;
  /* If the original PNG has a transparent background, this keeps it crisp on light/dark surfaces */
  filter: none;
}
.about-signoff-name {
  font-family: var(--sans);
  margin: 6px 0 0;
  display: flex; flex-direction: column;
  gap: 2px;
  font-size: .95rem;
  color: var(--text);
}
.about-signoff-name strong { font-weight: 600; }
.about-signoff-name span {
  font-size: .8rem; color: var(--text-muted);
  letter-spacing: .04em;
}
.about-cta-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .about-modal.is-open { padding: 0; align-items: stretch; }
  .about-shell { border-radius: 0; max-height: 100%; }
  .about-long { padding: 0 18px 24px; }
  .about-long-hero {
    grid-template-columns: 80px 1fr;
    gap: 14px;
    padding: 18px 0 16px;
  }
  .about-long-hero img { width: 80px; height: 80px; }
  .about-long-hero h1 { font-size: 1.35rem; }
  .about-signature { width: 200px; }
}

/* ========================================================= CATALOGUE PAGE */
.page-catalogue { background: var(--bg); }

/* Hero */
.cat-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 38px;
}
.crumbs {
  font-family: var(--sans); font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 4px; opacity: .6; }
.crumbs strong { color: var(--text); font-weight: 600; }
.cat-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 8px 0 12px;
  color: var(--text);
  line-height: 1.15;
}
.cat-lead {
  font-family: var(--serif), var(--display);
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-soft);
  max-width: 760px;
  margin: 0 0 18px;
}
.cat-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Catalogue section */
.section-catalogue { padding: 36px 0 48px; }
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.cat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  outline: none;
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 36px -16px rgba(20,20,20,.25);
}
.cat-cover {
  position: relative;
  background: var(--bg-soft);
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.cat-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 12px 26px -10px rgba(20,20,20,.35);
  transition: transform .35s ease;
  display: block;
}
.cat-card:hover .cat-cover img { transform: translateY(-3px) scale(1.02); }
.cat-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--sans);
  font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 5px 10px;
  border-radius: 999px;
}
.cat-badge-forthcoming {
  background: var(--accent);
  color: #fff;
}
.cat-body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.cat-name {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.cat-sub {
  font-family: var(--sans);
  font-size: .8rem; letter-spacing: .04em;
  text-transform: none;
  color: var(--text-muted);
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cat-blurb {
  font-family: var(--serif), var(--display);
  font-size: .95rem; line-height: 1.55;
  color: var(--text-soft);
  margin: 6px 0 4px;
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-meta {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.cat-meta li {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--sans); font-size: .82rem;
  color: var(--text);
}
.cat-meta li span {
  font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
.cat-meta li strong { font-weight: 600; }
.cat-actions {
  display: flex; gap: 8px;
  margin-top: 8px;
}
.cat-actions .btn { width: 100%; justify-content: center; }
.catalogue-empty {
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  margin-top: 18px;
}
.catalogue-empty p {
  font-family: var(--sans);
  color: var(--text-muted);
  margin: 0 0 12px;
}

/* FAQ section on the catalogue */
.section-cat-faq {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
}
.cat-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.cat-faq {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.cat-faq li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
}
.cat-faq h4 {
  font-family: var(--display);
  font-size: 1.02rem; font-weight: 600;
  margin: 0 0 6px; color: var(--text);
}
.cat-faq p {
  font-family: var(--sans);
  font-size: .9rem; color: var(--text-soft);
  line-height: 1.55; margin: 0;
}

@media (max-width: 900px) {
  .cat-faq-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .cat-meta { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------------------------- *
 * Hero title when used as a quote (longer text, slightly tighter)   *
 * ----------------------------------------------------------------- */
.hero-title-quote .line-a,
.hero-title-quote .line-b {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
}
.hero-title-quote .line-b em {
  color: var(--accent);
  font-style: italic;
}
