/* 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", "Georgia", serif;
  --font-body: "Source Serif 4", "Georgia", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --measure: 70ch;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  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 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}

.site-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  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: 0.9rem;
  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: 0.85rem;
  letter-spacing: 0.06em;
  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; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.7rem 0.25rem; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
}

/* ---------- 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.2rem, 5.5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

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

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

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.7rem, 3.2vw, 2.15rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.2rem; }

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; }

/* ---------- 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-style: italic;
  font-size: 1.17em;
  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-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---------- 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-style: italic;
  font-size: 1.14rem;
  line-height: 1.7;
}

.letter .signature {
  font-style: italic;
  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: 1.05rem;
}

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

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

.prayer {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.8;
  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.3rem; }

/* Archangel cards — colour comes from the content itself */
.arch-card { border-top: 3px solid var(--arch, var(--border)); }
.arch-card .arch-vibe {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  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: 0.98rem;
}

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

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

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

details.qa summary {
  font-family: var(--font-display);
  font-size: 1.45rem;
  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: 0.95rem;
}

.toc strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  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: 0.9rem;
  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.35rem; }

.fact-box dl { margin: 0; }
.fact-box dt {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  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: 0.86rem;
  line-height: 1.7;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

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

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

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

.contact-form label {
  display: block;
  font-size: 0.85rem;
  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: 0.95rem; 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: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.coordinators dd { margin: 0.2rem 0 0; }

/* ---------- 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: 0.88rem;
  letter-spacing: 0.02em;
}

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

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

.center { text-align: center; }
.small { font-size: 0.9rem; color: var(--muted); }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

.lead { font-size: 1.15rem; }

.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; }
}
