/* ============================================
   Small Sparks — design tokens
   ============================================ */
:root {
  --ink-deep: #170D2E;
  --ink-mid: #241A42;
  --amber: #F4A259;
  --coral: #F2635A;
  --cream: #F6F1E9;
  --lavender: #B9AFCB;
  --lavender-dim: #8B80A6;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================
   INTRO PAGE
   ============================================ */

.intro-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(244, 162, 89, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-mid) 100%);
  padding: 32px 24px;
}

/* Rising ember particles */
.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px 2px rgba(244, 162, 89, 0.7);
  opacity: 0;
  animation-name: rise;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}

.ember:nth-child(1)  { left: 8%;  width: 4px; height: 4px; animation-duration: 9s;  animation-delay: 0.2s; }
.ember:nth-child(2)  { left: 18%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 2.1s; background: var(--coral); box-shadow: 0 0 8px 2px rgba(242, 99, 90, 0.6);}
.ember:nth-child(3)  { left: 27%; width: 3px; height: 3px; animation-duration: 8s;  animation-delay: 4.4s; }
.ember:nth-child(4)  { left: 39%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 1.1s; }
.ember:nth-child(5)  { left: 52%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: 3.3s; background: var(--coral); box-shadow: 0 0 8px 2px rgba(242, 99, 90, 0.6);}
.ember:nth-child(6)  { left: 64%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: 0.8s; }
.ember:nth-child(7)  { left: 73%; width: 3px; height: 3px; animation-duration: 9s;  animation-delay: 5.2s; }
.ember:nth-child(8)  { left: 84%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 2.6s; }
.ember:nth-child(9)  { left: 92%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: 4.9s; background: var(--coral); box-shadow: 0 0 8px 2px rgba(242, 99, 90, 0.6);}
.ember:nth-child(10) { left: 47%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 6.4s; }

@keyframes rise {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  10%  { opacity: 0.9; }
  85%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-92vh) translateX(18px); }
}

.intro-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--cream);
}

.intro-title .word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(14px);
  animation: settle-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-title .word:nth-child(1) { animation-delay: 0.25s; }
.intro-title .word:nth-child(2) { animation-delay: 0.55s; }

@keyframes settle-in {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.intro-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--lavender);
  margin: 14px 0 0;
  opacity: 0;
  animation: fade-up 1s ease-out forwards;
  animation-delay: 1.15s;
}

.intro-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--cream);
  max-width: 30em;
  margin: 44px 0 0;
  opacity: 0;
  animation: fade-up 1s ease-out forwards;
  animation-delay: 1.7s;
}

.intro-quote::before,
.intro-quote::after {
  content: "\2014";
  color: var(--amber);
  margin: 0 8px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.enter-box {
  margin-top: 48px;
  opacity: 0;
  animation: fade-up 0.9s ease-out forwards;
  animation-delay: 2.35s;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: transparent;
  border: 1px solid rgba(244, 162, 89, 0.55);
  border-radius: 2px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  border-color: var(--amber);
  background: rgba(244, 162, 89, 0.08);
  box-shadow: 0 0 22px rgba(244, 162, 89, 0.25);
}

.enter-button .arrow {
  transition: transform 0.3s ease;
  color: var(--amber);
}

.enter-button:hover .arrow {
  transform: translateX(4px);
}

/* Reduced motion: skip the choreography, just show everything */
@media (prefers-reduced-motion: reduce) {
  .ember { animation: none; opacity: 0; }
  .intro-title .word,
  .intro-tagline,
  .intro-quote,
  .enter-box {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* ============================================
   HOME PAGE
   ============================================ */

.home-page {
  min-height: 100vh;
  background: var(--ink-deep);
}

/* Fixed sky: warm drifting clouds up top, fading into twinkling stars below.
   Stays put behind the page as it scrolls, so the top of the screen always
   reads bright and the lower half always reads night. */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #3C2A62 0%,
    #2C1D4C 24%,
    #211642 48%,
    #170D2E 74%,
    #110820 100%
  );
}

.site-bg::before {
  content: "";
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(244, 162, 89, 0.17), transparent 68%);
  filter: blur(6px);
}

.clouds {
  position: absolute;
  top: 0;
  left: -10%;
  right: -10%;
  height: 46%;
}

.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  background: radial-gradient(circle at 35% 35%, rgba(246, 241, 233, 0.85), rgba(244, 162, 89, 0.3) 62%, transparent 76%);
  animation: cloud-drift ease-in-out infinite;
}

.cloud:nth-child(1) { width: 380px; height: 190px; top: 4%;  left: 6%;  opacity: 0.55; animation-duration: 100s; }
.cloud:nth-child(2) { width: 260px; height: 140px; top: 20%; left: 55%; opacity: 0.4;  animation-duration: 80s;  animation-delay: -12s; }
.cloud:nth-child(3) { width: 440px; height: 210px; top: 1%;  left: 60%; opacity: 0.35; animation-duration: 130s; animation-delay: -40s; }
.cloud:nth-child(4) { width: 220px; height: 120px; top: 28%; left: 12%; opacity: 0.45; animation-duration: 70s;  animation-delay: -22s; }
.cloud:nth-child(5) { width: 320px; height: 160px; top: 12%; left: 32%; opacity: 0.3;  animation-duration: 110s; animation-delay: -60s; }

@keyframes cloud-drift {
  0%   { transform: translateX(-6%); }
  50%  { transform: translateX(6%); }
  100% { transform: translateX(-6%); }
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: var(--cream);
  animation-name: twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .star { animation: none; }
}

/* Foreground content sits above the fixed sky */
.home-header,
.hero,
.occasion-grid,
.home-footer {
  position: relative;
  z-index: 1;
}

.home-header {
  padding: 18px 24px;
}

.home-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(15, 9, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 162, 89, 0.16);
  border-radius: 8px;
  padding: 14px 22px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.brand-dot {
  color: var(--amber);
}

.home-tagline {
  font-size: 0.85rem;
  color: var(--lavender-dim);
  margin: 0;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.hero-panel {
  background: rgba(15, 9, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 162, 89, 0.16);
  border-radius: 8px;
  padding: 40px 36px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 14em;
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p {
  color: var(--lavender);
  max-width: 42em;
  font-size: 1.05rem;
  margin: 0;
}

.occasion-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(185, 175, 203, 0.14);
  border-top: 1px solid rgba(185, 175, 203, 0.18);
}

@media (max-width: 720px) {
  .occasion-grid { grid-template-columns: 1fr; }
}

.spark-card {
  background: rgba(23, 13, 46, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0;
}

.spark-card summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.spark-card summary::-webkit-details-marker { display: none; }

.spark-card summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.spark-card[open] summary::before,
.spark-card summary:hover::before {
  opacity: 1;
}

.summary-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.occasion-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream);
}

.occasion-note {
  font-size: 0.88rem;
  color: var(--lavender-dim);
}

.summary-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(185, 175, 203, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.spark-card[open] .summary-icon {
  transform: rotate(45deg);
  border-color: var(--amber);
}

.spark-content {
  padding: 0 28px 32px;
  max-width: 34em;
}

.spark-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--cream);
  margin: 0 0 16px;
}

.spark-activity {
  font-size: 0.92rem;
  color: var(--lavender);
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 2px solid rgba(244, 162, 89, 0.4);
}

.spark-activity span {
  color: var(--amber);
}

.spark-refresh {
  background: none;
  border: none;
  color: var(--lavender);
  font-size: 0.88rem;
  padding: 0;
  border-bottom: 1px solid rgba(185, 175, 203, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.spark-refresh:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.home-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 60px;
  color: var(--lavender-dim);
  font-size: 0.82rem;
  border-top: 1px solid rgba(185, 175, 203, 0.18);
}
