/* ─── Wedding site — full stylesheet ─────────────────────────────────── */

/* Palette themes — body[data-palette=…] swaps the variables */
body[data-palette="sage"] {
  --ivory: oklch(0.97 0.012 90);
  --ivory-2: oklch(0.94 0.018 90);
  --sage: oklch(0.72 0.035 145);
  --sage-deep: oklch(0.5 0.04 148);
  --moss: oklch(0.30 0.028 150);
  --moss-soft: oklch(0.42 0.025 150);
  --blush: oklch(0.82 0.04 30);
  --line: oklch(0.5 0.04 148 / 0.22);
}
body[data-palette="terracotta"] {
  --ivory: oklch(0.97 0.014 70);
  --ivory-2: oklch(0.93 0.022 65);
  --sage: oklch(0.68 0.09 40);
  --sage-deep: oklch(0.52 0.11 35);
  --moss: oklch(0.32 0.045 40);
  --moss-soft: oklch(0.45 0.04 40);
  --blush: oklch(0.78 0.07 25);
  --line: oklch(0.52 0.11 35 / 0.22);
}
body[data-palette="dusk"] {
  --ivory: oklch(0.96 0.008 280);
  --ivory-2: oklch(0.92 0.012 280);
  --sage: oklch(0.62 0.05 270);
  --sage-deep: oklch(0.42 0.07 275);
  --moss: oklch(0.26 0.04 275);
  --moss-soft: oklch(0.42 0.04 275);
  --blush: oklch(0.78 0.05 340);
  --line: oklch(0.42 0.07 275 / 0.22);
}
body[data-palette="ink"] {
  --ivory: oklch(0.96 0.004 90);
  --ivory-2: oklch(0.92 0.006 90);
  --sage: oklch(0.55 0.005 90);
  --sage-deep: oklch(0.3 0.005 90);
  --moss: oklch(0.18 0.005 90);
  --moss-soft: oklch(0.4 0.005 90);
  --blush: oklch(0.82 0.04 30);
  --line: oklch(0.3 0.005 90 / 0.22);
}
body[data-palette="pop"] {
  /* Extracted from the wedding illustration: mustard, midnight, blush, mint */
  --ivory: oklch(0.96 0.022 90);
  --ivory-2: oklch(0.92 0.04 88);
  --sage: oklch(0.78 0.14 85);              /* mustard accent */
  --sage-deep: oklch(0.55 0.16 70);         /* deeper mustard for hover/contrast */
  --moss: oklch(0.26 0.07 270);             /* midnight ink */
  --moss-soft: oklch(0.42 0.06 270);
  --blush: oklch(0.78 0.13 30);             /* coral cheek */
  --mint: oklch(0.84 0.07 175);             /* hair-tip mint */
  --line: oklch(0.26 0.07 270 / 0.22);
}

/* Font pair themes */
body[data-fontpair="cormorant_jost"] {
  --display: "Cormorant Garamond", serif;
  --body: "Jost", sans-serif;
  --hand: "Caveat", cursive;
}
body[data-fontpair="italiana_inter"] {
  --display: "Italiana", serif;
  --body: "Inter", sans-serif;
  --hand: "Caveat", cursive;
}
body[data-fontpair="dmserif_manrope"] {
  --display: "DM Serif Display", serif;
  --body: "Manrope", sans-serif;
  --hand: "Caveat", cursive;
}
body[data-fontpair="bricolage_jakarta"] {
  --display: "Bricolage Grotesque", serif;
  --body: "Plus Jakarta Sans", sans-serif;
  --hand: "Caveat", cursive;
}

body { background: var(--ivory); color: var(--moss); }
body, html { overflow-x: hidden; }

/* ─── Section base ────────────────────────────────────────────────────── */
.section {
  padding: 120px 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-head > .eyebrow { margin: 16px 0 12px; }
.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.section-title .ital { font-style: italic; font-weight: 300; }
.section-lede {
  color: var(--moss-soft);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ─── HERO ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, var(--ivory) 0%, color-mix(in oklch, var(--ivory), var(--sage) 8%) 100%);
}
.hero-typo {
  padding: 140px 32px 110px;
}
.hero-typo-sprigs {
  display: flex; justify-content: center; gap: 22px;
  margin-bottom: 18px;
  opacity: 0.9;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero-names {
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 8.4rem);
  line-height: 0.95;
  font-weight: 300;
  margin: 8px 0 18px;
  letter-spacing: -0.015em;
}
.hero-names .ital { font-style: italic; }
.hero-names .amp {
  font-style: italic;
  color: var(--sage-deep);
  display: inline-block;
  margin: 0 0.18em;
  font-weight: 300;
}
.hero-names-stacked { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 0.92; }
.hero-names-stacked .amp-line {
  font-family: var(--display); font-style: italic;
  font-size: 0.5em; color: var(--sage-deep); margin: 0.04em 0 0.04em 0.5em;
}
.hero .hand { display: block; margin: -10px 0 14px; font-size: 2.6rem; }
.hero-sub {
  max-width: 520px;
  margin: 18px auto 36px;
  color: var(--moss-soft);
  font-size: 1.0625rem;
  text-wrap: pretty;
}
.hero-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 28px;
  background: var(--moss);
  color: var(--ivory);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-cta:hover { background: var(--sage-deep); transform: translateY(-1px); }

/* Countdown */
.countdown {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in oklch, var(--ivory), white 30%);
  padding: 14px 4px;
  margin: 28px auto 0;
}
.cd-cell {
  text-align: center;
  padding: 6px 18px;
  border-right: 1px solid var(--line);
}
.cd-cell:last-child { border-right: none; }
.cd-num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--moss);
  font-variant-numeric: tabular-nums;
}
.cd-lbl { margin-top: 8px; font-size: 10px; }

/* Hero — image variant */
.hero-image {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--moss);
}
.hero-image image-slot {
  --is-bg: color-mix(in oklch, var(--moss), black 10%);
  --is-fg: rgba(255,255,255,0.5);
  --is-border: rgba(255,255,255,0.15);
}
.hero-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.hero-image-content {
  position: relative; z-index: 2;
  text-align: center;
  color: white;
  padding: 0 24px;
}
.hero-names-on-image { color: white; }
.hero-image-content .hero-cta {
  background: white; color: var(--moss);
}
.hero-image-content .countdown {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.hero-image-content .cd-num { color: white; }
.hero-image-content .cd-lbl { color: rgba(255,255,255,0.7); }
.hero-image-content .cd-cell { border-color: rgba(255,255,255,0.18); }

/* Hero — split variant */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 88vh;
  padding: 80px 64px;
  text-align: left;
}
.hero-split-text { padding-left: 24px; }
.hero-split-text .countdown { margin-left: 0; margin-right: 0; }
.hero-split-text .hero-sub { margin-left: 0; }
.hero-split-image { height: 70vh; min-height: 480px; }
.hero-split .rule { margin-bottom: 18px; }

/* ─── SCHEDULE ──────────────────────────────────────────────────────── */
.schedule { background: var(--ivory); }
.timeline {
  list-style: none; padding: 0; margin: 0;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 116px;
  top: 14px; bottom: 14px;
  width: 1px;
  background: var(--line);
}
.t-item {
  display: grid;
  grid-template-columns: 96px 40px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
}
.t-time {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--sage-deep);
  text-align: right;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.t-dot {
  display: flex; justify-content: center; padding-top: 14px;
  position: relative;
}
.t-dot-inner {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1.5px solid var(--sage-deep);
  position: relative; z-index: 1;
}
.t-title {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0 0 4px;
  font-weight: 400;
}
.t-note {
  margin: 0;
  color: var(--moss-soft);
  font-size: 0.98rem;
}

/* ─── GIFT ─────────────────────────────────────────────────────────── */
.gift { background: color-mix(in oklch, var(--ivory), var(--sage) 4%); }
.gift-card {
  max-width: 680px;
  margin: 0 auto;
  background: color-mix(in oklch, var(--ivory), white 40%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 48px 56px;
  text-align: center;
}
.gift-card-head { margin-bottom: 32px; }
.gift-card-head .hand { color: var(--sage-deep); margin-bottom: 12px; }
.gift-sub {
  color: var(--moss-soft);
  max-width: 460px;
  margin: 0 auto;
  text-wrap: pretty;
}
.gift-fields {
  margin: 0;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.gf-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.gf-row:last-child { border-bottom: none; }
.gf-row dt {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
}
.gf-row dd { margin: 0; font-size: 1rem; color: var(--moss); }
.iban {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.iban-text {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--moss);
}
.iban-copy {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sage-deep);
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.iban-copy:hover { background: var(--sage-deep); color: var(--ivory); border-color: var(--sage-deep); }
.gift-foot {
  margin: 28px 0 0;
  color: var(--moss-soft);
  font-size: 0.95rem;
  font-style: italic;
}
.gift-foot a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ─── IMPACT ────────────────────────────────────────────────────────── */
.impact { background: var(--ivory); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cause-card {
  background: color-mix(in oklch, var(--ivory), white 30%);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cause-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -20px oklch(0.3 0.03 150 / 0.3); }
.cause-card image-slot {
  --is-bg: color-mix(in oklch, var(--sage), white 60%);
  --is-fg: var(--sage-deep);
  --is-border: transparent;
}
.cause-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.cause-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 12px;
  font-weight: 500;
}
.cause-title {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 0 0 4px;
  font-weight: 400;
  line-height: 1.15;
}
.cause-org {
  font-style: italic;
  color: var(--moss-soft);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.cause-blurb {
  margin: 0 0 18px;
  color: var(--moss-soft);
  font-size: 0.95rem;
  flex: 1;
  text-wrap: pretty;
}
.cause-link {
  color: var(--moss);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--moss);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cause-link:hover { color: var(--sage-deep); border-color: var(--sage-deep); }

.impact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.cause-row {
  display: grid;
  grid-template-columns: 60px 180px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.cause-row-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 2rem;
  color: var(--sage-deep);
  font-variant-numeric: tabular-nums;
}
.cause-row-img image-slot {
  --is-bg: color-mix(in oklch, var(--sage), white 60%);
  --is-fg: var(--sage-deep);
  --is-border: transparent;
}
.cause-link-btn {
  padding: 12px 22px;
  border: 1px solid var(--moss);
  border-radius: 999px;
  text-align: center;
}
.cause-link-btn:hover { background: var(--moss); color: var(--ivory); }

.impact-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.cause-card-hero { grid-row: span 2; }
.impact-mosaic-rest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cause-card-sm .cause-body { padding: 18px 20px 20px; }
.cause-card-sm .cause-blurb { font-size: 0.88rem; }

.impact-note {
  text-align: center;
  margin: 56px auto 0;
  max-width: 560px;
  color: var(--moss-soft);
  font-style: italic;
  text-wrap: pretty;
}

/* ─── RSVP ─────────────────────────────────────────────────────────── */
.rsvp { background: color-mix(in oklch, var(--ivory), var(--sage) 5%); }
.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.field { display: grid; gap: 8px; }
.field > label, .field > legend {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
  padding: 0;
}
.field .hint {
  font-family: var(--display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--moss-soft);
  font-weight: 400;
}
.field input[type="text"],
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 14px 16px;
  background: color-mix(in oklch, var(--ivory), white 30%);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--moss);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  background: white;
}
.field input[aria-invalid="true"] { border-color: oklch(0.55 0.18 25); }
.err {
  font-size: 0.85rem;
  color: oklch(0.5 0.18 25);
  font-style: italic;
}
fieldset.field {
  border: none;
  margin: 0; padding: 0;
}
.radios {
  display: grid;
  gap: 10px;
}
.radio {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: color-mix(in oklch, var(--ivory), white 30%);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio .dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--sage-deep);
  position: relative;
  flex-shrink: 0;
}
.radio .dot::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--sage-deep);
  transform: scale(0);
  transition: transform 0.15s ease;
}
.radio.is-checked {
  border-color: var(--sage-deep);
  background: white;
}
.radio.is-checked .dot::after { transform: scale(1); }
.radio:hover { border-color: var(--sage-deep); }

.rsvp-submit {
  margin-top: 16px;
  padding: 16px 32px;
  background: var(--moss);
  color: var(--ivory);
  border: none;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  justify-self: center;
}
.rsvp-submit:hover { background: var(--sage-deep); transform: translateY(-1px); }

.rsvp-reset {
  margin-top: 32px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sage-deep);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.rsvp-reset:hover { background: var(--sage-deep); color: var(--ivory); border-color: var(--sage-deep); }

/* ─── Pop palette: section backgrounds echo the 4 illustration panels ─
 *  Panel 1 (mustard)  → Hero
 *  Panel 2 (midnight) → Schedule, Photos
 *  Panel 3 (peach)    → Gift / travel fund
 *  Panel 4 (mint)     → Impact / donations
 *  Panel 1 (cream)    → RSVP (closing the loop)
 */
body[data-palette="pop"] .section + .section,
body[data-palette="pop"] .footer { border-top: none; }

body[data-palette="pop"] .hero-illu {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in oklch, var(--sage), white 45%) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, color-mix(in oklch, var(--blush), white 60%) 0%, transparent 42%),
    color-mix(in oklch, var(--ivory), var(--sage) 14%);
}

/* — Schedule: midnight starry panel — */
body[data-palette="pop"] .schedule {
  background: var(--moss);
  position: relative;
  overflow: hidden;
}
body[data-palette="pop"] .schedule::before {
  /* sparse star field */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 68%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 38% 32%, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 82%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 22%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 58%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 14%, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 88%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 88%, rgba(255,255,255,0.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 12%, rgba(255,255,255,0.55) 50%, transparent 51%);
  pointer-events: none;
}
body[data-palette="pop"] .schedule .container { position: relative; z-index: 1; }
body[data-palette="pop"] .schedule .section-title,
body[data-palette="pop"] .schedule .t-title { color: white; }
body[data-palette="pop"] .schedule .section-lede { color: rgba(255,255,255,0.72); }
body[data-palette="pop"] .schedule .eyebrow { color: var(--sage); }
body[data-palette="pop"] .schedule .t-note { color: rgba(255,255,255,0.65); }
body[data-palette="pop"] .schedule .t-time { color: var(--sage); }
body[data-palette="pop"] .schedule .timeline::before {
  background: rgba(255,255,255,0.2);
}
body[data-palette="pop"] .schedule .t-dot-inner {
  background: var(--moss);
  border-color: var(--sage);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--sage), transparent 70%);
}
body[data-palette="pop"] .schedule .rule::before,
body[data-palette="pop"] .schedule .rule::after { background: rgba(255,255,255,0.3); }
/* Cat divider on dark sections: brighter mustard for contrast.
   !important beats the inline `style={{ color }}` set by the component. */
body[data-palette="pop"] .schedule .cat-divider,
body[data-palette="pop"] .photos .cat-divider { color: var(--sage) !important; }
body[data-palette="pop"] .schedule .cat-divider > line,
body[data-palette="pop"] .photos .cat-divider > line { stroke: rgba(255,255,255,0.35); }

/* — Gift: peach/cream (travel polaroids panel) — */
body[data-palette="pop"] .gift {
  background:
    radial-gradient(circle at 80% 20%, color-mix(in oklch, var(--blush), white 40%) 0%, transparent 50%),
    color-mix(in oklch, var(--ivory), var(--blush) 22%);
}
body[data-palette="pop"] .gift .gift-card {
  background: white;
  box-shadow: 0 18px 40px -28px oklch(0.25 0.08 270 / 0.35);
  transform: rotate(-0.4deg);
}

/* — Impact: mint (selfie panel) — */
body[data-palette="pop"] .impact {
  background:
    radial-gradient(circle at 18% 80%, color-mix(in oklch, var(--mint), white 35%) 0%, transparent 55%),
    color-mix(in oklch, var(--ivory), var(--mint) 35%);
}

/* — Photos: midnight again (sharing under the stars) — */
body[data-palette="pop"] .photos {
  background: var(--moss);
  position: relative;
  overflow: hidden;
}
body[data-palette="pop"] .photos::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 24%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 78%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(2px 2px at 42% 18%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 88%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 32%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 68%, rgba(255,255,255,0.85) 50%, transparent 51%);
  pointer-events: none;
}
body[data-palette="pop"] .photos .container { position: relative; z-index: 1; }
body[data-palette="pop"] .photos .section-title { color: white; }
body[data-palette="pop"] .photos .section-lede { color: rgba(255,255,255,0.72); }
body[data-palette="pop"] .photos .eyebrow { color: var(--sage); }
body[data-palette="pop"] .photos .photo-uploader {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
body[data-palette="pop"] .photos uc-file-uploader-regular {
  --uc-background-rgb: 30, 32, 60;
  --uc-foreground-rgb: 240, 240, 240;
  --uc-primary-rgb: 213, 179, 72;
  --uc-secondary-rgb: 60, 70, 110;
}
body[data-palette="pop"] .photos .photo-uploader-disabled {
  color: rgba(255,255,255,0.65);
}
body[data-palette="pop"] .photos .photo-uploader-disabled code {
  background: rgba(255,255,255,0.1);
  color: var(--sage);
}

/* — RSVP: warm cream (echo panel 1, closing the arc) — */
body[data-palette="pop"] .rsvp {
  background:
    radial-gradient(circle at 90% 12%, color-mix(in oklch, var(--sage), white 30%) 0%, transparent 50%),
    color-mix(in oklch, var(--ivory), var(--sage) 22%);
}
body[data-palette="pop"] .rsvp .rsvp-form {
  background: white;
  padding: 36px 40px;
  border-radius: 4px;
  box-shadow: 0 20px 50px -28px oklch(0.25 0.08 270 / 0.4);
}
body[data-palette="pop"] .rsvp .radio { background: var(--ivory); }
body[data-palette="pop"] .rsvp .field input[type="text"],
body[data-palette="pop"] .rsvp .field textarea { background: var(--ivory); }

/* — Footer rests on cream too — */
body[data-palette="pop"] .footer {
  background: color-mix(in oklch, var(--ivory), var(--sage) 8%);
}

/* Hide the dashed-leaf divider svg in dark sections; the contrast is the divider */
body[data-palette="pop"] .schedule .section-head > svg:first-child,
body[data-palette="pop"] .photos .section-head > svg:first-child {
  filter: opacity(0.45);
}

/* Responsive: rsvp form padding on mobile */
@media (max-width: 860px) {
  body[data-palette="pop"] .rsvp .rsvp-form { padding: 24px 20px; }
}

/* ─── HERO — Illustration layout (pop direction) ─────────────────── */
.hero-illu {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) 1fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
  padding: 80px 64px;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in oklch, var(--sage), white 65%) 0%, transparent 38%),
    radial-gradient(circle at 88% 82%, color-mix(in oklch, var(--blush), white 70%) 0%, transparent 40%),
    var(--ivory);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.hero-illu-art {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-illu-art-frame {
  position: relative;
  background: white;
  padding: 14px 14px 50px;            /* polaroid: wider bottom border */
  border-radius: 2px;
  box-shadow:
    0 20px 50px -22px oklch(0.25 0.08 270 / 0.45),
    0 4px 12px -4px oklch(0.25 0.08 270 / 0.2);
  transform: rotate(-1.2deg);
  max-width: 360px;
  width: 100%;
}
.hero-illu-art-frame::after {
  /* caption-line under the illustration like a real polaroid */
  content: "Giuditta & Giacomo";
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--moss);
  opacity: 0.7;
}
.hero-illu-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
}
/* sticky-tape decorations — alternating colors echo the illustration */
.hero-illu-tape {
  position: absolute;
  width: 70px; height: 22px;
  background: color-mix(in oklch, var(--sage), white 55%);
  opacity: 0.88;
  box-shadow: 0 1px 4px oklch(0.25 0.08 270 / 0.15);
}
.hero-illu-tape-tl { top: -8px; left: -18px; transform: rotate(-22deg); }
.hero-illu-tape-br { bottom: 26px; right: -16px; transform: rotate(28deg); background: color-mix(in oklch, var(--blush), white 50%); }

.hero-illu-text {
  position: relative;
  z-index: 1;
  max-width: 540px;
}
.hero-illu-date {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-style: italic;
  color: var(--moss);
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-illu-text .hero-names-stacked {
  align-items: flex-start;
  font-size: clamp(3.2rem, 8vw, 6rem);
  margin: 12px 0 20px;
}
.hero-illu-text .countdown { margin-left: 0; margin-right: 0; margin-top: 32px; }
.hero-illu-text .hero-sub { margin-left: 0; max-width: 460px; }

.hero-illu-cta {
  margin-top: 28px;
  padding: 16px 36px;
}

.hero-illu-stamp {
  position: absolute;
  top: 56px; right: 60px;
  transform: rotate(-15deg);
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
}

/* ─── Pop palette: polaroid-style cause cards ─────────────────────── */
body[data-palette="pop"] .cause-card {
  background: white;
  border: 1px solid color-mix(in oklch, var(--moss), white 80%);
  border-radius: 2px;
  padding: 12px 12px 0;
  box-shadow: 0 8px 24px -16px oklch(0.25 0.08 270 / 0.35);
  position: relative;
}
body[data-palette="pop"] .impact-grid .cause-card:nth-child(odd)  { transform: rotate(-0.6deg); }
body[data-palette="pop"] .impact-grid .cause-card:nth-child(even) { transform: rotate(0.6deg); }
body[data-palette="pop"] .impact-grid .cause-card:nth-child(3n)   { transform: rotate(-1.2deg); }
body[data-palette="pop"] .impact-grid .cause-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 14px 30px -16px oklch(0.25 0.08 270 / 0.45);
}
body[data-palette="pop"] .cause-card .cause-body { padding: 16px 14px 22px; }
body[data-palette="pop"] .cause-tag {
  display: inline-block;
  padding: 3px 9px;
  background: color-mix(in oklch, var(--sage), white 70%);
  color: var(--moss);
  border-radius: 999px;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
body[data-palette="pop"] .cause-card image-slot,
body[data-palette="pop"] .cause-img {
  --is-bg: color-mix(in oklch, var(--sage), white 75%);
}

/* Pop palette: hero CTA punchier */
body[data-palette="pop"] .hero-cta {
  background: var(--moss);
  color: var(--ivory);
  border: 2px solid var(--moss);
  box-shadow: 4px 4px 0 0 var(--sage);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body[data-palette="pop"] .hero-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--sage);
  background: color-mix(in oklch, var(--moss), black 12%);
}

/* Pop palette: section title accent — replace amp with mint dot */
body[data-palette="pop"] .hero-names .amp,
body[data-palette="pop"] .hero-names-stacked .amp-line {
  color: var(--blush);
}

/* ─── Responsive: illustration hero ────────────────────────────────── */
@media (max-width: 860px) {
  .hero-illu {
    grid-template-columns: 1fr;
    padding: 60px 24px 80px;
    gap: 40px;
    min-height: auto;
    text-align: center;
  }
  .hero-illu-stamp { top: 24px; right: 24px; }
  .hero-illu-stamp svg { width: 64px; height: 64px; }
  .hero-illu-text .hero-names-stacked { align-items: center; }
  .hero-illu-text .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-illu-text .countdown { margin: 28px auto 0; }
  .hero-illu-cta { margin-left: auto; margin-right: auto; display: inline-block; }
  .hero-illu-art-frame { max-width: 280px; }
}

/* ─── PHOTOS ───────────────────────────────────────────────────────── */
.photos { background: color-mix(in oklch, var(--ivory), var(--sage) 3%); }
.photo-uploader {
  max-width: 720px;
  margin: 0 auto;
  background: color-mix(in oklch, var(--ivory), white 40%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
}
.photo-uploader-disabled {
  text-align: center;
  color: var(--moss-soft);
  font-size: 0.95rem;
}
.photo-uploader-disabled code {
  background: var(--ivory-2);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.9em;
}
.photo-thanks {
  text-align: center;
  margin: 20px 0 0;
  color: var(--sage-deep);
  font-style: italic;
}
.photo-thanks .hand { font-size: 1.6rem; }

/* Uploadcare web component restyle (limited surface) */
uc-file-uploader-regular {
  --uc-primary-rgb: 60, 84, 60;
  --uc-secondary-rgb: 245, 241, 232;
  --uc-background-rgb: 250, 248, 242;
  --uc-foreground-rgb: 50, 60, 50;
  --uc-radius: 4px;
  --uc-font-family: var(--body);
  width: 100%;
}
uc-simple-btn {
  display: flex !important;
  justify-content: center !important;
}

/* ─── LOADING ──────────────────────────────────────────────────────── */
.content-loading {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory);
  color: var(--sage-deep);
}
.content-loading .hand { font-size: 3rem; opacity: 0.6; }

/* Hero photo (when CMS-uploaded URL is present) */
.hero-image-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-split-image-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Cause image (CMS-uploaded) */
.cause-img {
  width: 100%;
  object-fit: cover;
  display: block;
  background: color-mix(in oklch, var(--sage), white 60%);
}

/* ─── FOOTER ───────────────────────────────────────────────────────── */
.footer {
  padding: 80px 0 60px;
  background: var(--ivory);
  border-top: 1px solid var(--line);
}
.footer .hand { color: var(--sage-deep); }
.footer-meta {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-soft);
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .hero-typo { padding: 100px 24px 80px; }
  .hero-split { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; min-height: auto; }
  .hero-split-image { height: 380px; min-height: 0; }
  .hero-split-text { padding-left: 0; }
  .hero-split-text .hero-names-stacked { align-items: center; text-align: center; }
  .hero-split-text > * { text-align: center; }
  .hero-split-text .rule { justify-content: center; }
  .hero-split-text .countdown { margin: 28px auto 0; }

  .countdown { grid-template-columns: repeat(4, 1fr); padding: 12px 0; }
  .cd-cell { padding: 4px 6px; }

  .gift-card { padding: 32px 24px; }
  .gf-row { grid-template-columns: 1fr; gap: 4px; }

  .impact-grid { grid-template-columns: 1fr; }
  .impact-mosaic { grid-template-columns: 1fr; }
  .impact-mosaic-rest { grid-template-columns: 1fr; }
  .cause-card-hero { grid-row: auto; }

  .cause-row { grid-template-columns: 50px 1fr; }
  .cause-row-img { grid-column: 1 / -1; grid-row: 2; }
  .cause-row-body { grid-column: 1 / -1; grid-row: 3; }
  .cause-link-btn { grid-column: 1 / -1; grid-row: 4; justify-self: start; }

  .timeline::before { left: 84px; }
  .t-item { grid-template-columns: 70px 30px 1fr; gap: 14px; }
  .t-time { font-size: 1.2rem; }
  .t-title { font-size: 1.3rem; }
}
