:root {
  color-scheme: dark;
  --bg: #0c0a0d;
  --surface: #161217;
  --surface-2: #1f1921;
  --text: #f0e8dc;
  --muted: #b8ab9c;
  --primary: #a31f34;
  --primary-hover: #871829;
  --accent: #d4a853;
  --border: #352b2e;
  --gold-hairline: rgba(212, 168, 83, 0.30);
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .08);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--text); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 50;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Seamless Minimal Masthead */
.site-header {
  position: relative;
  z-index: 20;
  background: rgba(12, 10, 13, 0.78);
  border-bottom: 1px solid rgba(53, 43, 46, 0.55);
}
.header-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.brand-link img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-block: 8px;
}
.site-nav a:hover { color: var(--accent); }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}
h1 { font-size: 36px; letter-spacing: 0.05em; }
h2 { font-size: 28px; letter-spacing: 0.02em; }
h3 { font-size: 18px; letter-spacing: 0.02em; }
p { margin: 0 0 16px; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   Seamless Full-Bleed Obsidian Cathedral Hero (Zero Boxes)
   ========================================================= */
.sanctuary-hero {
  position: relative;
  overflow: hidden;
  padding-top: 12px;
  padding-bottom: 24px;
  background: var(--bg);
}

/* Slow breathing overhead & nave candlelight wash */
.sanctuary-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 46% at 50% 56%, rgba(163, 31, 52, 0.24) 0%, rgba(212, 168, 83, 0.09) 42%, rgba(12, 10, 13, 0) 76%),
    radial-gradient(ellipse 40% 34% at 50% 8%, rgba(212, 168, 83, 0.08) 0%, rgba(12, 10, 13, 0) 70%);
  animation: sanctuary-breathe 7s ease-in-out infinite;
}
@keyframes sanctuary-breathe {
  0%, 100% { opacity: 0.72; }
  38% { opacity: 1; }
  68% { opacity: 0.80; }
}

/* Ultra-light floating candlelight dust motes */
.cathedral-embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-head {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.hero-epigraph {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 4px;
}
.hero-tagline {
  margin: 6px auto 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 72ch;
}

/* Borderless Full-Bleed Stage — Rose Window Expands Edge-to-Edge */
.sanctuary-stage-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: -10px auto 0;
}
.player-stage {
  position: relative;
  width: 100%;
  height: clamp(480px, 66vh, 660px);
  background: transparent;
}
.player-stage[data-gf-state] {
  background: var(--bg);
}
.player-stage:fullscreen {
  width: 100%;
  height: 100%;
  background: var(--bg);
}
.player-cover, .player-loader, .player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.player-stage iframe {
  border: 0;
  display: block;
  background: var(--bg);
}

/* Seamless Full-Bleed Cathedral Rose Window Cover */
.player-cover {
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Silky multi-stop alpha dissolve on all 4 edges so the rose window emerges organically out of the ambient candlelight with zero seam */
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.08) 6%,
      rgba(0, 0, 0, 0.28) 14%,
      rgba(0, 0, 0, 0.62) 22%,
      rgba(0, 0, 0, 0.90) 30%,
      rgba(0, 0, 0, 1) 38%,
      rgba(0, 0, 0, 1) 72%,
      rgba(0, 0, 0, 0.85) 80%,
      rgba(0, 0, 0, 0.48) 89%,
      rgba(0, 0, 0, 0.14) 95%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.55) 6%,
      rgba(0, 0, 0, 1) 14%,
      rgba(0, 0, 0, 1) 86%,
      rgba(0, 0, 0, 0.55) 94%,
      rgba(0, 0, 0, 0) 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.08) 6%,
      rgba(0, 0, 0, 0.28) 14%,
      rgba(0, 0, 0, 0.62) 22%,
      rgba(0, 0, 0, 0.90) 30%,
      rgba(0, 0, 0, 1) 38%,
      rgba(0, 0, 0, 1) 72%,
      rgba(0, 0, 0, 0.85) 80%,
      rgba(0, 0, 0, 0.48) 89%,
      rgba(0, 0, 0, 0.14) 95%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.55) 6%,
      rgba(0, 0, 0, 1) 14%,
      rgba(0, 0, 0, 1) 86%,
      rgba(0, 0, 0, 0.55) 94%,
      rgba(0, 0, 0, 0) 100%
    );
  mask-composite: intersect;
  /* Softly breathe brightness like flickering stained-glass candlelight */
  animation: glass-flicker 6.4s ease-in-out infinite;
}
@keyframes glass-flicker {
  0%, 100% { filter: brightness(0.92) saturate(1.02); }
  25% { filter: brightness(1.06) saturate(1.10); }
  52% { filter: brightness(0.86) saturate(0.98); }
  78% { filter: brightness(1.03) saturate(1.08); }
}

/* Optical candlelight shimmer passing through the stained-glass petals */
.stained-glass-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 50% 48%, rgba(212, 168, 83, 0.24) 0%, rgba(163, 31, 52, 0.16) 28%, rgba(12, 10, 13, 0) 56%);
  animation: petal-glow 5.6s ease-in-out infinite;
}
@keyframes petal-glow {
  0%, 100% { opacity: 0.45; transform: scale(0.97); }
  35% { opacity: 0.92; transform: scale(1.05); }
  66% { opacity: 0.55; transform: scale(0.99); }
}

/* Subtle center-medallion contrast scrim only (edge blending is handled seamlessly by alpha mask above) */
.cover-feather {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 36% 28% at 50% 50%, rgba(12, 10, 13, 0.62) 0%, rgba(12, 10, 13, 0.16) 62%, rgba(12, 10, 13, 0) 100%);
}

/* Unboxed Floating CTA hovering directly in the Rose Window's Obsidian Center */
.cover-cta-floating {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 16px 24px;
  max-width: 560px;
}
.cover-meta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.cover-note {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: var(--text);
  opacity: 0.88;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-hairline);
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-primary:active { transform: translateY(1px); }
.btn-wax-seal {
  min-height: 54px;
  padding: 14px 36px;
}

/* Ritual 7-Sigil In-Place Loader */
.player-loader {
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 4;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.rose-loader { width: 84px; height: 84px; }
.rose-ring {
  transform-origin: 50px 50px;
  animation: slow-turn 10s linear infinite;
}
.sigil-dot { animation: candle-pulse 1.4s ease-in-out infinite; }
.sigil-dot:nth-child(2) { animation-delay: 0.2s; }
.sigil-dot:nth-child(3) { animation-delay: 0.4s; }
.sigil-dot:nth-child(4) { animation-delay: 0.6s; }
.sigil-dot:nth-child(5) { animation-delay: 0.8s; }
.sigil-dot:nth-child(6) { animation-delay: 1.0s; }
.sigil-dot:nth-child(7) { animation-delay: 1.2s; }
@keyframes slow-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes candle-pulse {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 1; }
}
.loader-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.loader-sub {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

/* Minimal Hairline Action Bar Beneath Full-Bleed Sanctuary */
.player-toolbar {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin: 12px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(53, 43, 46, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.btn-outline[data-gf-liked],
.btn-outline[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--accent);
  color: #ffffff;
}
[data-gf-like-count]:empty,
[data-gf-comment-count]:empty { display: none; }
.share-status { font-size: 14px; color: var(--accent); }
.share-status:empty { display: none; }

/* Classical Ornamental Divider */
.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
  color: var(--accent);
  font-size: 14px;
}
.section-ornament::before,
.section-ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

/* Content Sections */
.content-section { padding-block: 48px; }
.section-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-heading { margin-bottom: 16px; }

/* Layout 1: Asymmetric Split */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.figure-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.figure-card img { border-radius: 4px; width: 100%; }
.figure-card figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

/* Layout 2: 4-Step Classical Ritual Rail */
.steps-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.step-item p { font-size: 14px; color: var(--muted); }

/* Layout 3: Compact Homepage 7-Sin Quick Directory */
.section-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.section-links .btn-outline { text-decoration: none; }
.sin-index-grid {
  list-style: none;
  counter-reset: sin-num;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sin-index-card {
  counter-increment: sin-num;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sin-index-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.sin-index-link {
  display: grid;
  gap: 10px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.sin-index-link:hover { color: inherit; }
.sin-index-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sin-index-top .virtue-seal { margin-left: auto; }
.sin-index-roman {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  min-width: 36px;
}
.sin-index-roman::before { content: counter(sin-num, upper-roman); }
.sin-index-top h3 { font-size: 18px; margin-bottom: 2px; }
.codex-latin {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}
.codex-copy { font-size: 14px; color: var(--muted); margin: 0; }
.virtue-seal {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--gold-hairline);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.faq-cta-line {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

/* Layout 4: Editorial 2-Column Scoring & Tips */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}
.tips-heading { margin-top: 24px; margin-bottom: 12px; }
.tips-list {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 12px;
}
.tips-list li { max-width: 65ch; color: var(--muted); }
.tips-list strong { color: var(--text); }

/* Layout 5: Gilded FAQ Accordion */
.faq-list { margin-top: 24px; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 24px;
}
.faq-item summary {
  list-style: none;
  padding-block: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding-bottom: 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Layout 6: Discussion & Comments */
.comments-wrap { width: 100%; }
.comments-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.comment-count-badge {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.comment-form {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 16px;
}
.field-group { display: grid; gap: 8px; }
.field-group label { font-size: 14px; font-weight: 600; color: var(--text); }
.field-group label span { font-weight: 400; color: var(--muted); }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
.comment-form input { max-width: 380px; }
.comment-form textarea { resize: vertical; min-height: 96px; }
.comment-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--gold-hairline);
  font-size: 14px;
}
.comment-form:not([data-gf-replying]) .reply-banner { display: none; }
.comment-msg { margin: 0; font-size: 14px; color: var(--accent); }
.comment-msg:empty { display: none; }

.comments-list { margin-top: 24px; display: grid; gap: 12px; }
.comments-empty {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}
.comments-list:not([data-gf-empty]) .comments-empty { display: none; }
.comments-off {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  display: none;
}
.comments-list[data-gf-off] .comments-off { display: block; }

.comment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  overflow-wrap: anywhere;
}
.comment-card[data-gf-owner] {
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 14px;
}
.comment-author { font-weight: 600; color: var(--text); }
.owner-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: #ffffff;
}
.owner-badge:empty { display: none; }
.comment-time { font-size: 12px; color: var(--muted); }
.comment-to { font-size: 12px; color: var(--accent); font-weight: 600; }
.comment-to:empty { display: none; }
.comment-body { margin: 0 0 8px; color: var(--text); }
.reply-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 4px 12px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 600;
}
.reply-btn:hover { color: var(--text); border-color: var(--accent); }
.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 8px;
}
.comment-replies:empty { display: none; }

/* Inner & Legal Pages */
.prose-page { padding-block: 48px 64px; max-width: 820px; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-toc {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-toc-label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-toc-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}
.article-toc-links a:hover { border-color: var(--accent); color: var(--accent); }
.prose-body { margin-top: 24px; }
.prose-body h2 { margin-top: 32px; margin-bottom: 12px; font-size: 22px; }
.prose-body h3 { margin-top: 24px; margin-bottom: 8px; font-size: 18px; }
.prose-body ul, .prose-body ol { margin: 0 0 16px; padding-left: 24px; color: var(--muted); }
.prose-body li { margin-bottom: 8px; }
.prose-body p { color: var(--muted); }
.prose-body strong { color: var(--text); }
.article-cta {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.article-cta p { color: var(--muted); margin: 0; }
.article-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 32px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}
.footer-brand p { font-size: 14px; color: var(--muted); margin: 0; }
.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

/* Tablet */
@media (max-width: 960px) {
  .split-grid, .editorial-grid { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .header-inner {
    position: relative;
    min-height: 52px;
    padding-block: 6px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }
  .brand-link { font-size: 15px; gap: 8px; }
  .brand-link img { width: 28px; height: 28px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--gold-hairline);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    font-size: 14px;
    padding: 12px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: 0; }

  .sanctuary-hero { padding-top: 12px; padding-bottom: 24px; }
  .hero-head { margin-bottom: 0; }
  .hero-epigraph { font-size: 12px; letter-spacing: 0.2em; margin-bottom: 4px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hero-tagline { font-size: 14px; margin-top: 6px; }

  .sanctuary-stage-wrap { margin-top: -4px; }
  .player-stage {
    height: 500px;
    min-height: 480px;
  }
  .cover-feather {
    background:
      radial-gradient(ellipse 68% 40% at 50% 50%, rgba(12, 10, 13, 0.68) 0%, rgba(12, 10, 13, 0.18) 66%, rgba(12, 10, 13, 0) 100%);
  }
  .cover-cta-floating { padding: 12px 16px; gap: 12px; width: 100%; }
  .cover-meta { font-size: 12px; letter-spacing: 0.12em; }
  .btn-wax-seal, .comment-form .btn-primary { width: 100%; }

  .player-toolbar { padding-top: 12px; gap: 8px; }
  .toolbar-group { width: 100%; }
  .toolbar-group .btn-outline { flex: 1 1 auto; padding: 8px 10px; font-size: 13px; }

  .steps-list, .sin-index-grid { grid-template-columns: 1fr; }
  .sin-index-link { padding: 16px; }
  .section-links .btn-outline { width: 100%; }
  .article-cta .btn-primary { width: 100%; }

  .faq-item { padding: 0 16px; }
  .faq-item summary { font-size: 16px; }
  .content-section { padding-block: 32px; }
  .comment-form { padding: 16px; }
  .comment-card { padding: 16px; }
  .section-ornament { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rose-ring, .sigil-dot, .sanctuary-ambient, .player-cover img, .stained-glass-light { animation: none; }
  .cathedral-embers { display: none; }
}
