:root {
  --stone: #15110c;
  --stone-deep: #0a0805;
  --ember: #ffb347;
  --ember-hot: #ffd89a;
  --ember-low: #c4682a;
  --blood: #6a1414;
  --parch: #d9c4a0;
  --parch-dim: #8a7a5c;
  --ink: #1a1208;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--stone-deep);
  color: var(--parch);
  font-family: "Iowan Old Style", "Palatino Linotype", "Palatino", "Book Antiqua", Georgia, serif;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,179,71,0.10), transparent 40%),
    radial-gradient(ellipse at 80% 15%, rgba(255,179,71,0.08), transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(106,20,20,0.25), transparent 55%),
    repeating-linear-gradient(
      45deg,
      #0d0906 0 2px,
      #120e09 2px 4px
    ),
    var(--stone-deep);
  background-attachment: fixed;
  position: relative;
  padding: 4rem 1.2rem 3rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%, transparent 0%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,179,71,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: 2;
  animation: flicker 4.2s infinite ease-in-out;
}

@keyframes flicker {
  0%, 100% { opacity: 0.55; }
  18% { opacity: 0.75; }
  31% { opacity: 0.35; }
  52% { opacity: 0.70; }
  73% { opacity: 0.45; }
  88% { opacity: 0.62; }
}

main {
  position: relative;
  z-index: 3;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1rem 6rem;
}

/* ============ CANDLES ============ */
.candle {
  position: fixed;
  top: 8%;
  width: 38px;
  height: 180px;
  z-index: 4;
  pointer-events: none;
}
.candle-left  { left: calc(50% - 22rem); }
.candle-right { right: calc(50% - 22rem); }

.candle::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 4px;
  width: 30px;
  height: 140px;
  background: linear-gradient(to bottom, #f2e2b8 0%, #b99a63 40%, #5a4422 100%);
  border-radius: 4px 4px 2px 2px;
  box-shadow:
    inset -6px 0 10px rgba(0,0,0,0.35),
    inset 4px 0 6px rgba(255,230,180,0.25),
    0 0 22px rgba(255,179,71,0.20);
}

.candle .flame {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 34px;
  background: radial-gradient(ellipse at 50% 70%, #fff4c2 0%, #ffb347 45%, #c4682a 80%, transparent 100%);
  border-radius: 50% 50% 35% 35%;
  filter: blur(0.3px);
  box-shadow: 0 0 28px 8px rgba(255,179,71,0.55);
  animation: flame 1.7s infinite alternate ease-in-out;
  transform-origin: 50% 100%;
}

.candle-right .flame { animation-duration: 2.1s; animation-delay: -0.6s; }

@keyframes flame {
  0%   { transform: translateX(-50%) scale(1, 1) rotate(-2deg); }
  25%  { transform: translateX(-50%) scale(1.05, 0.95) rotate(3deg); }
  50%  { transform: translateX(-50%) scale(0.95, 1.08) rotate(-1deg); }
  75%  { transform: translateX(-50%) scale(1.02, 0.97) rotate(2deg); }
  100% { transform: translateX(-50%) scale(1, 1.02) rotate(-2deg); }
}

@media (max-width: 960px) {
  .candle { display: none; }
}

/* ============ ALTAR ============ */
.altar {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid rgba(217,196,160,0.12);
  margin-bottom: 2.5rem;
}

.cross {
  font-size: 2.2rem;
  color: var(--ember);
  text-shadow: 0 0 20px rgba(255,179,71,0.5);
  margin-bottom: 0.6rem;
  animation: breathe 6s infinite ease-in-out;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; text-shadow: 0 0 16px rgba(255,179,71,0.4); }
  50%      { opacity: 1;    text-shadow: 0 0 26px rgba(255,179,71,0.7); }
}

.kyrie {
  font-style: italic;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--parch-dim);
  margin-bottom: 1.8rem;
}

h1 {
  font-family: "Trajan Pro", "Cinzel", "Iowan Old Style", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: #f4e4c1;
  text-shadow:
    0 0 12px rgba(255,179,71,0.35),
    0 0 24px rgba(255,179,71,0.15),
    0 2px 0 #000;
  margin-bottom: 0.9rem;
}

.dates {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--ember);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.subtitle {
  color: var(--parch-dim);
  font-style: italic;
  font-size: 1rem;
}

/* ============ DANCERS ============ */
.dancers {
  position: relative;
  height: 140px;
  margin: 2rem 0 2rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  overflow: visible;
}

.dancer {
  font-size: 1.8rem;
  color: var(--blood);
  text-shadow: 0 0 12px rgba(106,20,20,0.8), 0 0 22px rgba(255,179,71,0.2);
  transform-origin: 50% 90%;
  opacity: 0.85;
  will-change: transform;
}

.d1 { animation: jig  1.2s infinite ease-in-out; }
.d2 { animation: jig  1.5s infinite ease-in-out; animation-delay: -0.2s; color: #8a1a1a; }
.d3 { animation: jig  0.9s infinite ease-in-out; animation-delay: -0.5s; }
.d4 { animation: jig  1.7s infinite ease-in-out; animation-delay: -0.1s; color: #521010; }
.d5 { animation: jig  1.1s infinite ease-in-out; animation-delay: -0.8s; }
.d6 { animation: jig  1.3s infinite ease-in-out; animation-delay: -0.3s; color: #7a1616; }
.d7 { animation: jig  1.0s infinite ease-in-out; animation-delay: -0.6s; }
.d8 { animation: jig  1.45s infinite ease-in-out; animation-delay: -0.4s; color: #4a0e0e; }

@keyframes jig {
  0%   { transform: translateY(0) rotate(-14deg) scaleY(1); }
  20%  { transform: translateY(-14px) rotate(8deg) scaleY(1.05); }
  40%  { transform: translateY(-2px) rotate(-18deg) scaleY(0.96); }
  60%  { transform: translateY(-18px) rotate(14deg) scaleY(1.08); }
  80%  { transform: translateY(-4px) rotate(-10deg) scaleY(0.98); }
  100% { transform: translateY(0) rotate(-14deg) scaleY(1); }
}

/* ============ SCRIPTURE ============ */
.scripture {
  font-size: 1.08rem;
  line-height: 1.82;
  color: #e6d4aa;
  padding: 1.5rem 0.4rem 2rem;
  border-top: 1px solid rgba(217,196,160,0.1);
  border-bottom: 1px solid rgba(217,196,160,0.1);
  background:
    linear-gradient(to bottom, rgba(20,14,8,0.45), rgba(10,8,5,0.25));
}

.scripture p { margin-bottom: 1.2rem; }

.scripture p.drop::first-letter {
  float: left;
  font-family: Georgia, "Times New Roman", "Iowan Old Style", serif;
  font-size: 4.6em;
  line-height: 0.82;
  font-weight: 700;
  color: #c8541a;
  margin: 0.05em 0.12em 0 0;
  padding: 0;
  text-shadow:
    0 0 18px rgba(200,84,26,0.55),
    0 0 34px rgba(255,179,71,0.25),
    0 2px 0 #000;
}

.scripture strong {
  color: var(--ember-hot);
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(255,179,71,0.35);
}

.scripture em {
  color: #f0dcae;
  font-style: italic;
}

.warning {
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: #f2b070;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  border-top: 1px dashed rgba(255,179,71,0.25);
  border-bottom: 1px dashed rgba(255,179,71,0.25);
  margin: 1.6rem 0;
}

/* ============ RELICS ============ */
.relics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.9rem;
  margin: 3rem 0;
}

.relic {
  background: linear-gradient(to bottom, rgba(30,22,14,0.7), rgba(15,11,7,0.85));
  border: 1px solid rgba(196,104,42,0.3);
  padding: 1rem 0.8rem;
  text-align: center;
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.55),
    0 0 14px rgba(255,179,71,0.06);
  position: relative;
}

.relic::before {
  content: "✝";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ember-low);
  background: var(--stone-deep);
  padding: 0 0.4rem;
  font-size: 0.8rem;
}

.relic-label {
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--parch-dim);
  margin-bottom: 0.45rem;
}

.relic-value {
  color: var(--ember-hot);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ============ OFFERING / PRAYER ============ */
.offering {
  text-align: center;
  margin: 3.5rem 0 2rem;
  padding: 1.8rem 1rem;
  border-top: 1px solid rgba(217,196,160,0.12);
  border-bottom: 1px solid rgba(217,196,160,0.12);
}

.prayer {
  font-style: italic;
  color: #d7c29a;
  line-height: 1.9;
  font-size: 1.04rem;
  text-shadow: 0 0 12px rgba(0,0,0,0.8);
}

/* ============ EPITAPH ============ */
.epitaph {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 1rem 1rem;
}

.rule {
  color: var(--ember-low);
  letter-spacing: 1.2em;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
  padding-left: 1.2em;
}

blockquote {
  max-width: 30rem;
  margin: 0 auto 1.5rem;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #eedcad;
  text-shadow: 0 0 14px rgba(255,179,71,0.18);
}

blockquote p { margin-bottom: 0.8rem; }

cite {
  display: block;
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--parch-dim);
}

.whisper {
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #6f5a3a;
  font-style: italic;
  animation: tremble 5s infinite ease-in-out;
}

@keyframes tremble {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  25%      { transform: translateX(-0.5px); opacity: 0.55; }
  50%      { transform: translateX(0.5px);  opacity: 0.85; }
  75%      { transform: translateX(-0.3px); opacity: 0.6; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 540px) {
  body { padding: 1.5rem 0.6rem; }
  main { padding: 1rem 0.2rem 3rem; }
  .dancers { height: 110px; gap: 0.15rem; }
  .dancer { font-size: 1.4rem; }
  .scripture { font-size: 1rem; line-height: 1.7; }
  .rule { letter-spacing: 0.6em; padding-left: 0.6em; }
}
