/* ===================================================
   ELISSA'S ANNIVERSARY SITE — SHARED STYLES
   Edit colours here to restyle the whole site
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@200;300;400&display=swap');

/* ---- COLOUR VARIABLES — edit these! ---- */
:root {
  --rose:       #e8a0b0;
  --rose-deep:  #c4607a;
  --rose-pale:  #fce8ee;
  --rose-blush: #f5d0da;
  --cream:      #fdf7f0;
  --gold:       #c9a96e;
  --gold-light: #e8d5b0;
  --dark:       #2d1a22;
  --mid:        #6b3a4e;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- FALLING PETAL CANVAS ---- */
#petalCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ---- STARS ---- */
.star {
  position: fixed;
  width: 2px; height: 2px;
  background: var(--gold);
  border-radius: 50%;
  animation: twinkle var(--d) ease infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50%       { opacity: 0.8; }
}

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(253, 247, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rose-blush);
}
nav a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s;
}
nav a:hover, nav a.active {
  background: var(--rose-pale);
  color: var(--rose-deep);
}

/* ---- PAGE FADE IN ---- */
main {
  animation: fadeIn 0.8s ease both;
  position: relative;
  z-index: 1;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- HERO / HOME ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 80px 24px 48px;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  animation: slideDown 1s ease 0.3s both;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 300;
  line-height: 1;
  color: var(--dark);
  margin-bottom: 8px;
  animation: slideDown 1s ease 0.5s both;
}
.hero-title em { color: var(--rose-deep); font-style: italic; }

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: var(--mid);
  margin-bottom: 36px;
  animation: slideDown 1s ease 0.7s both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- TIMER ---- */
.timer-caption {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
  animation: slideDown 1s ease 0.9s both;
}

.timer-block {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  animation: slideDown 1s ease 1s both;
}
.timer-unit { text-align: center; }
.timer-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 600;
  color: var(--rose-deep);
  line-height: 1;
  display: block;
}
.timer-label {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 4px;
  display: block;
}
.timer-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--rose-blush);
  align-self: center;
  padding-bottom: 18px;
}
.timer-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--mid);
  margin-bottom: 36px;
  animation: slideDown 1s ease 1.1s both;
}

/* ---- HEART DIVIDER ---- */
.heart-divider {
  color: var(--rose);
  font-size: 18px;
  margin: 12px 0 24px;
  animation: heartbeat 2s ease infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

/* ---- CTA BUTTON ---- */
.cta-btn {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: var(--rose-pale);
  border: 1px solid var(--rose-blush);
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s;
  animation: slideDown 1s ease 1.2s both;
}
.cta-btn:hover {
  background: var(--rose-blush);
  transform: translateY(-2px);
}

/* ---- INNER PAGE LAYOUT ---- */
.section {
  padding: 100px 24px 60px;
  max-width: 760px;
  margin: 0 auto;
}
.section-eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  letter-spacing: 0.3em;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 300;
  color: var(--dark);
  text-align: center;
  margin-bottom: 8px;
}
.section-title em { color: var(--rose-deep); font-style: italic; }
.section-note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--mid);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* ---- REASONS ---- */
.reasons-grid { display: flex; flex-direction: column; gap: 0; }
.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rose-blush);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reason-item.visible { opacity: 1; transform: translateX(0); }
.reason-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--rose-blush);
  min-width: 44px;
  line-height: 1;
  padding-top: 4px;
}
.reason-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--dark);
}
.reason-heart { color: var(--rose); margin-left: 8px; font-size: 14px; }

/* ---- LETTERS ---- */
.letters-container { display: flex; flex-direction: column; gap: 28px; }
.letter-card {
  background: white;
  border: 1px solid var(--rose-blush);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s;
}
.letter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-blush), var(--rose-deep), var(--gold));
}
.letter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(196,96,122,0.1);
}
.letter-date {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.letter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  color: var(--rose-deep);
  margin-bottom: 10px;
}
.letter-preview {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.7;
}
.letter-full {
  display: none;
  margin-top: 20px;
  border-top: 1px solid var(--rose-blush);
  padding-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.85;
}
.letter-full p { margin-bottom: 16px; }
.letter-sign {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--rose-deep);
  margin-top: 16px;
  text-align: right;
}
.letter-card.open .letter-full { display: block; }
.read-more {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-top: 16px;
  display: inline-block;
  border-bottom: 1px solid var(--rose-blush);
  cursor: pointer;
}

/* ---- QUIZ ---- */
.quiz-wrap { max-width: 580px; margin: 0 auto; }
.quiz-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.quiz-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose-blush);
  transition: all 0.3s;
}
.quiz-dot.done    { background: var(--rose-deep); }
.quiz-dot.current { background: var(--rose); transform: scale(1.35); }
.quiz-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.4;
  text-align: center;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 14px;
  background: white;
  border: 1px solid var(--rose-blush);
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s;
  color: var(--dark);
}
.quiz-opt:hover   { background: var(--rose-pale); border-color: var(--rose); }
.quiz-opt.correct { background: #e8f5e9; border-color: #81c784; color: #2e7d32; }
.quiz-opt.wrong   { background: #fce4ec; border-color: #f48fb1; color: #880e4f; }
.quiz-result {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  animation: fadeIn 0.8s ease;
}
.quiz-score   { font-size: 72px; font-weight: 300; color: var(--rose-deep); line-height: 1; }
.quiz-verdict { font-size: 24px; font-style: italic; color: var(--mid); margin-top: 8px; }
.quiz-msg     { font-size: 18px; color: var(--dark); margin-top: 16px; line-height: 1.6; }
.quiz-retry {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: var(--rose-pale);
  border: 1px solid var(--rose-blush);
  padding: 12px 28px;
  border-radius: 24px;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.3s;
}
.quiz-retry:hover { background: var(--rose-blush); }

/* ---- MEMORIES ---- */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.memory-card {
  background: white;
  border: 1px solid var(--rose-blush);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.4s;
  opacity: 0;
  transform: scale(0.92);
}
.memory-card.visible { opacity: 1; transform: scale(1); }
.memory-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(196,96,122,0.12);
}
.memory-icon  { font-size: 28px; margin-bottom: 12px; display: block; }
.memory-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--rose-deep);
  margin-bottom: 6px;
}
.memory-text {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
}

/* ---- PROMISES ---- */
.promise-list { display: flex; flex-direction: column; gap: 20px; }
.promise-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: white;
  border: 1px solid var(--rose-blush);
  border-radius: 10px;
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(20px);
}
.promise-item.visible { opacity: 1; transform: translateY(0); }
.promise-item:hover { border-color: var(--rose); transform: translateY(-3px); }
.promise-icon  { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.promise-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--rose-deep);
  margin-bottom: 4px;
}
.promise-desc {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
}

/* ---- FOREVER PAGE ---- */
.forever-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 80px 24px 40px;
}
.final-rose {
  font-size: 64px;
  margin-bottom: 24px;
  display: block;
  animation: bloom 1.5s ease infinite alternate;
}
@keyframes bloom {
  from { transform: scale(0.9) rotate(-5deg); }
  to   { transform: scale(1.1) rotate(5deg); }
}
.final-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.final-title em { color: var(--rose-deep); font-style: italic; }
.final-msg {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--mid);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.final-sign {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--rose-deep);
  margin-bottom: 36px;
}
.confetti-btn {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: white;
  background: var(--rose-deep);
  border: none;
  padding: 16px 36px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}
.confetti-btn:hover { transform: scale(1.05); background: var(--mid); }
