/* ==========================================================================
   Scales & Stones — Kira & Sana Marlowe
   Inspired by Rituals for Good: Ink-Black, Warm Parchment, Full-Viewport
   Botanical Frame & Inverted Parchment Table of Contents Overlay
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=UnifrakturMaguntia&display=swap');

:root {
  --ink: #080909;
  --ink-soft: #101313;
  --ink-card: #0D1111;
  --parchment: #E3DEC8;
  --parchment-bright: #EFEBD9;
  --parchment-muted: #9E9987;
  --parchment-dim: rgba(227, 222, 200, 0.28);
  --parchment-faint: rgba(227, 222, 200, 0.12);
  --abyss-teal: #172625;
  --gold-accent: #B89B67;

  --toc-bg: #E3DEC8;
  --toc-ink: #0A0A0A;
  --toc-muted: #6E6A5C;

  --font-title: 'UnifrakturMaguntia', cursive;
  --font-body: 'Philosopher', serif;

  --frame-inset: clamp(10px, 0.95vw, 30px);
  --frame-radius: 18px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Gentle scaling: 16px on standard screens, up to 19px max on 4K so boxes never get squeezed */
  font-size: clamp(15.5px, 0.22vw + 14px, 19px);
}

body {
  background-color: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle vintage paper/film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

body.toc-open {
  overflow: hidden;
}

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

a {
  color: var(--parchment);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

::selection {
  background: var(--parchment);
  color: var(--ink);
}

/* ─── Full-Viewport Gothic Botanical Frame ─── */
.viewport-frame {
  position: fixed;
  inset: var(--frame-inset);
  border: 1.5px solid var(--parchment);
  border-radius: var(--frame-radius);
  /* Masks 100% of anything outside the thin border & rounded corners */
  box-shadow: 0 0 0 100vmax var(--ink);
  pointer-events: none;
  z-index: 900;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.botanical-corner {
  position: absolute;
  width: 4.5rem;
  height: auto;
  pointer-events: none;
}

.botanical-corner .corner-img {
  width: 100%;
  height: auto;
  display: block;
}

.botanical-corner .corner-dark {
  display: none;
}

body.toc-open .botanical-corner .corner-light {
  display: none;
}

body.toc-open .botanical-corner .corner-dark {
  display: block;
}

.botanical-corner.tl {
  top: 4px;
  left: 4px;
}

.botanical-corner.tr {
  top: 4px;
  right: 4px;
  transform: scaleX(-1);
}

.botanical-corner.bl {
  bottom: 4px;
  left: 4px;
  transform: scaleY(-1);
}

.botanical-corner.br {
  bottom: 4px;
  right: 4px;
  transform: scale(-1, -1);
}

/* ─── Top Centered "CONTENTS" / "CLOSE" Hexagonal Button ─── */
.contents-pill-wrap {
  position: fixed;
  top: var(--frame-inset);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1100;
}

.contents-pill {
  appearance: none;
  border: none;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.48rem 2.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  clip-path: polygon(
    10px 0%,
    calc(100% - 10px) 0%,
    100% 50%,
    calc(100% - 10px) 100%,
    10px 100%,
    0% 50%
  );
  transition: transform 0.25s ease, background-color 0.35s ease, color 0.35s ease;
}

.contents-pill:hover {
  transform: scale(1.04);
  background: var(--parchment-bright);
}

.contents-pill .pill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Inverted state when Contents Overlay is open */
body.toc-open .viewport-frame {
  border-color: var(--toc-ink);
  box-shadow: 0 0 0 100vmax var(--toc-bg);
  z-index: 1050;
}

body.toc-open .botanical-corner {
  color: var(--toc-ink);
}

body.toc-open .contents-pill {
  background: var(--toc-ink);
  color: var(--toc-bg);
}

body.toc-open .contents-pill:hover {
  background: #222;
}

/* ─── Full-Screen Inverted "CONTENTS" Overlay (Like Screenshot 2) ─── */
.toc-overlay {
  position: fixed;
  inset: 0;
  background: var(--toc-bg);
  color: var(--toc-ink);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease;
}

body.toc-open .toc-overlay {
  opacity: 1;
  visibility: visible;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
}

.toc-link {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 6.2vw, 4.7rem);
  line-height: 1.08;
  color: var(--toc-muted);
  text-decoration: none;
  padding: 0.05em 0.4em;
  transition: color 0.25s ease, transform 0.25s ease;
  letter-spacing: 0.01em;
}

.toc-link:hover,
.toc-link.active {
  color: var(--toc-ink);
  transform: scale(1.03);
}

.toc-footer-note {
  position: absolute;
  bottom: calc(var(--frame-inset) + 14px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--toc-ink);
  opacity: 0.85;
}

/* ─── Page Container Inside Frame ─── */
.page-shell {
  padding: calc(var(--frame-inset) + 3.5rem) calc(var(--frame-inset) + 2rem) calc(var(--frame-inset) + 3rem);
  max-width: 80rem;
  margin: 0 auto;
  animation: pageFade 0.7s ease-out;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Hero Full-Viewport Centered Stage ─── */
.hero-stage {
  min-height: calc(100dvh - (var(--frame-inset) * 2) - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.8rem, 2vh, 2.2rem);
  width: 100%;
  padding-bottom: 1.5rem;
}

/* ─── Giant Hero Title (Like "Return of the certified ones") ─── */
.hero-header {
  text-align: center;
  padding: 0 0 0.8rem;
  width: 100%;
}

.giant-blackletter {
  font-family: var(--font-title);
  font-size: clamp(3.6rem, 9.2vw, 7.6rem);
  font-weight: 400;
  color: var(--parchment);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
  user-select: none;
}

.hero-title-logo {
  width: clamp(280px, 56vw, 760px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.showcase-title-logo {
  width: clamp(210px, 26vw, 370px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.15rem 0 0.25rem;
}

.triptych-title-logo {
  width: clamp(175px, 19vw, 265px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.1rem 0 0.25rem;
}

.triptych-sealed-logo {
  width: 145px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.2rem;
}

.hero-etching {
  width: 120px;
  height: auto;
  margin: 0 auto 1.2rem;
  color: var(--parchment);
  opacity: 0.85;
}

.hero-kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--parchment);
  margin-bottom: 0.8rem;
}

.hero-prologue-text {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--parchment);
}

/* ─── Book Showcase & Selling Section on Hero Page ─── */
.hero-book-showcase {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 30rem);
  justify-content: center;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 54rem;
  margin: 1rem auto 2.2rem;
  padding: 2.6rem 3.2rem;
  border: 1px solid var(--parchment-dim);
  background: linear-gradient(145deg, rgba(23, 38, 37, 0.28) 0%, rgba(8, 9, 9, 0.85) 100%);
  position: relative;
}

.hero-book-showcase::before {
  content: '✦';
  position: absolute;
  top: -0.54em;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  padding: 0;
  color: var(--parchment);
  font-size: 1.3rem;
  line-height: 1;
  text-shadow: 0 0 10px var(--ink), 0 0 4px var(--ink);
}

.showcase-cover-wrap {
  position: relative;
  margin: 0 auto;
}

.showcase-cover {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--parchment-dim);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  transition: transform 0.4s ease;
}

.showcase-cover-wrap:hover .showcase-cover {
  transform: translateY(-4px);
}

.showcase-details .book-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-accent);
  border-bottom: 1px solid rgba(184, 155, 103, 0.4);
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.showcase-details h2 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.showcase-authors {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--parchment-muted);
  margin-bottom: 1.4rem;
}

.showcase-tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--parchment-bright);
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-accent);
}

.showcase-blurb {
  font-size: 1rem;
  color: var(--parchment-muted);
  margin-bottom: 1.8rem;
  line-height: 1.75;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-gothic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.9rem 2.2rem;
  white-space: normal;
  text-align: center;
  background: var(--parchment);
  color: var(--ink);
  border: 1px solid var(--parchment);
  cursor: pointer;
  transition: all 0.25s ease;
}

.free-chapter-nudge {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--parchment-muted);
}

.free-chapter-nudge a {
  color: var(--gold-accent);
  font-style: italic;
  border-bottom: 1px solid rgba(184, 155, 103, 0.45);
  padding-bottom: 0.1rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.free-chapter-nudge a:hover {
  color: var(--parchment-bright);
  border-color: var(--parchment-bright);
}

.btn-gothic:hover {
  background: var(--parchment-bright);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-gothic.outline {
  background: transparent;
  color: var(--parchment);
  border-color: var(--parchment-dim);
}

.btn-gothic.outline:hover {
  border-color: var(--parchment);
  background: rgba(227, 222, 200, 0.07);
  color: var(--parchment-bright);
}

/* ─── Thin Rolling Review Banner (Marquee) ─── */
.review-marquee-bar {
  width: calc(100vw - (var(--frame-inset) * 2) - 4px);
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--parchment-dim);
  border-bottom: 1px solid var(--parchment-dim);
  background: rgba(23, 38, 37, 0.16);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.review-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marqueeRoll 38s linear infinite;
}

.review-marquee-bar:hover .review-marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--parchment);
}

.marquee-item em {
  font-style: italic;
  color: var(--parchment-bright);
}

.marquee-item .reviewer {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-accent);
}

.marquee-star {
  color: var(--gold-accent);
  font-size: 1.1rem;
  margin: 0 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@keyframes marqueeRoll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Editorial Content Container (Inner Pages & Below Hero) ─── */
.editorial-column {
  max-width: 49rem;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.section-ornament {
  text-align: center;
  margin: 3rem 0;
  color: var(--parchment-dim);
  font-size: 0.85rem;
  letter-spacing: 0.6em;
  position: relative;
}

.section-ornament::before,
.section-ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32%;
  height: 1px;
  background: var(--parchment-faint);
}

.section-ornament::before { left: 5%; }
.section-ornament::after  { right: 5%; }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  color: var(--parchment);
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-accent);
  text-align: center;
  margin-bottom: 2rem;
}

.editorial-column p {
  margin-bottom: 1.4rem;
  color: var(--parchment);
  font-size: 1.05rem;
}

.editorial-column p.lead {
  font-size: 1.22rem;
  font-style: italic;
  text-align: center;
  color: var(--parchment-bright);
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

blockquote.gothic-quote {
  margin: 2.2rem 0;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--parchment);
  background: rgba(227, 222, 200, 0.03);
  font-style: italic;
  color: var(--parchment-bright);
}

blockquote.gothic-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-accent);
}

/* ─── Author Duo Cards (About Us) ─── */
.authors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}

.author-panel {
  border: 1px solid var(--parchment-dim);
  padding: 2.2rem 1.8rem;
  background: rgba(23, 38, 37, 0.14);
  text-align: center;
}

.author-portrait {
  width: 130px;
  height: 165px;
  margin: 0 auto 1.4rem;
  border: 1px solid var(--parchment-dim);
  border-radius: 65px 65px 6px 6px; /* Gothic arch silhouette */
  background: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--parchment-muted);
}

.author-panel h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 0.2rem;
}

.author-panel .role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-accent);
  margin-bottom: 1.2rem;
}

.author-panel p {
  font-size: 0.96rem;
  color: var(--parchment-muted);
  text-align: left;
}

/* ─── Blog Subpage, Search/Filter Toolbar & Reader ─── */
.blog-controls-bar {
  border: 1px solid var(--parchment-dim);
  padding: 1.4rem 1.6rem;
  background: rgba(23, 38, 37, 0.14);
  margin-bottom: 1.6rem;
}

.blog-search-sort-row {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.blog-cat-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--parchment-dim);
  color: var(--parchment-muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.42rem 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--parchment);
  color: var(--ink);
  border-color: var(--parchment);
}

.blog-status-count {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--parchment-muted);
  margin-bottom: 1rem;
  text-align: right;
}

@media (max-width: 640px) {
  .blog-search-sort-row {
    grid-template-columns: 1fr;
  }
}

.blog-grid {
  display: grid;
  gap: 1.8rem;
  margin: 1rem 0 2rem;
}

.blog-card {
  border: 1px solid var(--parchment-dim);
  padding: 2.2rem;
  background: linear-gradient(145deg, rgba(23, 38, 37, 0.18), rgba(8, 9, 9, 0.9));
  transition: border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  border-color: var(--parchment);
  transform: translateY(-2px);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-accent);
  margin-bottom: 0.6rem;
}

.blog-card h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 0.8rem;
  line-height: 1.15;
}

.blog-card p {
  color: var(--parchment-muted);
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
}

.blog-read-link {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--parchment);
  border-bottom: 1px solid var(--parchment-dim);
  padding-bottom: 0.2rem;
}

.blog-article-view {
  border: 1px solid var(--parchment-dim);
  padding: 3rem 2.5rem;
  background: rgba(13, 17, 17, 0.85);
}

.blog-post-main-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  color: var(--parchment);
  line-height: 1.12;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* ─── Rich Formatted Blog Content & Image Placement ─── */
.blog-rich-content {
  color: var(--parchment);
  font-family: var(--font-body);
  line-height: 1.8;
  word-wrap: break-word;
}

.blog-rich-content::after {
  content: '';
  display: table;
  clear: both;
}

.blog-rich-content p {
  margin-bottom: 1.35rem;
}

/* Main Title block option inside editor (Unifraktur) */
.blog-rich-content h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  color: var(--parchment);
  line-height: 1.18;
  margin: 1.8rem 0 0.85rem;
}

/* Heading 1: Bold All Caps Philosopher */
.blog-rich-content h1 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  color: var(--parchment-bright);
  line-height: 1.25;
  margin: 1.8rem 0 0.8rem;
}

/* Heading 2: Bold Philosopher */
.blog-rich-content h2 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
  color: var(--parchment-bright);
  line-height: 1.3;
  margin: 1.5rem 0 0.7rem;
}

/* Centered Rounded Quote Frame (Matches Website Viewport Frame) */
.blog-rich-content blockquote {
  position: relative;
  max-width: 38rem;
  width: 90%;
  margin: 2.2rem auto;
  padding: 1.5rem 2.2rem;
  border: 1.5px solid var(--parchment);
  border-radius: var(--frame-radius);
  background: rgba(23, 38, 37, 0.18);
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--parchment-bright);
  line-height: 1.7;
  clear: both;
}

.blog-rich-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Star Lists Indented Toward Center */
.blog-rich-content ul {
  list-style: none;
  margin: 1.1rem 0 1.4rem 0;
  padding-left: 2.4rem;
}

.blog-rich-content ul li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
  color: var(--parchment);
}

.blog-rich-content ul li::before {
  content: '✦';
  position: absolute;
  left: -1.35rem;
  top: 0;
  color: var(--gold-accent);
  font-size: 0.82em;
  line-height: inherit;
}

.blog-rich-content ol {
  margin: 1.1rem 0 1.4rem 0;
  padding-left: 2.4rem;
}

.blog-rich-content ol li {
  margin-bottom: 0.55rem;
  color: var(--parchment);
}

.blog-rich-content ol li::marker {
  color: var(--gold-accent);
}

/* Readable Sanctuary Green Links */
.blog-rich-content a {
  color: #78B8A0;
  border-bottom: 1px solid rgba(120, 184, 160, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-rich-content a:hover {
  color: #9CE0C6;
  border-bottom-color: #9CE0C6;
}

.blog-rich-content hr.gothic-divider {
  border: none;
  height: 1.4rem;
  margin: 2.2rem auto;
  max-width: 36rem;
  width: 85%;
  position: relative;
  overflow: visible;
  clear: both;
  background: linear-gradient(
    to right,
    transparent,
    var(--parchment-dim) 12%,
    var(--parchment) 50%,
    var(--parchment-dim) 88%,
    transparent
  ) no-repeat center / 100% 1px;
}

.blog-rich-content hr.gothic-divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--parchment);
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 8px var(--ink), 0 0 4px var(--ink);
}

/* Inline Source Numbers & Footnote Section */
.blog-source-ref {
  font-size: 0.74em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.14rem;
}

.blog-source-ref a {
  color: var(--gold-accent) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  font-weight: 700;
}

.blog-source-ref a:hover {
  color: var(--parchment-bright) !important;
}

.blog-sources-section {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--parchment-faint);
  font-size: 0.84rem;
  color: var(--parchment-muted);
  clear: both;
}

.blog-sources-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--parchment-muted);
  margin-bottom: 0.65rem;
}

.blog-sources-ol {
  margin: 0 0 0 1.4rem !important;
  padding-left: 0.4rem !important;
  color: var(--parchment-muted);
}

.blog-sources-ol li {
  color: var(--parchment-muted) !important;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Rich Blog Figures & Placement */
.blog-figure {
  margin: 1.4rem 0;
  max-width: 100%;
  position: relative;
}

.blog-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--parchment-dim);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.blog-figure.size-25 {
  width: 25%;
}

.blog-figure.size-50 {
  width: 50%;
}

.blog-figure.size-75 {
  width: 75%;
}

.blog-figure.size-100 {
  width: 100%;
}

.blog-figure.align-left {
  float: left;
  margin: 0.4rem 1.8rem 1.2rem 0;
}

.blog-figure.align-right {
  float: right;
  margin: 0.4rem 0 1.2rem 1.8rem;
}

.blog-figure.align-center {
  float: none !important;
  display: block !important;
  margin: 1.6rem auto !important;
  text-align: center;
}

.blog-figure.align-full {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 1.8rem 0 !important;
  text-align: center;
}

.blog-figure figcaption {
  margin-top: 0.55rem;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--parchment-muted);
  text-align: center;
  line-height: 1.45;
}

/* End-of-Post Author & Trilogy Callout Box */
.blog-post-signoff-box {
  margin-top: 2.8rem;
  padding: 1.85rem 2rem;
  border: 1px solid var(--parchment-dim);
  background: linear-gradient(145deg, rgba(23, 38, 37, 0.26), rgba(8, 9, 9, 0.94));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.8rem;
  align-items: center;
  position: relative;
  clear: both;
}

.blog-post-signoff-box::before {
  content: '✦';
  position: absolute;
  top: -0.58em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-accent);
  font-size: 1.15rem;
  line-height: 1;
  text-shadow: 0 0 10px var(--ink), 0 0 4px var(--ink);
}

.blog-signoff-logo {
  width: 5.5rem;
  height: 6.4rem;
  border: 1px solid var(--gold-accent);
  border-radius: 50px 50px 6px 6px;
  background: radial-gradient(circle at center, rgba(184, 155, 103, 0.16), rgba(8, 9, 9, 0.96));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
}

.blog-signoff-emblem-img {
  width: auto;
  height: 4.5rem;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(184, 155, 103, 0.25));
}

.blog-signoff-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-accent);
  margin-bottom: 0.2rem;
}

.blog-signoff-names {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.12;
  margin-bottom: 0.5rem;
}

.blog-signoff-desc {
  font-size: 0.92rem;
  color: var(--parchment-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-signoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.blog-signoff-actions .btn-gothic {
  padding: 0.58rem 1.25rem;
  font-size: 0.68rem;
}

@media (max-width: 640px) {
  .blog-article-view {
    padding: 2rem 1.35rem;
  }

  .blog-rich-content blockquote {
    width: 100%;
    padding: 1.2rem 1.4rem;
  }

  .blog-figure.align-left,
  .blog-figure.align-right,
  .blog-figure.align-center {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 1.4rem auto !important;
  }

  .blog-post-signoff-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.6rem 1.2rem;
  }

  .blog-signoff-logo {
    margin: 0 auto;
  }

  .blog-signoff-actions {
    justify-content: center;
  }
}

/* ─── Collapsible Gothic Accordion (Trigger Warnings & FAQ) ─── */
.gothic-accordion {
  border: 1px solid var(--parchment-dim);
  background: rgba(23, 38, 37, 0.14);
  margin: 1.5rem 0;
  transition: border-color 0.3s ease;
}

.gothic-accordion:hover,
.gothic-accordion.open {
  border-color: var(--parchment);
}

.gothic-accordion-trigger {
  width: 100%;
  appearance: none;
  background: transparent;
  border: none;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1.25rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.gothic-accordion-trigger .acc-icon {
  color: var(--gold-accent);
  font-size: 0.9rem;
  transition: transform 0.35s ease;
}

.gothic-accordion.open .gothic-accordion-trigger .acc-icon {
  transform: rotate(180deg);
}

.gothic-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gothic-accordion-inner {
  padding: 0 1.8rem 1.6rem;
  border-top: 1px solid var(--parchment-faint);
  padding-top: 1.2rem;
  color: var(--parchment-muted);
  font-size: 0.96rem;
}

.gothic-accordion-inner ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.5rem 1.5rem;
}

.gothic-accordion-inner li::before {
  content: '✦ ';
  color: var(--gold-accent);
  font-size: 0.75rem;
}

/* ─── Spice Level Chili Counter (FAQ) ─── */
.chili-meter-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.chili-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--parchment-faint);
  background: rgba(8, 9, 9, 0.55);
}

.chili-book-label {
  font-weight: 700;
  color: var(--parchment);
  font-size: 0.9rem;
  min-width: 180px;
}

.chili-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.chili-pepper {
  display: inline-block;
  filter: grayscale(1) opacity(0.22);
  transition: transform 0.2s ease;
}

.chili-pepper.hot {
  filter: none;
  text-shadow: 0 0 8px rgba(220, 60, 40, 0.45);
}

.chili-score {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-accent);
  margin-left: 0.6rem;
}

/* ─── Contact Split Cards & Gothic Form (About Us) ─── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-card {
  border: 1px solid var(--parchment-dim);
  padding: 2rem 1.8rem;
  background: rgba(23, 38, 37, 0.14);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card .contact-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
}

.contact-card h3 {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 0.8rem;
}

.contact-card p {
  font-size: 0.94rem;
  color: var(--parchment-muted);
  margin-bottom: 1.5rem;
}

.contact-email-link {
  margin-top: auto;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--parchment);
  border-bottom: 1px solid var(--gold-accent);
  padding-bottom: 0.25rem;
  cursor: pointer;
}

.gothic-form {
  border: 1px solid var(--parchment-dim);
  padding: 2.5rem;
  background: rgba(13, 17, 17, 0.75);
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--parchment);
}

.form-control {
  width: 100%;
  background: #080909;
  border: 1px solid var(--parchment-dim);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-control:hover {
  border-color: var(--gold-accent);
  box-shadow: 0 0 12px rgba(184, 155, 103, 0.22);
}

.form-control:focus {
  border-color: var(--gold-accent);
  box-shadow: 0 0 16px rgba(184, 155, 103, 0.35);
}

.form-control.flash-highlight {
  border-color: var(--gold-accent);
  box-shadow: 0 0 18px rgba(184, 155, 103, 0.45);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23B89B67' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

select.form-control option {
  background-color: #0D1111;
  color: var(--parchment);
  padding: 0.6rem;
}

/* ─── Custom Gothic Dropdown Menu (Blog Sort) ─── */
.gothic-dropdown {
  position: relative;
  user-select: none;
}

.gothic-dropdown-trigger {
  width: 100%;
  height: 100%;
  appearance: none;
  background: #080909;
  border: 1px solid var(--parchment-dim);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gothic-dropdown-trigger:hover,
.gothic-dropdown.open .gothic-dropdown-trigger {
  border-color: var(--gold-accent);
  color: var(--parchment-bright);
  box-shadow: 0 0 15px rgba(184, 155, 103, 0.32);
}

.gothic-dropdown-trigger .dd-arrow {
  color: var(--gold-accent);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.gothic-dropdown.open .gothic-dropdown-trigger .dd-arrow {
  transform: rotate(180deg);
}

.gothic-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0B0F0F;
  border: 1px solid var(--gold-accent);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.9);
  z-index: 50;
  display: none;
  flex-direction: column;
}

.gothic-dropdown.open .gothic-dropdown-menu {
  display: flex;
  animation: pageFade 0.2s ease;
}

.gothic-dropdown-option {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--parchment-faint);
  color: var(--parchment-muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.8rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gothic-dropdown-option:last-child {
  border-bottom: none;
}

.gothic-dropdown-option:hover,
.gothic-dropdown-option.active {
  background: rgba(184, 155, 103, 0.16);
  color: var(--parchment-bright);
}

/* ==========================================================================
   CONDENSED CHARACTER SHOWCASE — 3 INTERACTIVE OPTIONS
   ========================================================================== */

/* ─── CHARACTER OPTION 1: Tabbed Character Dossier (Single Stage) ─── */
.char-dossier {
  border: 1px solid var(--parchment-dim);
  background: linear-gradient(145deg, rgba(23, 38, 37, 0.22), rgba(8, 9, 9, 0.92));
  margin: 1.5rem 0;
}

.char-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--parchment-dim);
}

.char-tab-btn {
  appearance: none;
  background: transparent;
  border: none;
  border-right: 1px solid var(--parchment-faint);
  padding: 1rem 0.6rem;
  color: var(--parchment-muted);
  font-family: var(--font-title);
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.char-tab-btn:last-child {
  border-right: none;
}

.char-tab-btn:hover {
  color: var(--parchment);
  background: rgba(227, 222, 200, 0.04);
}

.char-tab-btn.active {
  color: var(--ink);
  background: var(--parchment);
}

.char-dossier-stage {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.2rem;
  align-items: center;
  padding: 2.2rem 2.5rem;
}

.char-stage-portrait {
  width: 145px;
  height: 185px;
  margin: 0 auto;
  border: 1px solid var(--parchment-dim);
  border-radius: 75px 75px 6px 6px;
  background: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--parchment-muted);
}

.char-stage-info .char-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-accent);
  margin-bottom: 0.25rem;
}

.char-stage-info h3 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}

.char-stage-quote {
  font-style: italic;
  color: var(--parchment-bright);
  font-size: 0.98rem;
  margin-bottom: 0.8rem;
  border-left: 2px solid var(--gold-accent);
  padding-left: 0.85rem;
}

/* ─── CHARACTER OPTION 2: Compact Arch Row + Pop-up / Expand Drawer ─── */
.char-medallion-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.char-mini-card {
  border: 1px solid var(--parchment-dim);
  padding: 1.2rem 0.8rem;
  background: rgba(23, 38, 37, 0.14);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.char-mini-card:hover,
.char-mini-card.active {
  border-color: var(--parchment);
  background: rgba(23, 38, 37, 0.36);
  transform: translateY(-3px);
}

.char-mini-arch {
  width: 76px;
  height: 98px;
  margin: 0 auto 0.8rem;
  border: 1px solid var(--parchment-dim);
  border-radius: 40px 40px 4px 4px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--gold-accent);
}

.char-mini-card h4 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 0.15rem;
}

.char-mini-card span {
  display: block;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--parchment-muted);
}

.char-popup-drawer {
  border: 1px solid var(--parchment);
  background: rgba(12, 17, 17, 0.96);
  padding: 1.8rem 2.2rem;
  margin-top: 0.8rem;
  display: none;
  position: relative;
  animation: fadeInWing 0.35s ease;
}

.char-popup-drawer.open {
  display: block;
}

.char-popup-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: 1px solid var(--parchment-dim);
  color: var(--parchment);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

/* ─── CHARACTER OPTION 3: Horizontal Sliding / Rolling Character Strip ─── */
.char-carousel-wrap {
  position: relative;
  margin: 1.5rem 0;
}

.char-carousel-track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-accent) var(--ink);
}

.char-slide-card {
  flex: 0 0 22rem;
  scroll-snap-align: start;
  border: 1px solid var(--parchment-dim);
  padding: 1.5rem;
  background: rgba(23, 38, 37, 0.16);
  display: flex;
  gap: 1.25rem;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              background 0.35s ease,
              box-shadow 0.35s ease;
}

.char-slide-card:hover {
  transform: scale(1.07) translateY(-4px);
  border-color: var(--gold-accent);
  background: rgba(23, 38, 37, 0.42);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.85);
  z-index: 5;
}

.char-slide-arch {
  width: 82px;
  height: 108px;
  flex-shrink: 0;
  border: 1px solid var(--parchment-dim);
  border-radius: 42px 42px 4px 4px;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--parchment-muted);
}

.char-slide-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.char-name-heading {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--parchment-bright);
  margin-bottom: 0.3rem;
}

.char-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.8rem;
}

/* ─── CHARACTER SELF-SCROLLING STRIP ─── */
.char-autoscroll-bar {
  overflow: hidden;
  margin: 1.5rem 0;
  position: relative;
  padding: 1.2rem 0;
}

.char-autoscroll-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: charAutoScroll 52s linear infinite;
}

.char-autoscroll-bar:hover .char-autoscroll-track {
  animation-play-state: paused;
}

@keyframes charAutoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── TROPE BADGES (Scales & Stones Page) ─── */
.trope-section-wrap {
  max-width: 820px;
  margin: 2.6rem auto;
  padding: 0 1rem;
  text-align: center;
}

.trope-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 1rem auto 0;
  max-width: 820px;
}

.trope-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--parchment-dim);
  background: linear-gradient(145deg, rgba(23, 38, 37, 0.25), rgba(8, 9, 9, 0.9));
  color: var(--parchment);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  clip-path: polygon(
    8px 0%,
    calc(100% - 8px) 0%,
    100% 50%,
    calc(100% - 8px) 100%,
    8px 100%,
    0% 50%
  );
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.trope-badge:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--gold-accent);
  background: rgba(184, 155, 103, 0.14);
}

.trope-badge .trope-star {
  color: var(--gold-accent);
  font-size: 0.7rem;
}

/* ─── 2-MINUTE DELAYED GOTHIC ARCH NEWSLETTER POP-UP ─── */
.sanctuary-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 6, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.sanctuary-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.sanctuary-arch-modal {
  position: relative;
  width: 100%;
  max-width: 29.5rem;
  border: 1.5px solid var(--parchment);
  border-radius: 235px 235px 12px 12px;
  background: linear-gradient(180deg, #13201F 0%, #080A0A 100%);
  padding: 3.6rem 2.6rem 2.2rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sanctuary-modal-backdrop.open .sanctuary-arch-modal {
  transform: translateY(0) scale(1);
}

.sanctuary-arch-modal::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--parchment-dim);
  border-radius: 228px 228px 7px 7px;
  pointer-events: none;
}

/* S&S Emblem at the top of the Arch */
.wax-seal-crest {
  margin: 0 auto 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.modal-emblem-img {
  width: auto;
  height: 3.4rem;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(184, 155, 103, 0.3));
}

.sanctuary-arch-modal h2 {
  font-family: var(--font-title);
  font-size: 2.15rem;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.sanctuary-arch-modal .modal-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-accent);
  margin-bottom: 0.6rem;
}

.sanctuary-arch-modal p {
  font-size: 0.92rem;
  color: var(--parchment-muted);
  line-height: 1.6;
  margin: 0 auto 1.3rem;
  max-width: 22rem;
}

.sanctuary-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.sanctuary-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--parchment-muted);
  margin: 0.25rem 0 0.35rem;
  cursor: pointer;
  transition: color 0.25s ease;
}

.sanctuary-consent-label:hover {
  color: var(--parchment);
}

.sanctuary-consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 0.12rem;
  width: 18px;
  height: 18px;
  border: 1px solid var(--parchment-dim);
  background: #080909;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.sanctuary-consent-label:hover input[type="checkbox"],
.sanctuary-consent-label input[type="checkbox"]:focus-visible {
  border-color: var(--gold-accent);
  box-shadow: 0 0 12px rgba(184, 155, 103, 0.55);
}

.sanctuary-consent-label input[type="checkbox"]:checked {
  border-color: var(--gold-accent);
  background: rgba(184, 155, 103, 0.18);
  box-shadow: 0 0 14px rgba(184, 155, 103, 0.45);
}

.sanctuary-consent-label input[type="checkbox"]:checked::after {
  content: '✦';
  color: var(--gold-accent);
  font-size: 0.78rem;
  line-height: 1;
}

.sanctuary-close-btn {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--parchment-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
}

.sanctuary-close-btn:hover {
  color: var(--parchment);
}

/* ─── Highlight Glow for "Free First Chapter" in Bonus Content & Shop ─── */
.vault-item.spotlight-glow {
  border-color: var(--gold-accent);
  background: linear-gradient(145deg, rgba(184, 155, 103, 0.22), rgba(23, 38, 37, 0.35));
  animation: chapterPulseGlow 2.4s ease-in-out 3;
}

@keyframes chapterPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(184, 155, 103, 0);
    border-color: var(--parchment);
  }
  50% {
    box-shadow: 0 0 38px rgba(184, 155, 103, 0.65), inset 0 0 22px rgba(184, 155, 103, 0.25);
    border-color: var(--gold-accent);
    transform: translateY(-4px);
  }
}

/* ==========================================================================
   BONUS CONTENT & SHOP (Combined Freebies + Quiz + Merch Page)
   ========================================================================== */

.filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 2.5rem;
}

.filter-pill-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--parchment-dim);
  color: var(--parchment-muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill-btn:hover,
.filter-pill-btn.active {
  background: var(--parchment);
  color: var(--ink);
  border-color: var(--parchment);
}

/* ─── Full-Screen Interactive Naturalis Quiz Experience (quiz.html) ─── */
.quiz-fullscreen-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--frame-inset) + 2.5rem) calc(var(--frame-inset) + 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.quiz-Stage-wrapper {
  width: 100%;
  max-width: 49rem;
  margin: auto;
  border: 1px solid var(--parchment-dim);
  padding: 3rem 3.2rem;
  background: linear-gradient(145deg, rgba(23, 38, 37, 0.34) 0%, rgba(8, 9, 9, 0.94) 100%);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  position: relative;
}

.quiz-Stage-wrapper::before {
  content: '✦';
  position: absolute;
  top: -0.54em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--parchment);
  font-size: 1.3rem;
  line-height: 1;
  text-shadow: 0 0 10px var(--ink), 0 0 4px var(--ink);
}

.quiz-stage-box {
  width: 100%;
  text-align: left;
  animation: pageFade 0.45s ease;
}

.quiz-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-accent);
  margin-bottom: 0.6rem;
}

.quiz-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(227, 222, 200, 0.14);
  margin-bottom: 1.8rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gold-accent);
  transition: width 0.4s ease;
}

.quiz-scenario-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 0.8rem;
}

.quiz-scenario-text {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--parchment-bright);
  margin-bottom: 1.6rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold-accent);
}

.quiz-choices-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quiz-choice-btn {
  width: 100%;
  appearance: none;
  background: rgba(8, 9, 9, 0.78);
  border: 1px solid var(--parchment-dim);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.55;
  padding: 1.1rem 1.35rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  transition: all 0.25s ease;
}

.quiz-choice-btn:hover {
  border-color: var(--parchment);
  background: rgba(23, 38, 37, 0.45);
  transform: translateX(4px);
}

.quiz-choice-letter {
  font-weight: 700;
  color: var(--gold-accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.quiz-result-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 0.5rem;
  animation: pageFade 0.6s ease;
}

.quiz-result-card.wyvern-result {
  background: radial-gradient(circle at 50% 20%, rgba(140, 35, 35, 0.22), transparent 70%);
}

.quiz-result-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-accent);
  margin-bottom: 0.4rem;
}

.quiz-result-animal {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.08;
  margin-bottom: 0.3rem;
}

.quiz-result-archetype {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--parchment-muted);
  margin-bottom: 1.4rem;
}

.quiz-result-desc {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--parchment-bright);
  margin-bottom: 1.4rem;
}

.quiz-result-lore {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--parchment-muted);
  margin-bottom: 1.8rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--parchment-faint);
  border-bottom: 1px solid var(--parchment-faint);
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.vault-item {
  border: 1px solid var(--parchment-dim);
  padding: 1.8rem 1.6rem;
  background: rgba(23, 38, 37, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.vault-item:hover {
  border-color: var(--parchment);
  transform: translateY(-3px);
}

.vault-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vault-badge {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.25rem 0.65rem;
  background: var(--parchment);
  color: var(--ink);
  white-space: nowrap;
}

.vault-badge.shop-badge {
  background: transparent;
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
}

.vault-price {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-accent);
  white-space: nowrap;
}

.vault-preview {
  height: 8.5rem;
  padding: 0 1rem;
  text-align: center;
  line-height: 1.2;
  border: 1px solid var(--parchment-faint);
  background: #060808;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.85rem;
  color: var(--parchment-dim);
}

.vault-item h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--parchment-bright);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.vault-item p {
  font-size: 0.92rem;
  color: var(--parchment-muted);
  margin-bottom: 1.4rem;
  line-height: 1.65;
}

.vault-item .btn-gothic {
  width: 100%;
  padding: 0.75rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .vault-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .vault-grid {
    grid-template-columns: 1fr;
  }
  .char-tabs-bar,
  .char-medallion-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .char-dossier-stage {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

@media (max-width: 720px) {
  .contact-split,
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Project Cards ─── */
.project-box {
  border: 1px solid var(--parchment-dim);
  padding: 2.2rem;
  margin: 1.6rem 0;
  background: rgba(23, 38, 37, 0.14);
}

.project-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--parchment);
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.9rem;
}

.project-box h3 {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   TRILOGY SHOWCASE — 3 INTERACTIVE CONCEPTS
   ========================================================================== */

.trilogy-demo-section {
  max-width: 68rem;
  margin: 3.5rem auto;
  padding: 0 1rem;
}

.demo-label-pill {
  display: table;
  margin: 0 auto 0.6rem;
  padding: 0.3rem 1.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink);
  background: var(--gold-accent);
}

/* ─── CONCEPT 1: Interactive Gothic Triptych (Three-Panel Altar) ─── */
.triptych-altar {
  display: flex;
  gap: 1rem;
  min-height: 32rem;
  margin-top: 2rem;
  align-items: stretch;
}

.triptych-wing {
  flex: 1;
  border: 1px solid var(--parchment-dim);
  border-radius: 150px 150px 8px 8px;
  background: linear-gradient(180deg, rgba(23, 38, 37, 0.26) 0%, rgba(8, 9, 9, 0.95) 100%);
  padding: 2.4rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: flex 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              background 0.4s ease,
              box-shadow 0.4s ease;
}

.triptych-wing::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--parchment-faint);
  border-radius: 144px 144px 4px 4px;
  pointer-events: none;
}

.triptych-wing.active {
  flex: 3.4;
  border-color: var(--parchment);
  background: linear-gradient(180deg, rgba(23, 38, 37, 0.45) 0%, rgba(10, 13, 13, 0.98) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.triptych-moon {
  color: var(--gold-accent);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.3rem;
}

.triptych-roman {
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--parchment);
  line-height: 1;
}

.triptych-wing.active .triptych-roman {
  color: var(--gold-accent);
}

/* Collapsed state preview */
.triptych-sealed-info {
  margin: auto 0;
  padding: 0 0.4rem;
  transition: opacity 0.3s ease;
}

.triptych-wing.active .triptych-sealed-info {
  display: none;
}

.triptych-sealed-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--parchment);
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.triptych-sealed-hint {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--parchment-muted);
}

/* Expanded state content */
.triptych-open-content {
  display: none;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  text-align: left;
  width: 100%;
  margin: auto;
  padding: 1rem 1.4rem;
  animation: fadeInWing 0.55s ease forwards;
}

.triptych-wing.active .triptych-open-content {
  display: grid;
}

@keyframes fadeInWing {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.triptych-cover-box {
  width: 155px;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--parchment-dim);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85);
}

.triptych-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.triptych-mystery-cover {
  padding: 1rem;
  text-align: center;
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--parchment-dim);
}

.triptych-details {
  min-width: 0;
}

.triptych-details .status-pill {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-accent);
  margin-bottom: 0.4rem;
}

.triptych-details h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.triptych-details p {
  font-size: 0.92rem;
  color: var(--parchment-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.triptych-footer-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--parchment-muted);
}

/* ─── CONCEPT 2: 3D Tarot / Relic Card Flip Spread ─── */
.tarot-spread {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.tarot-card {
  perspective: 1200px;
  height: 490px;
  cursor: pointer;
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.tarot-card.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1.5px solid var(--parchment);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  background: linear-gradient(160deg, #111818 0%, #070909 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
}

.tarot-face::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--parchment-dim);
  border-radius: 9px;
  pointer-events: none;
}

.tarot-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #172625 0%, #090C0C 100%);
}

.tarot-arcana {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-accent);
}

.tarot-art-window {
  width: 175px;
  height: 255px;
  border: 1px solid var(--parchment-dim);
  border-radius: 88px 88px 6px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #060808;
  position: relative;
}

.tarot-art-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarot-sigil {
  font-family: var(--font-title);
  font-size: 3.6rem;
  color: var(--parchment);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.tarot-card-title {
  font-family: var(--font-title);
  font-size: 1.85rem;
  color: var(--parchment);
  line-height: 1.1;
}

.tarot-flip-prompt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--parchment-muted);
}

/* ─── CONCEPT 3: "The Three Depths" Descending Water Timeline ─── */
.depths-timeline {
  position: relative;
  max-width: 880px;
  margin: 2.5rem auto 1rem;
  padding: 1rem 0;
}

/* Central gilded depth spine */
.depths-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--parchment) 10%,
    var(--gold-accent) 50%,
    var(--parchment) 90%,
    transparent
  );
  transform: translateX(-50%);
}

.depth-node {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin: 2.8rem 0;
}

.depth-medallion {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  background: var(--ink);
  border: 1.5px solid var(--parchment);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}

.depth-node:hover .depth-medallion {
  background: var(--parchment);
  transform: rotate(45deg) scale(1.1);
}

.depth-medallion span {
  transform: rotate(-45deg);
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--parchment);
}

.depth-node:hover .depth-medallion span {
  color: var(--ink);
}

.depth-card {
  border: 1px solid var(--parchment-dim);
  padding: 1.8rem 2rem;
  background: linear-gradient(145deg, rgba(23, 38, 37, 0.22), rgba(8, 9, 9, 0.92));
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.depth-node:hover .depth-card {
  border-color: var(--parchment);
  transform: translateY(-3px);
}

.depth-fathom {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-accent);
  margin-bottom: 0.4rem;
}

.depth-card h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}

.depth-card p {
  font-size: 0.95rem;
  color: var(--parchment-muted);
  margin-bottom: 0;
}

.depth-empty {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--parchment-dim);
}

@media (max-width: 860px) {
  .triptych-altar {
    flex-direction: column;
  }
  .triptych-open-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .triptych-cover-box {
    margin: 0 auto;
  }
  .tarot-spread {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .depths-timeline::before {
    left: 24px;
  }
  .depth-node {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }
  .depth-empty {
    display: none;
  }
}

/* ─── Footer Inside Frame ─── */
.site-footer {
  text-align: center;
  padding: 3.5rem 1rem 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--parchment-faint);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--parchment-dim);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--parchment);
  transition: all 0.25s ease;
}

.social-link:hover {
  background: var(--parchment);
  color: var(--ink);
  border-color: var(--parchment);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-copy {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--parchment-muted);
}

/* ─── Responsive ─── */
@media (max-width: 820px) {
  :root {
    --frame-inset: 10px;
  }

  .hero-book-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.4rem;
    gap: 2rem;
  }

  .showcase-title-logo,
  .triptych-title-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .showcase-tagline {
    border-left: none;
    padding-left: 0;
  }

  .button-group {
    justify-content: center;
  }

  .authors-grid {
    grid-template-columns: 1fr;
  }

  .botanical-corner {
    width: 48px;
    height: auto;
  }

  .page-shell {
    padding: calc(var(--frame-inset) + 3rem) calc(var(--frame-inset) + 1rem) 2.5rem;
  }
}
