/* ─────────────────────────────────────────────────────────────────────────
   Warm Ember — shared theme for the María José memorial site.
   Candlelit ivory · garnet + gold · elegant serif · hopeful, never somber.
   (Standalone — does NOT import the slideshow's CSS module.)
   ───────────────────────────────────────────────────────────────────────── */

.theme {
  /* palette */
  --ink: #6e1620;
  --garnet: #7a1620;
  --garnet-bright: #a4322f;
  --lotus-red: #b9263a;
  --warm-red: #d9434f;
  --gold: #c79a55;
  --gold-soft: #e3b067;
  --cream: #f3ead2;
  --paper: #fff8e8;
  --muted: #9a6a4a;
  --wood-1: #c79a55;
  --wood-2: #8a5a2e;
  --wood-3: #5b3a1c;

  --serif-stack: var(--serif, "Cormorant Garamond", Georgia, "Times New Roman", serif);

  position: relative;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--serif-stack);
  background:
    radial-gradient(120% 95% at 50% 8%, #fffdf8 0%, #f7eedd 44%, #efe0cb 74%, #e6d2b8 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* soft candle glow that lives behind everything */
.glow {
  position: fixed;
  top: -26vh;
  left: 50%;
  width: 88vh;
  height: 88vh;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 197, 138, 0.42) 0%, rgba(232, 197, 138, 0) 62%);
  pointer-events: none;
  z-index: 0;
  animation: breathe 16s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.92; transform: translateX(-50%) scale(1.06); }
}

.content {
  position: relative;
  z-index: 2;
}

/* ── Container / layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 6vw;
  box-sizing: border-box;
}
.section { padding: clamp(48px, 8vh, 96px) 0; }
.narrow { max-width: 760px; }

/* ── Typography ──────────────────────────────────────────────────────── */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: clamp(11px, 1.4vw, 14px);
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 1.2rem;
  padding-left: 0.42em;
}
.h1 {
  font-weight: 500;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1.04;
  letter-spacing: 0.5px;
  color: var(--garnet);
  margin: 0;
}
.h2 {
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.1;
  color: var(--garnet);
  margin: 0 0 0.6em;
}
.h3 {
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--garnet-bright);
  margin: 0 0 0.3em;
}
.lead {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
  color: #6b4a3a;
}
.body { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: #5c4032; }
.italic { font-style: italic; }
.years {
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.7vw, 20px);
  color: #b08a4e;
  padding-left: 0.5em;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--serif-stack);
  font-size: clamp(16px, 1.7vw, 20px);
  letter-spacing: 0.02em;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  line-height: 1;
}
.btnPrimary {
  background: linear-gradient(180deg, var(--warm-red), var(--lotus-red));
  color: #fff7ec;
  box-shadow: 0 6px 20px rgba(140, 30, 34, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btnPrimary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(140, 30, 34, 0.42); }
.btnGhost {
  background: rgba(255, 248, 232, 0.6);
  color: var(--garnet);
  border-color: rgba(199, 154, 85, 0.6);
  box-shadow: 0 2px 10px rgba(120, 80, 45, 0.12);
}
.btnGhost:hover { transform: translateY(-2px); background: rgba(255, 248, 232, 0.92); }

/* ── Framed paper sign — the show's framed-card look (layered wood) ───── */
.framedCard {
  position: relative;
  background: radial-gradient(120% 130% at 50% 0%, #fff8e8 0%, #f6ead0 68%, #efdcbd 100%);
  border-radius: 6px;
  box-shadow:
    0 0 0 5px var(--wood-1),
    0 0 0 11px var(--wood-2),
    0 0 0 15px var(--wood-3),
    0 18px 48px rgba(20, 8, 10, 0.28);
  padding: clamp(28px, 5vw, 56px);
}

/* media wrapped in the same layered wood frame */
.woodFrame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #2a1a12;
  box-shadow:
    0 0 0 4px var(--wood-1),
    0 0 0 9px var(--wood-2),
    0 0 0 12px var(--wood-3),
    0 14px 36px rgba(20, 8, 10, 0.34);
}

/* a softer card without the heavy frame, for lists / quotes */
.softCard {
  background: rgba(255, 250, 238, 0.78);
  border: 1px solid rgba(199, 154, 85, 0.42);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(120, 80, 45, 0.12);
  padding: clamp(20px, 3vw, 32px);
  backdrop-filter: blur(2px);
}

/* ── Lotus ───────────────────────────────────────────────────────────── */
.lotus { display: block; }
.lotusGlow { filter: drop-shadow(0 6px 22px rgba(140, 30, 34, 0.4)); }

/* ── Petals drifting upward — deep red, sparse, elegant ──────────────── */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute;
  bottom: -8vh;
  width: 16px;
  height: 20px;
  opacity: 0.42;
  animation-name: floatUp;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
.petal svg { width: 100%; height: 100%; display: block; }
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.45; }
  88%  { opacity: 0.4; }
  100% { transform: translateY(-112vh) translateX(7vw) rotate(220deg); opacity: 0; }
}

/* ── Divider ─────────────────────────────────────────────────────────── */
.lotusDivider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: clamp(28px, 5vh, 56px) 0;
  color: var(--gold);
}
.lotusDivider::before,
.lotusDivider::after {
  content: "";
  height: 1px;
  width: clamp(40px, 18vw, 160px);
  background: linear-gradient(90deg, transparent, rgba(199, 154, 85, 0.7), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .glow, .petal { animation: none; }
  .glow { opacity: 0.7; }
}
