:root {
  --bg: #0b1020;
  --bg-2: #111827;
  --amber: #f6c56f;
  --warm: #ffb347;
  --text: #f9fafb;
  --muted: #9ca3af;
  --glass: rgba(249, 250, 251, 0.08);
  --glass-strong: rgba(249, 250, 251, 0.14);
  --line: rgba(246, 197, 111, 0.2);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 12%, rgba(246, 197, 111, 0.16), transparent 28rem),
    linear-gradient(180deg, #070b16 0%, var(--bg) 38%, #130d18 72%, #080912 100%);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(20, 18, 40, 0.5), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(135, 59, 56, 0.18), transparent 24rem);
}

.aura {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(5rem);
  opacity: 0.46;
  animation: driftAura 22s ease-in-out infinite alternate;
}

.aura-one {
  left: -12rem;
  top: 8rem;
  background: rgba(255, 179, 71, 0.16);
}

.aura-two {
  right: -10rem;
  top: 34rem;
  background: rgba(97, 129, 198, 0.15);
  animation-delay: -7s;
}

.aura-three {
  left: 30%;
  bottom: -18rem;
  background: rgba(112, 72, 140, 0.16);
  animation-delay: -13s;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(8, 11, 22, 0.9), rgba(8, 11, 22, 0.2));
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 0.72rem;
  height: 1.45rem;
  border-radius: 999px 999px 55% 55%;
  background: linear-gradient(180deg, #fff7d6 0%, var(--amber) 42%, #c96d32 100%);
  box-shadow: 0 0 1.4rem rgba(246, 197, 111, 0.8);
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  color: rgba(249, 250, 251, 0.72);
  font-size: 0.9rem;
}

.nav-links a {
  transition: color 220ms ease;
}

.nav-links a:hover {
  color: var(--amber);
}

.hero-section {
  min-height: 94svh;
  display: grid;
  align-items: center;
  gap: 3rem;
  padding: 7rem clamp(1rem, 5vw, 5rem) 3rem;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9rem;
  background: linear-gradient(180deg, transparent, rgba(11, 16, 32, 0.92));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 54rem;
  margin-bottom: 1.25rem;
  font-size: clamp(4rem, 10vw, 9.6rem);
  text-wrap: balance;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.45rem;
  color: #fff4d8;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0;
}

.hero-subtitle,
.section-intro p,
.meaning-card p {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #2b1606;
  background: linear-gradient(135deg, #fff1bd, var(--amber) 45%, var(--warm));
  box-shadow: 0 1rem 2.8rem rgba(255, 179, 71, 0.28), inset 0 1px rgba(255, 255, 255, 0.6);
}

.button-secondary {
  color: var(--text);
  background: rgba(249, 250, 251, 0.08);
  border-color: rgba(249, 250, 251, 0.18);
  backdrop-filter: blur(12px);
}

.button-secondary:hover {
  border-color: rgba(246, 197, 111, 0.46);
  box-shadow: 0 1rem 2.5rem rgba(8, 10, 20, 0.32);
}

.hero-altar {
  position: relative;
  min-height: 19rem;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 1.1rem;
  perspective: 900px;
}

.altar-glow {
  position: absolute;
  bottom: -2rem;
  width: min(90vw, 44rem);
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 179, 71, 0.33), transparent 65%);
  filter: blur(1.2rem);
}

.altar-candle {
  position: relative;
  width: clamp(2.4rem, 7vw, 4rem);
  height: clamp(8rem, 24vw, 14rem);
  border-radius: 0.75rem 0.75rem 0.35rem 0.35rem;
  background: linear-gradient(90deg, #7a4c2f, #ffd99b 18%, #f7bf74 50%, #8d5632);
  box-shadow: inset 0 -1.2rem 1.4rem rgba(79, 42, 20, 0.38), 0 1.5rem 5rem rgba(246, 197, 111, 0.24);
  transform: rotateX(8deg);
}

.altar-candle::before,
.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2.1rem;
  width: 1.15rem;
  height: 2.1rem;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 24%, #fff9df 0 14%, #ffe6a3 28%, var(--warm) 58%, rgba(255, 179, 71, 0) 72%);
  filter: drop-shadow(0 0 0.85rem rgba(246, 197, 111, 0.9));
  transform: translateX(-50%);
  transform-origin: 50% 90%;
  animation: flicker 2.6s ease-in-out infinite;
}

.altar-candle::after,
.candle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3.5rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 197, 111, 0.42), transparent 68%);
  transform: translateX(-50%);
  animation: breatheGlow 4.5s ease-in-out infinite;
}

.altar-candle-two {
  height: clamp(10rem, 29vw, 17rem);
}

.altar-candle-three {
  height: clamp(7rem, 21vw, 12rem);
}

.altar-candle-four {
  height: clamp(9rem, 26vw, 15rem);
}

.wall-section,
.meaning-section,
.reflection-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 5vw, 5rem);
}

.section-intro {
  max-width: 56rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-intro p {
  max-width: 45rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
}

.sanctuary-frame {
  position: relative;
  max-width: 76rem;
  min-height: 36rem;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgba(246, 197, 111, 0.18);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 179, 71, 0.18), transparent 26rem),
    linear-gradient(180deg, rgba(7, 9, 18, 0.52), rgba(15, 10, 17, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5.4rem);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.45), inset 0 0 8rem rgba(246, 197, 111, 0.08);
}

.sanctuary-frame::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 228, 169, 0.12), transparent 28%),
    radial-gradient(circle at 20% 75%, rgba(179, 71, 55, 0.14), transparent 25%),
    radial-gradient(circle at 82% 74%, rgba(91, 121, 190, 0.11), transparent 24%);
  animation: ambientShift 14s ease-in-out infinite alternate;
}

.wall-atmosphere,
.particle-field,
.candle-wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.light-ray {
  position: absolute;
  top: -20%;
  width: 16rem;
  height: 130%;
  background: linear-gradient(90deg, transparent, rgba(255, 239, 193, 0.06), transparent);
  transform: rotate(10deg);
  filter: blur(0.7rem);
  animation: rayDrift 16s ease-in-out infinite alternate;
}

.ray-one {
  left: 8%;
}

.ray-two {
  left: 44%;
  animation-delay: -6s;
}

.ray-three {
  right: 4%;
  animation-delay: -10s;
}

.particle {
  position: absolute;
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  background: rgba(255, 228, 168, 0.78);
  box-shadow: 0 0 0.8rem rgba(246, 197, 111, 0.8);
  opacity: 0;
  animation: floatParticle linear infinite;
}

.candle-wall {
  overflow: visible;
  z-index: 3;
  border-radius: inherit;
}

.candle-button {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: end center;
  min-height: var(--holder-height);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -100%) translateY(var(--rise)) scale(var(--depth));
  transition: transform 260ms ease, filter 260ms ease;
}

.candle-button:hover,
.candle-button:focus-visible,
.candle-button.is-active {
  filter: saturate(1.18) brightness(1.12);
  transform: translate(-50%, -100%) translateY(calc(var(--rise) - 0.25rem)) scale(calc(var(--depth) + 0.04));
  z-index: 40;
}

.candle-button:focus-visible {
  outline: 2px solid rgba(255, 241, 189, 0.9);
  outline-offset: 0.4rem;
  border-radius: 1rem;
}

.candle {
  position: relative;
  width: var(--candle-width);
  height: var(--candle-height);
  border-radius: 0.45rem 0.45rem 0.25rem 0.25rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 24%, rgba(255, 255, 255, 0.34) 42%, transparent 62%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, var(--wax-light), var(--wax) 70%, var(--wax-deep));
  box-shadow:
    inset 0 -0.8rem 1.2rem rgba(62, 35, 22, 0.25),
    0 0 1.2rem var(--glow-soft),
    0 1.2rem 2rem rgba(0, 0, 0, 0.26);
}

.candle-button.user-candle {
  transform: translate(-50%, -100%) scale(1.35);
  z-index: 20;
}

.candle-button.previous-user-candle {
  z-index: 14;
  transform: translate(-50%, -100%) translateY(var(--rise)) scale(1.08);
}

.previous-user-candle .candle {
  width: calc(var(--candle-width) + 0.14rem);
  height: calc(var(--candle-height) + 0.42rem);
  box-shadow:
    inset 0 -0.85rem 1.25rem rgba(62, 35, 22, 0.24),
    0 0 2rem var(--glow),
    0 0 4.2rem var(--glow-soft),
    0 1.45rem 2.6rem rgba(0, 0, 0, 0.3);
}

.previous-user-candle .candle::before {
  width: 1.3rem;
  height: 2.45rem;
  top: -2.45rem;
  filter: drop-shadow(0 0 1.25rem var(--glow));
}

.previous-user-candle .candle::after {
  width: 5.6rem;
  height: 5.6rem;
  top: -4.25rem;
  background: radial-gradient(circle, var(--glow-soft), transparent 68%);
}

.candle-button.user-candle:hover,
.candle-button.user-candle:focus-visible,
.candle-button.user-candle.is-active {
  transform: translate(-50%, -100%) scale(1.43);
  z-index: 45;
}

.user-candle .candle {
  width: calc(var(--candle-width) + 0.32rem);
  height: calc(var(--candle-height) + 0.9rem);
  box-shadow:
    inset 0 -0.9rem 1.4rem rgba(62, 35, 22, 0.24),
    0 0 2.6rem var(--glow),
    0 0 6rem var(--glow-soft),
    0 1.8rem 3rem rgba(0, 0, 0, 0.32);
}

.user-candle .candle::before {
  width: 1.45rem;
  height: 2.8rem;
  top: -2.8rem;
  filter: drop-shadow(0 0 1.6rem var(--glow));
}

.user-candle .candle::after {
  width: 7rem;
  height: 7rem;
  top: -5rem;
  background: radial-gradient(circle, var(--glow-soft), transparent 68%);
}

.candle-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1.2rem);
  width: min(16rem, 78vw);
  padding: 1rem;
  color: var(--text);
  background: rgba(12, 15, 28, 0.76);
  border: 1px solid rgba(255, 239, 193, 0.2);
  border-radius: 1rem;
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.6rem);
  transition: opacity 220ms ease, transform 220ms ease;
  text-align: left;
  z-index: 80;
}

.candle-button:hover .candle-tooltip,
.candle-button:focus-visible .candle-tooltip,
.candle-button.is-active .candle-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tooltip-right .candle-tooltip {
  left: 0;
  transform: translate(0, 0.6rem);
}

.tooltip-right:hover .candle-tooltip,
.tooltip-right:focus-visible .candle-tooltip,
.tooltip-right.is-active .candle-tooltip {
  transform: translate(0, 0);
}

.tooltip-left .candle-tooltip {
  left: auto;
  right: 0;
  transform: translate(0, 0.6rem);
}

.tooltip-left:hover .candle-tooltip,
.tooltip-left:focus-visible .candle-tooltip,
.tooltip-left.is-active .candle-tooltip {
  transform: translate(0, 0);
}

.tooltip-below .candle-tooltip {
  top: calc(100% + 0.9rem);
  bottom: auto;
  transform: translate(-50%, -0.6rem);
}

.tooltip-below:hover .candle-tooltip,
.tooltip-below:focus-visible .candle-tooltip,
.tooltip-below.is-active .candle-tooltip {
  transform: translate(-50%, 0);
}

.tooltip-below.tooltip-right .candle-tooltip,
.tooltip-below.tooltip-left .candle-tooltip {
  transform: translate(0, -0.6rem);
}

.tooltip-below.tooltip-right:hover .candle-tooltip,
.tooltip-below.tooltip-right:focus-visible .candle-tooltip,
.tooltip-below.tooltip-right.is-active .candle-tooltip,
.tooltip-below.tooltip-left:hover .candle-tooltip,
.tooltip-below.tooltip-left:focus-visible .candle-tooltip,
.tooltip-below.tooltip-left.is-active .candle-tooltip {
  transform: translate(0, 0);
}

.candle-tooltip strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff4d5;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
}

.candle-tooltip p {
  margin-bottom: 0.75rem;
  color: rgba(249, 250, 251, 0.82);
  font-size: 0.9rem;
}

.candle-tooltip span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.meaning-card {
  min-height: 12rem;
  padding: 1.35rem;
  border: 1px solid rgba(249, 250, 251, 0.12);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.08), rgba(249, 250, 251, 0.035));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 1rem 3rem rgba(0, 0, 0, 0.18);
}

.meaning-swatch {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  box-shadow: 0 0 1.7rem currentColor;
}

.swatch-hope,
.theme-hope {
  color: #f6c56f;
  background: #f6c56f;
}

.swatch-healing,
.theme-healing {
  color: #8db7ff;
  background: #8db7ff;
}

.swatch-guidance,
.theme-guidance {
  color: #c9a2ff;
  background: #c9a2ff;
}

.swatch-peace,
.theme-peace {
  color: #fff8e9;
  background: #fff8e9;
}

.swatch-strength,
.theme-strength {
  color: #ff7a76;
  background: #ff7a76;
}

.reflection-section {
  min-height: 70svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.reflection-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(246, 197, 111, 0.16), transparent 26rem),
    linear-gradient(180deg, transparent, rgba(8, 8, 18, 0.84));
  pointer-events: none;
}

.reflection-inner {
  position: relative;
  max-width: 58rem;
}

.reflection-inner h2 {
  margin-bottom: 2rem;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, 0.72);
  backdrop-filter: blur(18px);
}

.candle-form {
  position: relative;
  width: min(100%, 34rem);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  padding: clamp(1.35rem, 5vw, 2.1rem);
  border: 1px solid rgba(246, 197, 111, 0.22);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 0, rgba(246, 197, 111, 0.18), transparent 15rem),
    rgba(13, 17, 31, 0.88);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
}

.candle-form h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.3rem, 9vw, 4rem);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(249, 250, 251, 0.14);
  border-radius: 50%;
  background: rgba(249, 250, 251, 0.08);
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--text);
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.candle-form label,
.candle-form legend {
  display: block;
  margin-bottom: 0.45rem;
  color: #fff1bd;
  font-size: 0.9rem;
  font-weight: 700;
}

.candle-form input[type="text"],
.candle-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  color: var(--text);
  border: 1px solid rgba(249, 250, 251, 0.14);
  border-radius: 0.7rem;
  background: rgba(249, 250, 251, 0.08);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.candle-form input[type="text"]:focus,
.candle-form textarea:focus {
  border-color: rgba(246, 197, 111, 0.72);
  box-shadow: 0 0 0 4px rgba(246, 197, 111, 0.12);
}

.candle-form textarea {
  resize: vertical;
}

.candle-form fieldset {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.theme-options label {
  margin: 0;
  cursor: pointer;
}

.theme-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-options span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(249, 250, 251, 0.12);
  border-radius: 0.75rem;
  color: rgba(249, 250, 251, 0.8);
  background: rgba(249, 250, 251, 0.06);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-options input:checked + span {
  color: var(--text);
  border-color: rgba(246, 197, 111, 0.45);
  background: rgba(246, 197, 111, 0.12);
}

.theme-dot {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  box-shadow: 0 0 1rem currentColor;
}

.form-submit {
  width: 100%;
}

@keyframes driftAura {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2rem, -1rem, 0) scale(1.08);
  }
}

@keyframes flicker {
  0%, 100% {
    transform: translateX(-50%) rotate(-1deg) scale(1);
    opacity: 0.92;
  }
  25% {
    transform: translateX(-48%) rotate(2deg) scale(1.08, 0.93);
    opacity: 1;
  }
  55% {
    transform: translateX(-53%) rotate(-2deg) scale(0.96, 1.08);
    opacity: 0.84;
  }
  78% {
    transform: translateX(-49%) rotate(1deg) scale(1.05);
    opacity: 0.98;
  }
}

@keyframes breatheGlow {
  0%, 100% {
    opacity: 0.68;
    transform: translateX(-50%) scale(0.88);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.12);
  }
}

@keyframes ambientShift {
  from {
    transform: translate3d(-1%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1%, -1%, 0) scale(1.04);
  }
}

@keyframes rayDrift {
  from {
    transform: translateX(-1rem) rotate(9deg);
    opacity: 0.35;
  }
  to {
    transform: translateX(1.8rem) rotate(13deg);
    opacity: 0.68;
  }
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translate3d(0, 2rem, 0) scale(0.6);
  }
  20%,
  70% {
    opacity: var(--particle-opacity);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--particle-drift), -22rem, 0) scale(1);
  }
}

@media (min-width: 44rem) {
  .nav-links {
    display: flex;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.75fr);
  }

  .meaning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .meaning-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 43.99rem) {
  .site-header {
    position: absolute;
  }

  .brand {
    font-size: 1.1rem;
  }

  .hero-section {
    padding-top: 6rem;
  }

  .hero-altar {
    min-height: 14rem;
  }

  .sanctuary-frame {
    min-height: 34rem;
    border-radius: 0.95rem;
  }

  .particle:nth-child(n + 32),
  .ray-two,
  .ray-three {
    display: none;
  }

  .sanctuary-frame::before {
    animation: none;
  }

  .candle-button.user-candle {
    transform: translate(-50%, -100%) scale(1.16);
  }

  .candle-button.previous-user-candle {
    transform: translate(-50%, -100%) translateY(var(--rise)) scale(0.98);
  }

  .candle-button.user-candle:hover,
  .candle-button.user-candle:focus-visible {
    transform: translate(-50%, -100%) scale(1.22);
  }

  .candle-tooltip {
    width: min(14rem, 72vw);
    padding: 0.85rem;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
