:root {
  --bg: #080709;
  --bg-alt: #141116;
  --accent: #c0392b;
  --accent-soft: rgba(192, 57, 43, 0.2);
  --text: #f2e9e4;
  --muted: #c9b8b3;
  --border: rgba(255, 255, 255, 0.08);
  --card: rgba(18, 13, 19, 0.9);
  --glow: rgba(192, 57, 43, 0.35);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Crimson Text', serif;
  background: radial-gradient(circle at top, #130f1a 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  margin-top: 0;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(8,7,9,0.92) 0%, rgba(35,16,21,0.75) 45%, rgba(8,7,9,0.95) 100%);
  mix-blend-mode: multiply;
}

.hero__content {
  position: relative;
  max-width: 620px;
  padding: 4rem 1.5rem;
  z-index: 1;
}

.hero__crest {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero__subtitle {
  margin: 1.5rem 0 2.5rem;
  font-size: 1.1rem;
  color: rgba(242, 233, 228, 0.85);
}

.scroll-call {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  background: rgba(192, 57, 43, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.scroll-call:hover,
.scroll-call:focus {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(192, 57, 43, 0.45);
  transform: translateY(-2px);
}

main {
  background: linear-gradient(180deg, rgba(8,7,9,0.95) 0%, rgba(14,10,16,0.98) 30%, rgba(8,7,9,1) 100%);
}

.section {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section:last-of-type {
  border-bottom: none;
}

.section__tag {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.intro p {
  max-width: 680px;
}

.aside {
  color: var(--muted);
  font-style: italic;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(192,57,43,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.timing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid rgba(255,255,255,0.15);
}

.timeline li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  position: relative;
  color: var(--muted);
  transition: color 0.4s ease;
}

.timeline li span {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 1.2rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 15px var(--glow);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.timeline li.active {
  color: var(--text);
}

.timeline li.active span {
  color: var(--accent);
}

.timeline li.active::before {
  background: var(--accent);
  box-shadow: 0 0 25px rgba(192,57,43,0.6);
}

.ritual-steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.step {
  background: linear-gradient(135deg, rgba(20,17,22,0.95), rgba(9,7,10,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.step.show-tip {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(192,57,43,0.25);
}

.step__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step__number {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(192,57,43,0.2);
  border: 1px solid rgba(192,57,43,0.6);
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.step__toggle {
  margin-left: auto;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(192,57,43,0.4);
  background: transparent;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.step__toggle:hover,
.step__toggle:focus {
  background: rgba(192,57,43,0.3);
  color: var(--text);
}

.incantation {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

.whisper {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255,255,255,0.15);
  color: rgba(201, 184, 179, 0.85);
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.step.show-tip .whisper {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

.warnings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.warnings__grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
  position: relative;
}

.warnings__grid article h3 {
  margin-bottom: 0.75rem;
}

.field-notes {
  position: relative;
}

.notes {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.note {
  background: radial-gradient(circle at top, rgba(192,57,43,0.18), transparent 70%), var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.note::after {
  content: attr(data-year);
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.12);
}

.note.revealed {
  opacity: 1;
  transform: translateY(0);
}

.sigil__wrapper {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.sigil__circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  position: relative;
  margin: 0 auto;
  box-shadow: inset 0 0 40px rgba(192,57,43,0.25), 0 0 25px rgba(192,57,43,0.25);
}

.sigil__cross {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2px;
  height: 80%;
  background: rgba(255,255,255,0.4);
  transform: translate(-50%, -50%);
}

.sigil__cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 2px;
  background: rgba(255,255,255,0.4);
  transform: translate(-50%, -50%);
}

.sigil__diamond {
  position: absolute;
  inset: 20%;
  border: 2px solid rgba(255,255,255,0.25);
  transform: rotate(45deg);
}

.footer {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  background: #050406;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 700px) {
  .hero {
    min-height: 75vh;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .step__header {
    gap: 0.6rem;
  }

  .step__toggle {
    margin-left: 0;
  }

  .sigil__circle {
    width: 200px;
    height: 200px;
  }
}
