/* ============================================================
   NEO-CATHOLICISM — shared design system
   Bone / charcoal / restrained red · Cormorant Garamond + Inter
   ============================================================ */

:root {
  --bone: #F5F1E8;
  --bone-deep: #EDE7D9;
  --ink: #1C1A16;
  --ink-soft: #4A453D;
  --muted: #6B6355; /* darkened from #7A7264 — was 3.8:1 on bone, below AA; now ~4.8:1 */
  --red: #7A2020;
  --red-soft: #C8836F;
  --hairline: rgba(28, 26, 22, 0.14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --measure: 66ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* anchor targets clear the fixed nav */
[id] { scroll-margin-top: 96px; }

/* progressive enhancement: if scripting is unavailable, reveal everything */
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--bone); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 6vw; }

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 6vw;
  transition: background 0.5s, box-shadow 0.5s, padding 0.5s;
}
nav.scrolled {
  background: rgba(245,241,232,0.93);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 14px 6vw;
  box-shadow: 0 1px 0 var(--hairline);
}
.wordmark {
  font-weight: 500; font-size: 12px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  z-index: 102;
}
.wordmark span { color: var(--red); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; font-weight: 400;
  transition: color 0.3s;
  padding: 14px 4px; margin: -14px -4px; /* 44px touch target without visual change */
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }

/* mobile menu */
.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); font-family: var(--sans); font-weight: 500; z-index: 102;
  padding: 8px 0;
}
.mobile-menu {
  position: fixed; inset: 0; background: var(--bone); z-index: 101;
  display: none; flex-direction: column; justify-content: center;
  padding: 0 8vw; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif); font-size: 34px; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a:hover { color: var(--red); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}

/* ---------- shared atoms ---------- */
.kicker {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
}
.section-label {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--red); font-weight: 500; margin-bottom: 52px;
  display: flex; align-items: center; gap: 20px;
}
.section-label::after { content: ''; height: 1px; width: 64px; background: var(--red); opacity: 0.4; }
.section-label.center { justify-content: center; }
.section-label.center::after { display: none; }

.text-cta {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); text-decoration: none;
  padding-bottom: 8px; border-bottom: 1px solid var(--ink);
  transition: color 0.3s, border-color 0.3s;
}
.text-cta:hover { color: var(--red); border-color: var(--red); }
.text-cta.quiet { color: var(--muted); border-color: var(--hairline); }
.text-cta.quiet:hover { color: var(--red); border-color: var(--red); }
.text-cta.light { color: var(--bone); border-color: var(--bone); }
.text-cta.light:hover { color: var(--red-soft); border-color: var(--red-soft); }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  padding: 200px 0 100px;
  border-bottom: 1px solid var(--hairline);
  position: relative; overflow: hidden;
}
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6vw, 84px); line-height: 1.05;
  letter-spacing: -0.015em; max-width: 18ch; margin-top: 32px;
}
.page-hero .standfirst {
  margin-top: 36px; max-width: 52ch; font-size: 17px;
  color: var(--ink-soft); line-height: 1.75;
}
.doc-meta {
  margin-top: 44px; display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* faint arc motif */
.arc-motif {
  position: absolute; top: -18vw; right: -14vw;
  width: 52vw; height: 52vw; pointer-events: none; opacity: 0.5;
}
.arc-motif circle { fill: none; stroke: var(--ink); stroke-width: 0.6; opacity: 0.1; }
.arc-motif .r { stroke: var(--red); opacity: 0.16; }

/* ---------- reading experience ---------- */
.reading { padding: 110px 0 60px; }
.reading-col { max-width: var(--measure); margin: 0 auto; }
.reading-col > p {
  font-size: 18px; line-height: 1.95; color: var(--ink-soft);
  margin-bottom: 1.9em; font-weight: 300;
}
.reading-col > p strong { color: var(--ink); font-weight: 500; }
.reading-col .lede {
  font-family: var(--serif); font-size: 26px; line-height: 1.55;
  color: var(--ink); margin-bottom: 2em;
}
.reading-col .lede::first-letter {
  font-size: 4.2em; float: left; line-height: 0.82;
  padding: 0.08em 0.12em 0 0; color: var(--red); font-weight: 500;
}
.reading-col h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3vw, 38px); line-height: 1.2;
  margin: 3.2em 0 1.1em;
}
.reading-col blockquote {
  font-family: var(--serif); font-style: italic; font-size: 24px;
  line-height: 1.5; color: var(--ink); margin: 2.6em 0;
  padding-left: 28px; border-left: 2px solid var(--red);
}
.stanza-break {
  display: flex; justify-content: center; gap: 14px;
  margin: 3.4em 0; color: var(--red); font-size: 14px; letter-spacing: 14px;
}
.stanza-break::before { content: '· · ·'; }

/* centered ceremonial reading (manifesto) */
.ceremony .reading-col { text-align: center; max-width: 58ch; }
.ceremony .reading-col > p { font-family: var(--serif); font-size: 21px; line-height: 1.8; color: var(--ink); }
.ceremony .reading-col > p.quiet { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.ceremony .reading-col blockquote { border: none; padding: 0; font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 720px) {
  /* centered long-form is fatiguing on narrow screens */
  .ceremony .reading-col { text-align: left; }
  .ceremony .reading-col blockquote { text-align: center; }
}

.epigraph {
  text-align: center; max-width: 44ch; margin: 0 auto 90px;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  line-height: 1.7; color: var(--muted);
}

/* ---------- the invitation (canonical block) ---------- */
.invitation { padding: 150px 0; text-align: center; border-top: 1px solid var(--hairline); }
.invitation .inner { display: flex; flex-direction: column; align-items: center; }
.invitation .pre {
  font-size: 16px; color: var(--ink-soft); max-width: 46ch;
  line-height: 2; margin: 0 auto;
}
.invitation .question {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.15;
  margin: 44px auto 0; max-width: 20ch; color: var(--ink);
}
.invitation .post {
  margin-top: 44px; font-size: 11.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--red); font-weight: 500;
}

/* ---------- next-step exit ---------- */
.next-step {
  border-top: 1px solid var(--hairline);
  padding: 72px 0 110px; text-align: center;
}
.next-step .hint { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.next-step a {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 44px); color: var(--ink);
  text-decoration: none; transition: color 0.3s;
}
.next-step a:hover { color: var(--red); }
.next-step .arrow { color: var(--red); margin-left: 12px; }

/* ---------- diagnosis rows ---------- */
.dx-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 32px;
  align-items: baseline; padding: 30px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none; color: inherit;
  transition: transform 0.4s ease; /* transform, not padding — no reflow */
}
.dx-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.dx-row:hover { transform: translateX(12px); }
@media (prefers-reduced-motion: reduce) { .dx-row:hover { transform: none; } }
.dx-num { font-family: var(--serif); font-size: 20px; color: var(--red); font-style: italic; }
.dx-title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; line-height: 1.2; }
.dx-line { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; font-weight: 300; }
.dx-read {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; transition: color 0.3s;
}
.dx-row:hover .dx-read { color: var(--red); }
@media (max-width: 720px) {
  .dx-row { grid-template-columns: 48px 1fr; }
  .dx-read { display: none; }
}

/* ---------- cards & grids ---------- */
.doc-card {
  background: var(--bone); padding: 56px 44px;
  text-decoration: none; color: inherit; display: block;
  transition: background 0.4s;
}
.doc-card:hover { background: var(--bone-deep); }
.doc-card .doc-index { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--red); display: block; margin-bottom: 20px; }
.doc-card h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; margin-bottom: 12px; }
.doc-card p { font-size: 15px; color: var(--muted); }
.doc-card .edition { display: block; margin-top: 24px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.hairline-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
}
@media (max-width: 720px) { .hairline-grid { grid-template-columns: 1fr; } }

/* ---------- journal ---------- */
.article { text-decoration: none; color: inherit; display: block; }
.article .cat { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); font-weight: 500; }
.article h4 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.25; margin: 16px 0 14px; transition: color 0.3s; }
.article:hover h4 { color: var(--red); }
.article p { font-size: 14.5px; color: var(--ink-soft); }
.article .date { font-size: 12px; color: var(--muted); margin-top: 18px; display: block; }

.featured-essay {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px;
  padding: 72px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  text-decoration: none; color: inherit; align-items: center;
}
.featured-essay h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 54px); line-height: 1.1; transition: color 0.3s; }
.featured-essay:hover h3 { color: var(--red); }
.featured-essay .excerpt { font-size: 16px; color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 820px) { .featured-essay { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- dark plate ---------- */
.plate-dark { background: var(--ink); color: var(--bone); padding: 150px 0; }
.plate-dark .section-label { color: var(--bone); opacity: 0.55; }
.plate-dark .section-label::after { background: var(--bone); }
.plate-dark .statement {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 5.4vw, 76px); line-height: 1.08;
  max-width: 18ch; letter-spacing: -0.01em;
}
.plate-dark .statement .accent { color: var(--red-soft); font-style: italic; }
.plate-dark .body { margin-top: 48px; max-width: 56ch; font-size: 17px; line-height: 1.8; color: rgba(245,241,232,0.75); }

/* ---------- newsletter ---------- */
.newsletter { margin: 0 auto; padding-top: 44px; border-top: 1px solid var(--hairline); width: min(480px, 88vw); }
.newsletter p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.newsletter form { display: flex; border-bottom: 1px solid var(--ink); }
.newsletter input { flex: 1; background: transparent; border: none; outline: none; padding: 12px 0; font-family: var(--sans); font-size: 14px; color: var(--ink); }
.newsletter input::placeholder { color: var(--muted); }
.newsletter button { background: transparent; border: none; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); cursor: pointer; font-weight: 500; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 56px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 14px 2px; margin: -14px -2px; }
.footer-links a:hover { color: var(--red); }
.footer-note { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- utility ---------- */
.bg-deep { background: var(--bone-deep); }
section { padding: 120px 0; }
section.tight { padding: 72px 0; }
