/* ============================================================
   CHURCH OF NORMAL — churchofnormal.com
   Shared cathedral stylesheet. Candle gold on near-black violet stone.
   A Minnesota nonprofit ministry. Built to stand alone, built to be read
   in a screen reader first.

   Tokens carried from normallikepeter.com/church/ so the two surfaces
   feel like one church on two doors.
   ============================================================ */

:root {
  --ground:       #171020;  /* page ground — cathedral night        */
  --ground-deep:  #100b18;  /* vignette / pooled darkness           */
  --stone:        #1f1530;  /* card surface — one candle brighter   */
  --stone-hi:     #271b3c;  /* card hover ceiling / gradients       */
  --warm-white:   #f4ecdd;  /* body text — candlelit vellum         */
  --warm-soft:    #d6cbbd;  /* secondary text                       */
  --dim:          #aa9ec0;  /* fine print, dates                    */
  --gold:         #d4af37;  /* liturgical gold — borders/large ONLY */
  --gold-bright:  #e8c75a;  /* heading gold — AA-safe on ground     */
  --gold-flare:   #f0d68a;  /* brightened gold for tiny mono — AA   */
  --glass-red:    #8e2f3c;  /* stained glass — decorative only      */
  --glass-violet: #5d4a8a;  /* stained glass — decorative only      */
  --glass-teal:   #2a6b62;  /* stained glass — decorative only      */
  --hairline:     rgba(244, 236, 221, .13);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body:  "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  --mono:  "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --ease: cubic-bezier(.33, .12, .25, 1);

  --maxw: 70rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 112.5%; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--warm-white);
  background-color: var(--ground);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* stone grain — pure CSS, decorative */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* candlelight at the altar, darkness pooling in the nave */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 52rem 24rem at 50% -6rem, rgba(212, 175, 55, .13), transparent 62%),
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, rgba(16, 11, 24, .9) 100%);
}

.con-topbar, main, footer { position: relative; z-index: 1; }

a { color: inherit; }
a:focus-visible {
  outline: 3px solid var(--gold-flare);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  z-index: 60;
  padding: .6rem 1.4rem;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--ground);
  background: var(--gold-bright);
  border-radius: 0 0 .6rem .6rem;
  text-decoration: none;
  transition: top .25s var(--ease);
}
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--warm-white);
  outline-offset: 3px;
}

/* ============================================================
   TOPBAR — the church's own nav (separate domain, own bar)
   ============================================================ */
.con-topbar {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.6vw, 1.3rem);
  flex-wrap: wrap;
  padding: .7rem clamp(1rem, 3.5vw, 2.4rem);
  background: linear-gradient(180deg, rgba(16, 11, 24, .96), rgba(23, 16, 32, .9));
  border-bottom: 1px solid rgba(212, 175, 55, .28);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .06em;
  position: sticky;
  top: 0;
}
.con-topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-right: .4rem;
}
.con-topbar .brand .mark {
  width: 1.55rem; height: 1.55rem;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: .9rem;
  flex-shrink: 0;
}
.con-topbar a.nav {
  color: var(--warm-soft);
  text-decoration: none;
  padding: .3rem .15rem;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.con-topbar a.nav:hover,
.con-topbar a.nav[aria-current="page"] {
  color: var(--gold-flare);
  border-bottom-color: var(--gold);
}
.con-topbar .spacer { flex: 1 1 auto; }
.con-topbar a.offsite {
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
}
.con-topbar a.offsite:hover { color: var(--gold-flare); }
.con-topbar a.offsite::before { content: "↪ "; }

/* ============================================================
   MASTHEAD — the rose window
   ============================================================ */
.masthead {
  position: relative;
  text-align: center;
  padding: clamp(2.6rem, 7vh, 4.6rem) 1.2rem clamp(1.6rem, 4vh, 2.6rem);
  max-width: 50rem;
  margin: 0 auto;
}
.masthead::before {
  content: "";
  position: absolute;
  top: clamp(.4rem, 2vh, 1.4rem);
  left: 50%;
  translate: -50% 0;
  width: clamp(15rem, 34vw, 22rem);
  height: clamp(15rem, 34vw, 22rem);
  border-radius: 50%;
  pointer-events: none;
  opacity: .16;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(212, 175, 55, .55) 0deg 6deg,
      transparent 6deg 30deg),
    radial-gradient(circle, transparent 30%, rgba(212, 175, 55, .35) 31%, transparent 33%),
    radial-gradient(circle, transparent 58%, rgba(212, 175, 55, .45) 59%, transparent 61%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle, #000 0%, transparent 72%);
}
.masthead > * { position: relative; }
.gate-kicker {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-flare);
  margin-bottom: 1rem;
}
.gate-kicker::before { content: "✠ "; }
.gate-kicker::after  { content: " ✠"; }
.masthead h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  letter-spacing: .01em;
  line-height: 1.04;
  color: var(--gold-bright);
  text-shadow: 0 0 32px rgba(212, 175, 55, .35);
}
.masthead .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  color: var(--warm-soft);
  margin-top: .9rem;
}
.masthead .lede {
  font-size: clamp(.98rem, 1.4vw, 1.06rem);
  color: var(--warm-soft);
  max-width: 36rem;
  margin: 1.3rem auto 0;
}
.masthead .lede strong { color: var(--warm-white); font-weight: 600; }

/* stained-glass divider — five leaded panes of light */
.glass-rule {
  display: block;
  width: clamp(10rem, 26vw, 17rem);
  height: 6px;
  margin: clamp(1.6rem, 3.5vh, 2.2rem) auto 0;
  border-radius: 3px;
  background:
    linear-gradient(90deg,
      var(--glass-violet) 0 19%,  var(--ground) 19% 20.5%,
      var(--glass-red)    20.5% 39.5%, var(--ground) 39.5% 41%,
      var(--gold)         41% 59%,    var(--ground) 59% 60.5%,
      var(--glass-teal)   60.5% 79.5%, var(--ground) 79.5% 81%,
      var(--glass-violet) 81% 100%);
  box-shadow: 0 0 18px rgba(212, 175, 55, .25);
}

/* ---------- layout shell ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 2.4rem);
}

/* ---------- row headers ---------- */
.row-head { margin: clamp(2.6rem, 5.5vh, 3.6rem) 0 1.3rem; }
.row-label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-flare);
  margin-bottom: .4rem;
}
.row-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1.12;
}
.row-rule {
  border: none;
  height: 1px;
  margin-top: .9rem;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, .15) 45%, transparent);
}

/* ============================================================
   WHAT WE BELIEVE — creed prose + the six tenets
   ============================================================ */
.believe {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 2.8rem);
  align-items: start;
}
.believe-prose p {
  color: var(--warm-soft);
  margin-bottom: 1rem;
  font-size: .99rem;
}
.believe-prose p strong { color: var(--warm-white); font-weight: 600; }
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--gold-bright);
  border-left: 3px solid var(--gold);
  padding: .35rem 0 .35rem 1.1rem;
  margin: 1.4rem 0;
}
.tenets {
  background: linear-gradient(170deg, var(--stone-hi) 0%, var(--stone) 65%);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.3rem, 2.8vw, 1.9rem);
}
.tenets-kicker {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-flare);
  margin-bottom: .9rem;
}
.tenets ol { list-style: none; counter-reset: tenet; }
.tenets li {
  counter-increment: tenet;
  display: flex;
  align-items: baseline;
  gap: .9rem;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: var(--warm-white);
  padding: .75rem 0;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.35;
}
.tenets li:last-child { border-bottom: 0; padding-bottom: .2rem; }
.tenets li::before {
  content: counter(tenet, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold-flare);
  min-width: 1.6rem;
}

/* ============================================================
   WHAT WE ARE NOT — clearing the air
   ============================================================ */
.not-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.not-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--stone);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--glass-violet);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}
.not-item .slash {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--gold-flare);
  flex-shrink: 0;
  margin-top: .1rem;
}
.not-item h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: .25rem;
  line-height: 1.25;
}
.not-item p { font-size: .88rem; color: var(--warm-soft); line-height: 1.55; }

/* ============================================================
   DOCTRINE TILES — entry into /believe/
   ============================================================ */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  background: linear-gradient(165deg, var(--stone-hi) 0%, var(--stone) 60%);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  border-radius: 11px;
  padding: 1.25rem 1.35rem 1.2rem;
  text-decoration: none;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .45), 0 0 28px rgba(212, 175, 55, .2), 0 14px 32px rgba(16, 11, 24, .55);
}
.tile:active { transform: translateY(-1px); }
.tile .tile-num {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold-flare);
}
.tile h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1.22;
}
.tile p { font-size: .86rem; color: var(--warm-soft); line-height: 1.5; flex: 1; }
.tile .tile-go {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 600;
  color: var(--gold-flare);
  margin-top: .2rem;
}

/* ============================================================
   SHELF / REFERRAL — the big outbound cards (SuperCluster, the Clinic)
   ============================================================ */
.shelf {
  position: relative;
  display: block;
  margin: clamp(1.4rem, 3vh, 2rem) 0 0;
  background: linear-gradient(160deg, var(--stone-hi) 0%, var(--stone) 55%);
  border: 2px solid rgba(212, 175, 55, .4);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.4rem, 3.5vw, 2.4rem);
  text-decoration: none;
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.shelf.clinic { border-color: rgba(42, 107, 98, .55); border-top-color: var(--glass-teal); }
.shelf::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 30rem 12rem at 85% -3rem, rgba(212, 175, 55, .12), transparent 65%);
}
.shelf:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .55), 0 0 44px rgba(212, 175, 55, .26), 0 18px 44px rgba(16, 11, 24, .6);
}
.shelf:active { transform: translateY(-1px); }
.shelf-kicker {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-flare);
  margin-bottom: .6rem;
}
.shelf h2, .shelf h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1.1;
  margin-bottom: .5rem;
}
.shelf-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--warm-white);
  margin-bottom: .5rem;
}
.shelf p { font-size: .95rem; color: var(--warm-soft); max-width: 40rem; }
.shelf-go {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold-flare);
  transition: transform .25s var(--ease);
}
.shelf:hover .shelf-go { transform: translateX(.35em); }
.offsite-tag {
  display: inline-block;
  margin-left: .6rem;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ground);
  background: var(--gold-flare);
  border-radius: 999px;
  padding: .12rem .55rem;
  vertical-align: middle;
}

/* ============================================================
   FROM THE PULPIT — sermons & dispatches
   ============================================================ */
.sermons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sermon-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  background: var(--stone);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--glass-red);
  border-radius: 10px;
  padding: 1.25rem 1.3rem 1.15rem;
  text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.sermon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .45), 0 0 26px rgba(212, 175, 55, .2), 0 12px 30px rgba(16, 11, 24, .55);
}
.sermon-card:active { transform: translateY(-1px); }
.sermon-card .tag {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-flare);
}
.sermon-card h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1.28;
}
.sermon-card p { font-size: .85rem; color: var(--warm-soft); line-height: 1.5; flex: 1; }
.sermon-card .date { font-family: var(--mono); font-size: .68rem; color: var(--dim); margin-top: .5rem; }

/* ---------- the rebuild ritual — a small liturgy ---------- */
.ritual {
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ritual-step {
  background: var(--stone);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  text-align: center;
}
.ritual-step .step-num {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold-flare);
  display: block;
  margin-bottom: .3rem;
}
.ritual-step h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: .2rem;
}
.ritual-step p { font-size: .84rem; color: var(--warm-soft); line-height: 1.5; }

/* ============================================================
   FORMS — newsletter + contact (accessible, no third-party CSS)
   ============================================================ */
.panel {
  background: var(--stone);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.4rem, 3.5vw, 2.2rem);
}
.panel.center { text-align: center; }
.panel h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: .5rem;
}
.panel > p { color: var(--warm-soft); max-width: 38rem; font-size: .96rem; margin-bottom: 1.2rem; }
.panel.center > p { margin-left: auto; margin-right: auto; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; text-align: left; }
.field label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-flare);
}
.field input, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--warm-white);
  background: var(--ground-deep);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: .7rem .9rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--gold-flare);
  outline-offset: 2px;
  border-color: var(--gold);
}
.field .hint { font-family: var(--mono); font-size: .7rem; color: var(--dim); letter-spacing: .02em; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ground);
  background: var(--gold-bright);
  border: 2px solid var(--gold-bright);
  border-radius: 999px;
  padding: .7rem 1.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--gold-flare);
  box-shadow: 0 0 22px rgba(232, 199, 90, .4);
}
.btn:active { transform: translateY(0); }
.form-note { font-family: var(--mono); font-size: .72rem; color: var(--dim); margin-top: .9rem; }

/* ============================================================
   VISIT — the open door
   ============================================================ */
.visit {
  margin: clamp(2.8rem, 6vh, 4rem) 0 clamp(2.6rem, 6vh, 3.8rem);
  text-align: center;
  background: var(--stone);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: clamp(1.8rem, 4.5vw, 2.8rem) clamp(1.4rem, 4vw, 2.4rem);
}
.visit h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: .5rem;
}
.visit p { color: var(--warm-soft); max-width: 34rem; margin: 0 auto 1.4rem; font-size: .96rem; }
.pill-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .9rem;
}
.pill-links a {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold-flare);
  background: rgba(39, 27, 60, .7);
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 999px;
  padding: .55rem 1.5rem;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.pill-links a:hover {
  transform: translateY(-2px);
  background: var(--stone-hi);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .45), 0 0 22px rgba(212, 175, 55, .22);
}
.pill-links a:active { transform: translateY(0); }

/* ============================================================
   PROSE — about / transparency / doctrine body
   ============================================================ */
.prose { max-width: 44rem; margin: 0 auto; }
.prose > * + * { margin-top: 1.05rem; }
.prose p { color: var(--warm-soft); font-size: 1.02rem; }
.prose p strong { color: var(--warm-white); font-weight: 600; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.2;
  margin-top: 2.4rem;
}
.prose h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--warm-white);
  margin-top: 1.8rem;
}
.prose h4 {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-flare);
  margin-top: 1.4rem;
}
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--warm-soft); }
.prose li { margin-top: .45rem; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: .4rem 0 .4rem 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--gold-bright);
}
.prose a { color: var(--gold-flare); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--warm-white); }
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  color: var(--gold-flare);
  background: var(--ground-deep);
  padding: .12rem .4rem;
  border-radius: 5px;
}
.prose pre {
  background: var(--ground-deep);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--glass-violet);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--warm-soft);
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--hairline); }
.prose th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-flare); }
.prose hr { border: none; height: 1px; background: var(--hairline); margin: 2rem 0; }

/* ---------- definition cards (transparency facts) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
.fact {
  background: var(--stone);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.fact dt {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-flare);
  margin-bottom: .3rem;
}
.fact dd { color: var(--warm-soft); font-size: .95rem; line-height: 1.55; }

/* ============================================================
   DOCTRINE PAGE — masthead + reading column + chapter nav
   ============================================================ */
.doc-masthead {
  text-align: center;
  padding: clamp(2.4rem, 6vh, 3.6rem) 1.2rem clamp(1.4rem, 3vh, 2rem);
  max-width: 48rem;
  margin: 0 auto;
}
.doc-masthead .doc-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-flare);
  margin-bottom: .7rem;
}
.doc-masthead h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
  color: var(--gold-bright);
  text-shadow: 0 0 28px rgba(212, 175, 55, .28);
}
.doc-masthead .doc-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--warm-soft);
  margin-top: .7rem;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 44rem;
  margin: clamp(2.6rem, 6vh, 3.8rem) auto 0;
  padding: 0 clamp(1rem, 3.5vw, 2.4rem);
}
.chapter-nav a {
  flex: 1;
  background: var(--stone);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chapter-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .4), 0 10px 24px rgba(16, 11, 24, .5);
}
.chapter-nav a.next { text-align: right; }
.chapter-nav .cn-dir { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-flare); }
.chapter-nav .cn-title { font-family: var(--serif); font-weight: 600; color: var(--warm-white); display: block; margin-top: .2rem; }
.chapter-nav a.disabled { opacity: .35; pointer-events: none; }

/* the index list of doctrine chapters */
.toc-list { max-width: 44rem; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.toc-entry {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: var(--stone);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.toc-entry:hover {
  transform: translateX(4px);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .4), 0 10px 24px rgba(16, 11, 24, .5);
}
.toc-entry .toc-num { font-family: var(--mono); font-size: .72rem; font-weight: 600; color: var(--gold-flare); min-width: 2rem; }
.toc-entry .toc-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--warm-white); display: block; }
.toc-entry .toc-sub { font-size: .88rem; color: var(--warm-soft); display: block; margin-top: .15rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site {
  text-align: center;
  border-top: 1px solid var(--hairline);
  padding: clamp(1.8rem, 4vh, 2.6rem) 1.2rem clamp(2rem, 4.5vh, 2.8rem);
  margin-top: clamp(2rem, 5vh, 3.4rem);
}
.footer-identity { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--warm-white); margin-bottom: .55rem; }
.footer-nav { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; color: var(--dim); }
.footer-nav a {
  color: var(--gold-flare);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: .15rem .1rem;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer-nav a:hover { color: var(--warm-white); border-bottom-color: var(--gold); }
.motto { margin-top: .7rem; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--dim); }

/* ============================================================
   MOTION — staggered reveals, opt-in only.
   No JS → everything visible. Reduced motion → everything visible.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal {
    opacity: 0;
    translate: 0 16px;
    transition: opacity .6s ease, translate .6s var(--ease);
  }
  .reveal-on .reveal.in { opacity: 1; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sermons, .tiles { grid-template-columns: repeat(2, 1fr); }
  .believe { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sermons, .tiles { grid-template-columns: 1fr; }
  .not-grid, .ritual, .facts { grid-template-columns: 1fr; }
  .chapter-nav { flex-direction: column; }
  .con-topbar { font-size: .76rem; gap: .5rem .8rem; }
}

/* ============================================================
   MOTION ERA (2026-07) — the torn veil, the embers, the physics.
   Signature: the hero veil is ALREADY torn at rest — motion only
   widens what the cross opened. Pure decoration: aria-hidden,
   behind text, absent for reduced-motion where it matters.
   ============================================================ */

/* ---------- the torn veil ---------- */
.veil {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  translate: -50% 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  --part: 0;      /* 0 rest → 1 fully parted; driven by scroll   */
  --sway: 0;      /* -1..1 pointer drift; fine pointers only     */
}
.veil-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 16rem 30rem at 50% 30%, rgba(240, 214, 138, .16), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, .07) 30%, rgba(212, 175, 55, .05) 60%, transparent 100%);
}
.veil-rays {
  position: absolute;
  left: 50%; top: -20%;
  width: 90rem; height: 90rem;
  translate: -50% 0;
  background: repeating-conic-gradient(from -101deg at 50% 0,
    rgba(240, 214, 138, .05) 0deg 3deg,
    transparent 3deg 14deg);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 12%, #000 20%, transparent 68%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 12%, #000 20%, transparent 68%);
}
.veil-panel {
  position: absolute;
  top: -2%; bottom: -2%;
  width: 50%;
  background:
    linear-gradient(180deg, rgba(244, 236, 221, .04), transparent 26%),
    repeating-linear-gradient(90deg,
      #0e0917 0 1.4rem,
      #120b1d 1.4rem 2.6rem,
      #100a19 2.6rem 3.4rem,
      #140d21 3.4rem 4.6rem),
    #0f0a18;
  box-shadow: 0 0 70px rgba(9, 6, 14, .9);
}
.veil-l {
  left: 0;
  clip-path: polygon(0 0, 90% 0, 94% 6%, 91% 13%, 95% 22%, 92% 31%, 96% 40%,
    93% 52%, 97% 63%, 94% 74%, 98% 84%, 95% 92%, 97% 100%, 0 100%);
  translate: calc(var(--part) * -5vw + var(--sway) * -0.6vw) 0;
}
.veil-r {
  right: 0;
  clip-path: polygon(100% 0, 10% 0, 6% 7%, 9% 15%, 5% 24%, 8% 33%, 4% 43%,
    7% 55%, 3% 66%, 6% 76%, 2% 85%, 5% 93%, 3% 100%, 100% 100%);
  translate: calc(var(--part) * 5vw + var(--sway) * 0.6vw) 0;
}
/* gold thread along each torn edge — the hem that didn't fray */
.veil-l::after, .veil-r::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    rgba(240, 214, 138, .0), rgba(240, 214, 138, .75) 18%,
    rgba(212, 175, 55, .5) 55%, rgba(240, 214, 138, .65) 82%,
    rgba(240, 214, 138, 0));
  filter: blur(.4px);
}
.veil-l::after { right: 4%; }
.veil-r::after { left: 4%; }

@media (prefers-reduced-motion: no-preference) {
  .veil-light { animation: veil-breathe 7s ease-in-out infinite; }
  @keyframes veil-breathe {
    0%, 100% { opacity: .85; }
    50%      { opacity: 1; }
  }
  .veil-panel { transition: translate .15s linear; }
}
@media (prefers-reduced-motion: reduce) {
  .veil { --part: .5; --sway: 0; }
}
@media (max-width: 700px) {
  .veil-panel { width: 58%; }
}

/* ---------- candle embers (injected by JS only) ---------- */
.embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.embers span {
  position: absolute;
  inset: -10%;
  background-repeat: repeat;
  will-change: background-position;
}
.ember-far {
  opacity: .30;
  background-image:
    radial-gradient(circle 1px at 22% 88%, #f0d68a 99%, transparent),
    radial-gradient(circle .8px at 71% 42%, #e8c75a 99%, transparent);
  background-size: 520px 520px;
  animation: ember-rise 84s linear infinite;
}
.ember-mid {
  opacity: .26;
  background-image:
    radial-gradient(circle 1.4px at 38% 70%, #f0d68a 99%, transparent),
    radial-gradient(circle 1px at 84% 18%, #f4ecdd 99%, transparent);
  background-size: 680px 680px;
  animation: ember-rise 62s linear infinite;
}
.ember-near {
  opacity: .20;
  background-image:
    radial-gradient(circle 1.8px at 15% 35%, #e8c75a 99%, transparent);
  background-size: 900px 900px;
  animation: ember-rise 46s linear infinite;
}
@keyframes ember-rise {
  from { background-position: 0 0; }
  to   { background-position: 24px -1560px; }
}

/* ---------- hover physics (the house feel) ---------- */
.tile, .sermon-card, .shelf, .bond-card, .not-item, .ritual-step {
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.tile:hover, .sermon-card:hover, .shelf:hover {
  border-color: rgba(212, 175, 55, .5);
  box-shadow: 0 14px 40px rgba(16, 11, 24, .65), 0 0 26px rgba(212, 175, 55, .14);
}
.tile .tile-go, .shelf .shelf-go { transition: translate .22s var(--ease); }
.tile:hover .tile-go, .shelf:hover .shelf-go { translate: 4px 0; }
.not-item .slash { transition: rotate .3s var(--ease), color .3s var(--ease); display: inline-block; }
.not-item:hover .slash { rotate: 14deg; color: var(--gold-flare); }
