/* Bádatelia Pravdy — shared stylesheet. Tokens per brand-spec.md (PRD §4). */

:root {
  --bg:      oklch(0.985 0.008 90);
  --surface: oklch(0.965 0.012 88);
  --fg:      oklch(0.24 0.02 260);
  --muted:   oklch(0.48 0.02 260);
  --border:  oklch(0.88 0.015 85);
  --accent:  oklch(0.62 0.10 80);
  --accent-deep: oklch(0.50 0.09 80);
  --michael: oklch(0.52 0.19 25);
  --gabriel: oklch(0.58 0.13 240);
  --rafael:  oklch(0.50 0.14 300);
  --uriel:   oklch(0.72 0.02 260);
  --rose:    oklch(0.72 0.10 10);

  --font-display: "Cormorant Garamond", "Cormorant-fb", Georgia, serif;
  --font-body: "Source Serif 4", "SS4-fb", Georgia, serif;
  /* mono = системный стек (без веб-шрифта): только IBAN/платежи и мелкие подписи */
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Типо-шкала: 5 размеров тела + клампы заголовков (см. h2/h3 ниже) */
  --text-xs: 0.85rem;    /* капс-метки, подписи, легал */
  --text-sm: 0.9375rem;  /* вторичный UI, метаданные */
  --text-md: 1.0625rem;  /* текст компонентов (toc, notice, формы) */
  --text-base: 1.125rem; /* основной текст */
  --text-lg: 1.25rem;    /* лид, письма, цитаты */
  --tracking-caps: 0.08em; /* трекинг для всех капс-меток */

  --measure: 70ch;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  /* Výška sticky hlavičky (min-height 4.25rem + orámovanie) — používa sa
     pre scroll-margin-top ankorov, aby ciele neboli skryté za hlavičkou. */
  --header-h: 4.375rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Ankorová navigácia: každý cieľ (nadpisy sekcií, accordion, …) musí
   pristáť POD sticky hlavičkou, nie za ňou. Platí aj pre skok z inej
   stránky a pre TOC odkazy na tej istej stránke. */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 92%, white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.site-header__inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}

.site-brand .brand-text { display: block; line-height: 1.05; }
.site-brand .brand-sign {
  width: auto;
  height: 2rem;
  flex: none;
  object-fit: contain;
}

.site-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.7rem;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--accent-deep); }

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  min-height: 44px;
}

@media (max-width: 860px) {
  .site-header__inner { flex-wrap: wrap; padding-block: 0.6rem; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open {
    display: block;
    padding-bottom: 0.75rem;
    /* Menu scrolls by itself when dropdowns make it taller than the screen;
       page behind must not scroll instead (overscroll-behavior: contain). */
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.7rem 0.25rem; font-size: var(--text-md); border-bottom: 1px solid var(--border); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
}

/* ---------- Nav dropdown submenus ---------- */
/* Desktop: hover/focus reveals an absolute panel. Mobile: a CSS-only caret
   toggles the panel (the page link itself still navigates). */
.site-nav .has-dropdown { position: relative; }
.site-nav .nav-dd-state {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.site-nav .nav-dd-caret { display: none; }
.site-nav .has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.4rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  transform: translateY(1px);
  opacity: 0.65;
}
.site-nav .nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 17rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.28);
  display: none;
  z-index: 50;
}
.site-nav .nav-dropdown a {
  display: block;
  padding: 0.5rem 0.95rem;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  border-bottom: none;
  line-height: 1.3;
}
.site-nav .nav-dropdown a:hover {
  color: var(--accent-deep);
  background: color-mix(in oklab, var(--accent) 9%, transparent);
}
/* :hover only for pointers that can really hover. On touch screens a tap
   leaves a sticky emulated :hover on the <li>, which would keep the panel
   open after the mobile caret closes it. Keyboard focus still reveals it. */
@media (hover: hover) {
  .site-nav .has-dropdown:hover > .nav-dropdown { display: block; }
}
.site-nav .has-dropdown:focus-within > .nav-dropdown { display: block; }

@media (max-width: 860px) {
  .site-nav .has-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .site-nav .has-dropdown > a { flex: 1 1 auto; padding-right: 0.5rem; }
  .site-nav .has-dropdown > a::after { display: none; }
  .site-nav .nav-dd-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    min-height: 44px;
    color: var(--muted);
    cursor: pointer;
  }
  .site-nav .nav-dd-caret::after {
    content: "";
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transform: translateY(2px);
    transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .site-nav .nav-dd-state:checked + .nav-dd-caret::after {
    transform: translateY(-2px) rotate(180deg);
  }
  .site-nav .nav-dropdown {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0.2rem 0;
    margin: 0;
    background: none;
    display: none;
  }
  /* On the mobile nav only the caret checkbox may show the panel: a tap
     leaves a sticky :hover on the <li> and may focus the hidden checkbox
     via its label, both of which would keep the panel open. */
  .site-nav .has-dropdown:hover > .nav-dropdown,
  .site-nav .has-dropdown:focus-within > .nav-dropdown { display: none; }
  .site-nav .nav-dd-state:checked ~ .nav-dropdown { display: block; }
  .site-nav .nav-dropdown a {
    padding: 0.5rem 0.25rem 0.5rem 1.5rem;
    font-size: var(--text-sm);
    color: var(--muted);
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- Page scaffold ---------- */

.page {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--pad-x) 4rem;
}

.prose {
  max-width: var(--measure);
  margin-inline: auto;
}

.page-hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.page-hero .hero-kicker {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1rem;
}

.page-hero .hero-sub {
  color: var(--muted);
  font-size: var(--text-base);
  max-width: 46ch;
  margin: 0 auto;
}

/* Background hero photo on inner pages (mirrors .home-hero) */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, oklch(0.985 0.008 90 / 0.32), oklch(0.985 0.008 90 / 0.86));
  z-index: 1;
}
.page-hero > :not(.hero-photo) {
  position: relative;
  z-index: 2;
}

h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 2.75em 0 0.6em;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.45rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

hr.rule {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3.5rem auto;
  max-width: var(--measure);
}

/* Ornamental divider — small five-pointed star */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--measure);
  margin: 3.5rem auto;
  color: var(--accent);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider svg { width: 18px; height: 18px; flex: none; }
.divider .sign { width: auto; height: 1.5rem; flex: none; }

/* ---------- Signature quote block ---------- */

blockquote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1.55;
  color: color-mix(in oklab, var(--fg) 88%, var(--accent-deep));
}

blockquote p { margin-bottom: 0.9em; }
blockquote cite, .quote-source {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Акцент в тексте без курсива: вертикально, плотнее */
em, i { font-style: normal; font-weight: 600; }

/* ---------- Letter block ---------- */

.letter {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.7;
}

.letter .signature {
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ---------- Vows ---------- */

.vows {
  list-style: none;
  counter-reset: vow;
  margin: 2rem 0;
  padding: 0;
}

.vows li {
  counter-increment: vow;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: var(--text-base);
}

.vows li::before {
  content: counter(vow);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--accent);
  text-align: center;
}

/* ---------- Prayer ---------- */

.prayer {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 4rem auto;
  max-width: 55ch;
}

.prayer p { margin-bottom: 1.6em; }

/* ---------- Cards & tiles ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  margin: 2rem 0;
}

.card > h3:first-child, .card > h4:first-child { margin-top: 0; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.4rem;
}

.tile h3 { margin: 0 0 0.5rem; font-size: 1.4rem; }

/* Archangel cards — colour comes from the content itself */
.arch-card { border-top: 3px solid var(--arch, var(--border)); }
.arch-card .arch-vibe {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.arch-card .arch-vibe .swatch {
  width: 0.85rem; height: 0.85rem; border-radius: 50%;
  background: var(--arch); flex: none;
  border: 1px solid color-mix(in oklab, var(--arch) 70%, black);
}

.swatch-inline {
  display: inline-block;
  width: 0.8em; height: 0.8em; border-radius: 50%;
  vertical-align: baseline;
  margin-right: 0.3em;
  border: 1px solid var(--border);
}

/* ---------- Notice panels ---------- */

.notice {
  border: 1px solid var(--border);
  border-top: 3px solid var(--uriel);
  background: color-mix(in oklab, var(--surface) 60%, var(--bg));
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 2.5rem 0;
  font-size: var(--text-md);
}

.notice > h3:first-child { margin-top: 0; font-size: 1.4rem; }

/* ---------- Accordion (details) ---------- */

details.qa {
  border-bottom: 1px solid var(--border);
}

details.qa summary {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1.15rem 2.5rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

details.qa summary::-webkit-details-marker { display: none; }

details.qa summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--accent);
}

details.qa[open] summary::after { content: "−"; }

details.qa .qa-body { padding: 0 0 1.75rem; }

/* ---------- TOC ---------- */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  margin: 2.5rem 0;
  font-size: var(--text-md);
}

.toc strong {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.toc ol {
  margin: 0; padding: 0 0 0 1.2rem;
  columns: 2; column-gap: 2rem;
}
.toc li { padding: 0.15rem 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Checklist (introspection questions) ---------- */

.checklist {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.checklist li {
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 1.45rem;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

/* ---------- Footnote panel ---------- */

.footnote-panel {
  font-size: var(--text-sm);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.3rem 1.5rem;
  margin: 2rem 0;
}
.footnote-panel p:last-child, .footnote-panel ul:last-child { margin-bottom: 0; }

/* ---------- Fact box / event panel ---------- */

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2.5rem;
  align-items: start;
  max-width: 76rem;
}

@media (max-width: 960px) { .event-layout { grid-template-columns: 1fr; } }

.fact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 1.6rem;
  position: sticky;
  top: 5.5rem;
}

.fact-box h3 { margin: 0 0 1rem; font-size: 1.4rem; }

.fact-box dl { margin: 0; }
.fact-box dt {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.85rem;
}
.fact-box dd { margin: 0.1rem 0 0; font-weight: 600; }

.payment {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.05rem 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.payment dt { color: var(--muted); font-size: var(--text-xs); letter-spacing: 0.04em; margin-top: 0.45rem; }
.payment dd { margin: 0; font-weight: 500; }

/* Payment details + PAY by square QR */
.payment-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 1.5rem;
  align-items: start;
  margin: 1.5rem 0;
}
.payment-block .payment { margin: 0; }
.payment-block .payment-qr {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.9rem;
  width: max-content;
  max-width: 100%;
}
.payment-qr img { width: 200px; height: 200px; display: block; }
.payment-block .payment-qr figcaption {
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: center;
  max-width: 28ch;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .payment-block { grid-template-columns: 1fr; justify-items: center; }
  .payment-block .payment { width: 100%; }
}

/* ---------- Contact form ---------- */

.contact-form { margin: 2rem 0; }

.contact-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 1.3rem 0 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: white;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  min-height: 44px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form textarea { min-height: 10rem; resize: vertical; }

.contact-form button {
  margin-top: 1.6rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: white;
  background: var(--accent-deep);
  border: none;
  border-radius: 3px;
  padding: 0.85rem 2.4rem;
  min-height: 48px;
  cursor: pointer;
  box-shadow: 0 1px 2px oklch(0.3 0.03 80 / 0.35), 0 3px 8px oklch(0.3 0.03 80 / 0.15);
}

.contact-form button:hover { background: color-mix(in oklab, var(--accent-deep) 88%, black); }
.contact-form button:active { transform: translateY(1px); box-shadow: 0 1px 2px oklch(0.3 0.03 80 / 0.3); }

.form-status { font-size: var(--text-md); color: var(--accent-deep); margin-top: 1rem; }

/* ---------- Definition list of coordinators ---------- */

.coordinators { margin: 2rem 0; }
.coordinators dt {
  font-weight: 600;
  margin-top: 1.2rem;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}
.coordinators dd { margin: 0.2rem 0 0; font-size: var(--text-sm); }

/* ---------- Article share bar ---------- */

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 1.5rem 0 0.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.share-bar__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-right: 0.2rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.3rem 0.65rem;
  min-height: 32px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.share-btn:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  box-shadow: 0 2px 10px oklch(0.25 0.03 80 / 0.08);
}
.share-btn:active { transform: translateY(1px); }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-btn__icon {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentColor;
  flex: none;
}
@media (max-width: 560px) {
  /* Icon-only share buttons on phones — text spans hidden, aria-labels stay.
     The "Zdieľať" label stays visible before the icon buttons (as on desktop). */
  .share-btn {
    padding: 0;
    width: 42px;
    height: 42px;
    justify-content: center;
    border-radius: 6px;
  }
  .share-btn > span { display: none; }
  .share-btn__icon { width: 1.05rem; height: 1.05rem; }
}

/* Page-level bar (shares the page URL) — same centered column as the prose */
.share-bar--page {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2.5rem var(--pad-x) 3rem;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.site-footer .ornament { color: var(--accent); margin-bottom: 1rem; }
.site-footer .ornament svg { width: 26px; height: 26px; }
.site-footer .ornament .sign { width: auto; height: 1.9rem; }

/* ---------- Utilities ---------- */

.center { text-align: center; }
.small { font-size: var(--text-sm); color: var(--muted); }
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

.lead { font-size: var(--text-lg); }

.ornament-bg {
  position: relative;
  overflow: hidden;
}

.ornament-bg .symbol-of-life {
  position: absolute;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(16rem, 30vw, 24rem);
  opacity: 0.1;
  pointer-events: none;
  color: var(--accent-deep);
}

@media (max-width: 760px) {
  .ornament-bg .symbol-of-life { display: none; }
}

/* ---------- Content figures & images ---------- */

/* Centered editorial figure inside prose */
.prose figure {
  margin: 2.2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
}
.prose figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}
.prose figcaption {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  max-width: 46ch;
  line-height: 1.45;
}
.figure-sm img { max-width: 12rem; }
.figure-md img { max-width: 26rem; }

/* Floated portrait beside text — wrapper contains the float */
.media-row { display: flow-root; }
.figure-inline {
  float: right;
  width: clamp(7rem, 24vw, 9.5rem);
  margin: 0.3rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.figure-inline img { width: 100%; height: auto; border: 1px solid var(--border); }
.figure-inline figcaption {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}
@media (max-width: 560px) {
  .figure-inline {
    float: none;
    width: clamp(7rem, 42vw, 9rem);
    margin: 1.4rem auto;
  }
}

/* Archangel card portrait */
.arch-card .arch-img {
  width: 100%;
  height: auto;
  max-height: 24rem;
  object-fit: contain;
  display: block;
  margin: 0 0 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 50%, var(--bg));
}
