/* =============================================================
   Evermore — A vintage romantic wedding invitation.
   Long-scroll, multi-section, multi-palette. The visual language
   borrows from heirloom stationery: deckled paper, oval gold
   frames, hand-painted florals, oil-painted landscape liners.
   ============================================================= */
@import url('/motion-tokens.css');

/* ---------------- PALETTE TOKENS (audit contract) -------------
   Every palette below MUST define the SAME set of variables —
   audit-palettes.js fails on drift. The variable contract is
   shared with the other templates (same names: --bg-sky, --bg-mist,
   --bg-cream, --bg-dusk, --text-deep, --text-soft, --accent-honey,
   --accent-rose, --ink, --on-dark, --on-dark-soft, --dark-band) so
   shared editor chrome (toolbar/colors strip) stays consistent.

   Set data-palette on <html> to "claret" (default), "sage",
   "indigo", or "blush". The custom-hex path overrides the same
   vars inline.
-------------------------------------------------------------- */

/* 1. claret (default) — deep burgundy + champagne cream */
:root[data-palette="claret"],
:root:not([data-palette]) {
  --bg-sky:       #efe6d6;
  --bg-mist:      #f5ecdb;
  --bg-cream:     #faf3e3;
  --bg-dusk:      #3d1820;
  --text-deep:    #3d1820;
  --text-soft:    #7a4a4f;
  --accent-honey: #8a1f2a;   /* deep claret — primary accent */
  --accent-rose:  #c89d6a;   /* champagne gold — secondary accent */
  --ink:          #3d1820;
  --on-dark:      #faf3e3;
  --on-dark-soft: #ddc89c;
  --dark-band:    61, 24, 32;
}

/* 2. sage — herb garden green + warm cream */
:root[data-palette="sage"] {
  --bg-sky:       #e3e8d4;
  --bg-mist:      #ecefdc;
  --bg-cream:     #f4f5e4;
  --bg-dusk:      #2c3a26;
  --text-deep:    #2c3a26;
  --text-soft:    #5b7350;
  --accent-honey: #4a6b3a;
  --accent-rose:  #b8a878;
  --ink:          #2c3a26;
  --on-dark:      #f4f5e4;
  --on-dark-soft: #c5d2b5;
  --dark-band:    44, 58, 38;
}

/* 3. indigo — midnight blue + antique cream */
:root[data-palette="indigo"] {
  --bg-sky:       #d6dae5;
  --bg-mist:      #e2e4ec;
  --bg-cream:     #eeeef2;
  --bg-dusk:      #1c2240;
  --text-deep:    #1c2240;
  --text-soft:    #4b557a;
  --accent-honey: #2a3565;
  --accent-rose:  #b8a060;
  --ink:          #1c2240;
  --on-dark:      #eeeef2;
  --on-dark-soft: #c1c5d5;
  --dark-band:    28, 34, 64;
}

/* 4. blush — dusty rose + soft taupe */
:root[data-palette="blush"] {
  --bg-sky:       #f1ddd8;
  --bg-mist:      #f6e7e1;
  --bg-cream:     #fbf1ec;
  --bg-dusk:      #4b2a2a;
  --text-deep:    #4b2a2a;
  --text-soft:    #8a6062;
  --accent-honey: #b06770;
  --accent-rose:  #d9b09a;
  --ink:          #4b2a2a;
  --on-dark:      #fbf1ec;
  --on-dark-soft: #e6cabe;
  --dark-band:    75, 42, 42;
}

/* ---------------- Shared root tokens ---------------- */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-script:  'Pinyon Script', 'Segoe Script', cursive;
  --font-sans:    'General Sans', system-ui, -apple-system, sans-serif;

  /* Generous reading rhythm */
  --section-pad-y: clamp(72px, 14vh, 140px);
  --section-pad-x: clamp(20px, 5vw, 56px);
  --content-max: 640px;

  --shadow-card: 0 12px 40px -20px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-soft: 0 6px 24px -10px rgba(0,0,0,0.22);
}

/* ---------------- Page chrome ---------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-deep);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--bg-sky) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-mist) 0%, var(--bg-cream) 60%, var(--bg-mist) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent-honey); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--on-dark);
  padding: 8px 14px; border-radius: 6px;
  z-index: 10001; font-size: 14px;
}
.skip-link:focus { left: 8px; }

/* ---------------- Sections ---------------- */
.evermore {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: var(--section-pad-y) var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.section__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.section__divider {
  display: block;
  width: 64px;
  height: 1px;
  margin: 28px auto;
  background: linear-gradient(90deg, transparent, var(--accent-rose), transparent);
  border: 0;
}

/* ---------------- Typography ---------------- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 16px;
}
.eyebrow--soft {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.script {
  font-family: var(--font-script);
  color: var(--accent-honey);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  margin: 8px 0;
}
.script--names {
  font-size: clamp(48px, 11vw, 96px);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 12px 0 14px;
  color: var(--text-deep);
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.12;
  letter-spacing: 0.005em;
}
.display--hero { font-size: clamp(36px, 8vw, 72px); }
.display--xl  { font-size: clamp(30px, 6vw, 56px); }
.display--lg  { font-size: clamp(24px, 4.4vw, 38px); }
.display--md  { font-size: clamp(20px, 3.5vw, 28px); }
.body-copy {
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 16px;
}
.detail-line {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 1.5;
  color: var(--text-deep);
  margin: 6px 0;
  font-style: italic;
  font-weight: 400;
}

/* ---------------- Buttons ---------------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent-honey);
  background: var(--accent-honey);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn--ghost {
  background: transparent; color: var(--accent-honey);
}
.btn--ghost:hover { background: color-mix(in srgb, var(--accent-honey) 8%, transparent); }

/* =============================================================
   SECTION 1 — Envelope opening
   Click-to-open: closed envelope centered. On tap, the wax seal
   "breaks", flap rotates up, and the invite stack lifts and floats
   to a position revealing the section below.
   ============================================================= */
.section-1 {
  min-height: 100vh;
  padding-top: max(var(--section-pad-y), env(safe-area-inset-top));
}
.evermore-envelope {
  position: relative;
  width: min(86vw, 480px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.25));
  user-select: none;
  -webkit-user-select: none;
}
.evermore-envelope__hint {
  position: absolute;
  left: 50%; bottom: -56px;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  animation: ev-pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes ev-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, 0); }
  50%      { opacity: 1;    transform: translate(-50%, -3px); }
}
.evermore-envelope__body,
.evermore-envelope__flap,
.evermore-envelope__seal-left,
.evermore-envelope__seal-right,
.evermore-envelope__card {
  position: absolute; inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1100ms var(--ease-in-out), opacity 700ms var(--ease-out);
}
.evermore-envelope__body {
  background-image: url('/templates/evermore/frames/envelope_closed.webp');
  z-index: 2;
}
.evermore-envelope__flap {
  background-image: url('/templates/evermore/frames/envelope_open.webp');
  opacity: 0;
  z-index: 3;
  transform-origin: center top;
}
.evermore-envelope__card {
  background-image: url('/templates/evermore/frames/envelope_liner.webp');
  background-color: var(--bg-cream);
  opacity: 0;
  z-index: 4;
  transform: scale(0.78) translateY(8%);
  border-radius: 4px;
  box-shadow: 0 14px 38px -10px rgba(0,0,0,0.4);
  inset: 12% 14% 22% 14%;
}

/* OPENED state */
.evermore-envelope.is-open .evermore-envelope__body {
  transform: translateY(2%);
}
.evermore-envelope.is-open .evermore-envelope__flap {
  opacity: 1;
}
.evermore-envelope.is-open .evermore-envelope__card {
  opacity: 1;
  transform: scale(1) translateY(-22%);
}
.evermore-envelope.is-open .evermore-envelope__hint { display: none; }

.evermore-envelope:focus-visible {
  outline: 3px solid var(--accent-honey);
  outline-offset: 6px;
  border-radius: 8px;
}

/* =============================================================
   SECTION 2 — Main invite
   Oval frame with monogram, names, date, venue.
   Floral corner accents + ribbon detail.
   ============================================================= */
.section-2 {
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg-cream) 70%, white) 100%);
}
.ev-monogram {
  position: relative;
  width: clamp(180px, 32vw, 240px);
  aspect-ratio: 3 / 4;
  margin: 0 auto 24px;
}
.ev-monogram__frame {
  position: absolute; inset: 0;
  background: url('/templates/evermore/frames/oval_frame.webp') center/contain no-repeat;
  z-index: 2;
}
.ev-monogram__letters {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-script);
  font-size: clamp(60px, 11vw, 90px);
  color: var(--accent-honey);
  z-index: 1;
  line-height: 1;
}
.ev-ribbon {
  position: relative;
  width: min(86vw, 520px);
  margin: 28px auto 8px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}
.ev-ribbon__img {
  width: 100%;
  display: block;
}
.ev-ribbon__label {
  position: absolute;
  top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-script);
  font-size: clamp(18px, 3vw, 22px);
  color: var(--on-dark);
  white-space: nowrap;
}
.section-2__florals {
  position: absolute;
  top: -4%; right: -10%;
  width: 38%;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.section-2__florals--bl {
  top: auto; right: auto;
  bottom: -6%; left: -12%;
  transform: scaleX(-1);
}

/* =============================================================
   SECTION 3 — Our Love Story (timeline)
   ============================================================= */
.section-3 {
  background: var(--bg-mist);
}
.ev-story {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  margin-top: 36px;
}
.ev-story-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  text-align: left;
  align-items: start;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--bg-cream) 65%, white);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-rose) 35%, transparent);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.ev-story-item__year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3.4vw, 24px);
  color: var(--accent-honey);
  text-align: center;
  border-right: 1px solid color-mix(in srgb, var(--accent-rose) 50%, transparent);
  padding-right: 12px;
  align-self: stretch;
  display: flex; align-items: center; justify-content: center;
}
.ev-story-item__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.8vw, 22px);
  margin: 0 0 6px;
  font-weight: 500;
  color: var(--text-deep);
}
.ev-story-item__body {
  margin: 0;
  font-size: 15px; line-height: 1.65;
  color: var(--text-soft);
}

/* =============================================================
   SECTION 4 — Wedding Details
   ============================================================= */
.section-4 { background: linear-gradient(180deg, var(--bg-mist), var(--bg-cream)); }
.ev-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}
@media (min-width: 720px) {
  .ev-details-grid { grid-template-columns: 1fr 1fr; }
}
.ev-detail-card {
  padding: 22px 22px;
  background: color-mix(in srgb, var(--bg-cream) 70%, white);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 40%, transparent);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.ev-detail-card__label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-honey);
  margin: 0 0 8px;
}
.ev-detail-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 24px);
  margin: 0 0 6px;
  color: var(--text-deep);
}
.ev-detail-card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
}
.ev-schedule {
  margin: 28px auto 0;
  text-align: left;
  border-left: 2px solid color-mix(in srgb, var(--accent-rose) 60%, transparent);
  padding-left: 22px;
}
.ev-schedule-item { padding: 8px 0; }
.ev-schedule-item__time {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-honey);
  font-size: 16px;
}
.ev-schedule-item__name {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-soft);
  margin-left: 8px;
}
.ev-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

/* =============================================================
   SECTION 5 — RSVP (multi-step)
   ============================================================= */
.section-5 { background: var(--bg-mist); }
.ev-rsvp {
  margin-top: 28px;
  text-align: left;
  background: color-mix(in srgb, var(--bg-cream) 70%, white);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 35%, transparent);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  max-width: 580px;
  margin-left: auto; margin-right: auto;
}
.ev-rsvp__step { display: none; }
.ev-rsvp__step.is-active { display: block; animation: ev-fade-in 360ms var(--ease-out); }
@keyframes ev-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ev-rsvp__progress {
  display: flex; gap: 4px;
  margin-bottom: 22px;
}
.ev-rsvp__progress span {
  flex: 1; height: 3px; border-radius: 2px;
  background: color-mix(in srgb, var(--text-soft) 20%, transparent);
  transition: background 300ms var(--ease-out);
}
.ev-rsvp__progress span.is-done { background: var(--accent-honey); }
.ev-rsvp__field {
  display: flex; flex-direction: column;
  gap: 6px; margin-bottom: 18px;
}
.ev-rsvp__field label,
.ev-rsvp__field legend {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-deep);
  letter-spacing: 0.02em;
}
.ev-rsvp__field input,
.ev-rsvp__field select,
.ev-rsvp__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--text-soft) 30%, transparent);
  background: white;
  border-radius: 10px;
  font: inherit;
  color: var(--text-deep);
  min-height: 44px;
}
.ev-rsvp__field input:focus,
.ev-rsvp__field select:focus,
.ev-rsvp__field textarea:focus {
  outline: 2px solid var(--accent-honey);
  outline-offset: 2px;
}
.ev-rsvp__radios {
  display: grid; gap: 10px;
  border: 0; padding: 0; margin: 0 0 18px;
}
.ev-rsvp__radio {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--accent-rose) 60%, transparent);
  background: white;
  cursor: pointer;
  transition: all 220ms var(--ease-out);
  font-size: 15px;
}
.ev-rsvp__radio input { accent-color: var(--accent-honey); }
.ev-rsvp__radio:has(input:checked) {
  background: color-mix(in srgb, var(--accent-honey) 12%, white);
  border-color: var(--accent-honey);
}
.ev-rsvp__nav {
  display: flex; justify-content: space-between;
  margin-top: 22px;
  gap: 12px;
}
.ev-rsvp__nav .btn { flex: 1 1 auto; }
.ev-rsvp__thanks {
  text-align: center;
  padding: 8px 0;
}
.ev-rsvp__thanks h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--accent-honey);
  margin: 0 0 10px;
}

/* =============================================================
   SECTION 6 — Guest Book
   ============================================================= */
.section-6 { background: linear-gradient(180deg, var(--bg-mist), var(--bg-cream)); }
.ev-guestbook {
  margin-top: 32px;
  display: grid; gap: 14px;
  text-align: left;
}
.ev-guestbook__form {
  background: color-mix(in srgb, var(--bg-cream) 60%, white);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 35%, transparent);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.ev-guestbook__form .ev-rsvp__field { margin-bottom: 12px; }
.ev-guestbook__list {
  display: grid; gap: 14px;
}
.ev-guestbook-entry {
  background: white;
  border: 1px solid color-mix(in srgb, var(--accent-rose) 30%, transparent);
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.ev-guestbook-entry__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-honey);
  font-size: 17px;
  margin: 0 0 4px;
}
.ev-guestbook-entry__msg {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.ev-guestbook-entry__when {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 8px;
  opacity: 0.7;
}
.ev-guestbook__empty {
  text-align: center;
  padding: 32px;
  font-style: italic;
  color: var(--text-soft);
}

/* =============================================================
   SECTION 7 — Registry
   ============================================================= */
.section-7 { background: var(--bg-mist); }
.ev-registry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 600px) {
  .ev-registry { grid-template-columns: repeat(2, 1fr); }
}
.ev-reg-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-rose) 50%, transparent);
  background: white;
  color: var(--text-deep);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  border-left: 4px solid var(--accent-honey);
  text-align: left;
}
.ev-reg-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.ev-reg-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.ev-reg-card__note {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
}
.ev-reg-card__cta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-honey);
}
.ev-cash-fund {
  margin-top: 22px;
  padding: 22px;
  background: color-mix(in srgb, var(--accent-honey) 8%, white);
  border: 1px dashed var(--accent-honey);
  border-radius: 14px;
}
.ev-cash-fund__title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--accent-honey);
}

/* =============================================================
   SECTION 8 — Travel & FAQ
   ============================================================= */
.section-8 { background: linear-gradient(180deg, var(--bg-mist), var(--bg-cream)); }
.ev-faq {
  margin-top: 28px;
  text-align: left;
  border-top: 1px solid color-mix(in srgb, var(--accent-rose) 50%, transparent);
}
.ev-faq-item {
  border-bottom: 1px solid color-mix(in srgb, var(--accent-rose) 50%, transparent);
}
.ev-faq-item__q {
  font-family: var(--font-display);
  font-size: 17px;
  padding: 18px 0;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
  color: var(--text-deep);
}
.ev-faq-item__q::-webkit-details-marker { display: none; }
.ev-faq-item__q::after {
  content: '+';
  font-size: 22px;
  color: var(--accent-honey);
  transition: transform 250ms var(--ease-out);
}
.ev-faq-item[open] .ev-faq-item__q::after {
  content: '−';
}
.ev-faq-item__a {
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* =============================================================
   SECTION 9 — Closer / Save the date
   ============================================================= */
.section-9 {
  background: linear-gradient(180deg, var(--bg-cream), var(--bg-sky));
  text-align: center;
}
.ev-closer-script {
  font-family: var(--font-script);
  color: var(--accent-honey);
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.1;
  margin: 18px 0 4px;
}

/* =============================================================
   COUNTDOWN
   ============================================================= */
.ev-countdown {
  display: flex; gap: 14px;
  justify-content: center;
  align-items: stretch;
  margin: 28px auto;
  flex-wrap: wrap;
}
.ev-countdown__unit {
  display: flex; flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-cream) 70%, white);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 40%, transparent);
  box-shadow: var(--shadow-soft);
}
.ev-countdown__num {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 500;
  color: var(--accent-honey);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ev-countdown__label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 8px;
}

/* =============================================================
   FLOATING NAV (bottom)
   ============================================================= */
.ev-floatnav {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 30%, transparent);
  box-shadow: var(--shadow-card);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.ev-floatnav::-webkit-scrollbar { display: none; }
.ev-floatnav.is-visible {
  opacity: 1; pointer-events: auto;
}
.ev-floatnav__btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  width: 38px; height: 38px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 220ms var(--ease-out);
  flex: 0 0 auto;
}
.ev-floatnav__btn:hover,
.ev-floatnav__btn.is-active {
  background: color-mix(in srgb, var(--accent-honey) 14%, transparent);
  color: var(--accent-honey);
}
.ev-floatnav__btn svg { width: 18px; height: 18px; }
.ev-floatnav__sep {
  width: 1px; height: 22px;
  background: color-mix(in srgb, var(--text-soft) 25%, transparent);
  margin: 0 4px;
}

.ev-lang-toggle {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 60;
  display: inline-flex;
  background: rgba(255,255,255,0.92);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 30%, transparent);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ev-lang-toggle__btn {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.ev-lang-toggle__btn.is-active {
  background: var(--accent-honey);
  color: var(--on-dark);
}

/* =============================================================
   REVEAL ON SCROLL (uses .uv-reveal contract)
   ============================================================= */
.reveal-child {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal-child.is-revealed,
.uv-reveal.is-revealed {
  opacity: 1; transform: none;
}

/* Highlight pulse used by drawer → canvas */
.uv-highlight-pulse {
  animation: ev-highlight-pulse 1.4s var(--ease-out);
}
@keyframes ev-highlight-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-honey) 70%, transparent); }
  60%  { box-shadow: 0 0 0 18px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* =============================================================
   PREVIEW CHROME
   ============================================================= */
.preview-back, .preview-claim {
  position: fixed;
  z-index: 70;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--text-soft) 18%, transparent);
  box-shadow: var(--shadow-soft);
}
.preview-back {
  top: 14px; left: 14px;
  color: var(--text-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.preview-claim {
  bottom: 80px; right: 14px;
  background: var(--accent-honey);
  color: var(--on-dark);
  border-color: var(--accent-honey);
}

@media (max-width: 640px) {
  .preview-claim { bottom: 80px; }
  .section-2__florals { width: 56%; opacity: 0.7; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; transition-duration: 100ms !important; }
  .reveal-child { opacity: 1 !important; transform: none !important; }
}

/* Made with line */
.made-with {
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.7;
}
.made-with a { color: inherit; text-decoration: none; }
