/* ---------- Foundation ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #1f1f1f;
  --ink-soft: #292929;
  --ivory: #f6f4ef;
  --paper: #fbfaf6;
  --gray: #c8c8c6;
  --graphite: #6c6c6a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", Arial, sans-serif;
  --side: clamp(20px, 6vw, 82px);
  --hairline-light: rgba(255, 255, 255, 0.28);
  --hairline-dark: rgba(31, 31, 31, 0.22);
}

html { scroll-behavior: smooth; background: #171717; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(255,255,255,.06), transparent 28rem),
    #171717;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .18;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.02) 5px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,.015) 8px);
  pointer-events: none;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.site-shell {
  position: relative;
  width: min(100%, 820px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 80px rgba(0,0,0,.35);
}

.dark-section {
  position: relative;
  color: var(--ivory);
  background:
    linear-gradient(115deg, rgba(255,255,255,.02), transparent 32%),
    var(--ink);
}

.dark-section::after,
.light-section::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  opacity: .25;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0 3px, rgba(255,255,255,.018) 4px);
  pointer-events: none;
}

.light-section {
  position: relative;
  color: var(--ink);
  background: var(--ivory);
}

.light-section::after {
  opacity: .42;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0 3px, rgba(20,20,20,.016) 4px);
}

.dark-section > *, .light-section > * { position: relative; z-index: 1; }

.torn-top { margin-top: 22px; }
.torn-top::before {
  position: absolute;
  z-index: 4;
  top: -28px;
  left: 0;
  width: 100%;
  height: 30px;
  content: "";
  background:
    linear-gradient(135deg, transparent 12px, var(--ivory) 0) 0 0 / 28px 30px repeat-x,
    linear-gradient(45deg, transparent 13px, var(--ivory) 0) 14px 0 / 31px 30px repeat-x;
}

.section-kicker {
  margin: 0 0 17px;
  color: #5f5d58;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .29em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-kicker.light { color: #d4d0c8; }
.section-index {
  display: block;
  margin: 0 0 12px;
  color: rgba(31,31,31,.22);
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: .8;
}
.section-index.light { color: rgba(255,255,255,.23); }
.latin-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(37px, 4.6vw, 55px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(42px, 8vw, 72px);
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.button span { font-size: 15px; transition: transform .25s ease; }
.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translate(2px, -2px); }
.button-dark { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.button-dark:hover { color: var(--ink); background: transparent; }
.button-light { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.button-light:hover { color: var(--ivory); background: transparent; }

/* ---------- Hero ---------- */
.hero { padding: clamp(30px, 5vw, 68px) var(--side) clamp(76px, 9vw, 112px); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.invitation-card {
  position: relative;
  width: min(100%, 640px);
  margin-inline: auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}

.invitation-card::before {
  position: absolute;
  z-index: 3;
  inset: 10px;
  content: "";
  border: 1px solid rgba(31,31,31,.24);
  pointer-events: none;
}

.hero-heading { position: relative; z-index: 2; padding: 37px 20px 28px; text-align: center; }
.microcopy {
  margin: 0 0 25px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.hero-heading h1 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .78; }
.hero-heading h1 span { display: block; font-size: clamp(47px, 6.8vw, 76px); letter-spacing: .045em; }
.hero-heading h1 i { display: block; margin: 14px 0 10px; font-size: .48em; font-weight: 400; }
.hero-image { height: auto; aspect-ratio: 2 / 3; margin: 0; overflow: hidden; background: #d6d3cc; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.05); }
.hero-image img { animation: photo-breathe 18s ease-in-out infinite alternate; }
@keyframes photo-breathe { to { transform: scale(1.045) translateY(-.7%); } }

.hero-date {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 100px 20px 28px;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(18,18,18,.92));
}
.hero-date span, .hero-date time { display: block; font-family: var(--serif); letter-spacing: .09em; }
.hero-date span { font-size: clamp(26px, 3.6vw, 39px); }
.hero-date time { font-size: clamp(27px, 3.9vw, 42px); line-height: 1.15; }

.intro-copy { max-width: 47ch; margin: 52px auto 0; padding: 0 18px; text-align: center; }
.intro-copy p:last-child { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; }

.hero-editorial { display: grid; gap: 45px; padding-top: 3px; }
.editorial-index { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; border-bottom: 1px solid var(--hairline-light); padding-bottom: 11px; }
.editorial-index span { font-family: var(--serif); font-size: 21px; letter-spacing: .06em; }
.editorial-index span:nth-child(2) { font-style: italic; font-size: 16px; }
.editorial-index span:last-child { text-align: right; }
.mini-program { padding: 8px 0; text-align: center; }
.mini-program .latin-heading { margin-bottom: 28px; }
.mini-event { display: grid; grid-template-columns: 34% 12% 54%; align-items: center; min-height: 58px; }
.mini-event time { justify-self: end; font-family: var(--serif); font-size: clamp(25px, 3vw, 34px); }
.mini-event i { position: relative; width: 7px; height: 7px; margin: auto; background: var(--ivory); transform: rotate(45deg); }
.mini-event:not(:last-child) i::after { position: absolute; top: 7px; left: 3px; width: 1px; height: 52px; content: ""; background: var(--hairline-light); }
.mini-event span { padding-left: 9px; text-align: left; font-family: var(--serif); font-size: 15px; letter-spacing: .07em; line-height: 1.08; text-transform: uppercase; }
.editorial-poster {
  position: relative;
  display: grid;
  min-height: clamp(330px, 37vw, 450px);
  padding: 31px;
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.11) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(255,255,255,.11) 50%, transparent 50.2%),
    #242424;
}
.editorial-poster::before,
.editorial-poster::after {
  position: absolute;
  width: 86px;
  height: 86px;
  content: "";
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.editorial-poster::before { top: -44px; left: -44px; }
.editorial-poster::after { right: -44px; bottom: -44px; }
.poster-label, .poster-coordinate { font-size: 7px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.editorial-poster strong { align-self: center; font-family: var(--serif); font-size: clamp(72px, 10vw, 116px); font-weight: 400; line-height: .8; text-align: center; }
.editorial-poster strong i { font-size: .55em; font-weight: 400; }
.editorial-poster p { max-width: 23ch; margin: 0 auto; align-self: center; font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.2; text-align: center; }
.poster-coordinate { align-self: end; text-align: right; }
.dress-preview { padding: 0 5px; text-align: center; }
.dress-preview p:nth-child(2) { max-width: 31ch; margin: 18px auto 24px; font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.mini-palette { display: flex; justify-content: center; gap: 12px; }
.mini-palette span { width: 44px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.mini-palette span:nth-child(1) { background: var(--ivory); }
.mini-palette span:nth-child(2) { background: var(--gray); }
.mini-palette span:nth-child(3) { background: var(--graphite); }
.mini-palette span:nth-child(4) { background: var(--ink); }

/* ---------- Countdown ---------- */
.countdown-section { padding: 83px var(--side) 105px; text-align: center; border-top: 1px solid rgba(255,255,255,.07); }
.countdown-section h2, .section-heading h2, .story h2, .location h2, .dress-code h2, .gift h2, .telegram h2, .rsvp h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(47px, 7vw, 80px);
  font-weight: 400;
  line-height: .98;
}
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 43px auto 0; }
.countdown > div { padding: 23px 8px 19px; border: 1px solid var(--hairline-light); }
.countdown strong, .countdown span { display: block; }
.countdown strong { font-family: var(--serif); font-size: clamp(38px, 5.5vw, 62px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 9px; font-size: 8px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.countdown-date { margin: 23px 0 0; font-family: var(--serif); font-size: 19px; letter-spacing: .09em; }

/* ---------- Moving date ribbon ---------- */
.date-marquee {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 78px;
  overflow: hidden;
  color: var(--ivory);
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: #171717;
}
.date-marquee-track { display: flex; width: max-content; animation: marquee-slide 24s linear infinite; }
.date-marquee span { flex: none; padding-right: 42px; font-family: var(--serif); font-size: 25px; letter-spacing: .15em; white-space: nowrap; }
.date-marquee i { font-weight: 400; }
@keyframes marquee-slide { to { transform: translateX(-33.333%); } }

/* ---------- Story ---------- */
.story { padding: 110px var(--side) 122px; }
.portrait-figure, .venue-figure, .gift-figure { margin: 0; }
.portrait-figure { width: min(100%, 600px); margin-inline: auto; }
.portrait-figure img { height: auto; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.image-reveal img { clip-path: inset(0 100% 0 0); transform: scale(1.035); transition: clip-path 1.15s cubic-bezier(.66,0,.2,1), transform 1.2s ease; }
.image-reveal.is-visible img { clip-path: inset(0); transform: scale(1); }
.portrait-figure figcaption, .gift-figure figcaption { padding: 11px 0; border-bottom: 1px solid var(--hairline-dark); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.story-copy > p:not(.section-kicker) { font-family: var(--serif); font-size: clamp(18px, 2vw, 21px); line-height: 1.52; }
.story-copy { width: min(100%, 640px); margin-inline: auto; }
.milestones { margin-top: 38px; border-top: 1px solid var(--hairline-dark); }
.milestones div { display: grid; grid-template-columns: 105px 1fr; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--hairline-dark); }
.milestones time { font-family: var(--serif); font-size: 19px; }
.milestones span { align-self: center; font-size: 8px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }

/* ---------- Timeline ---------- */
.schedule { padding: 101px var(--side) 124px; }
.section-heading { text-align: center; }
.schedule-list { position: relative; max-width: 760px; margin: 58px auto 0; }
.schedule-list::before { position: absolute; top: 16px; bottom: 28px; left: 143px; width: 1px; content: ""; background: var(--hairline-light); transform: scaleY(0); transform-origin: top; transition: transform 1.4s cubic-bezier(.66,0,.2,1); }
.schedule-list.is-visible::before { transform: scaleY(1); }
.schedule-item { display: grid; grid-template-columns: 112px 62px 1fr; min-height: 116px; }
.schedule-item time { padding-top: 2px; text-align: right; font-family: var(--serif); font-size: 34px; line-height: 1; }
.schedule-item > i { position: relative; }
.schedule-item > i::before { position: absolute; top: 9px; left: 27px; width: 9px; height: 9px; content: ""; background: var(--ivory); transform: rotate(45deg); }
.schedule-item:nth-child(2) > i::after { position: absolute; top: 3px; left: 21px; width: 19px; height: 19px; content: ""; border: 1px solid rgba(255,255,255,.48); transform: rotate(45deg); animation: ceremony-pulse 2.8s ease-in-out infinite; }
@keyframes ceremony-pulse { 50% { opacity: .25; transform: rotate(45deg) scale(1.45); } }
.schedule-item h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.05; }
.schedule-item p { max-width: 45ch; margin: 8px 0 0; color: #cbc7bf; font-size: 11px; }

/* ---------- Location ---------- */
.location { padding: 112px var(--side) 124px; }
.location-layout { grid-template-columns: minmax(0, 1fr); }
.location-copy { width: min(100%, 640px); margin-inline: auto; }
.location-copy address { margin: 28px 0 22px; font-family: var(--serif); font-size: 23px; line-height: 1.35; }
.location-copy > p:not(.section-kicker) { max-width: 42ch; margin: 0 0 29px; color: #5f5d58; font-family: var(--serif); font-size: 18px; }
.venue-figure { width: min(100%, 600px); margin-inline: auto; }
.venue-figure img { height: auto; aspect-ratio: 2 / 3; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.venue-figure figcaption { padding: 12px 5px; border-bottom: 1px solid var(--hairline-dark); font-size: 8px; letter-spacing: .15em; text-align: center; text-transform: uppercase; }

/* ---------- Dress code ---------- */
.dress-code { padding: 102px var(--side) 115px; }
.dress-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(45px, 8vw, 74px); align-items: center; }
.dress-copy { width: min(100%, 640px); margin-inline: auto; }
.dress-copy > p:not(.section-kicker) { max-width: 45ch; font-family: var(--serif); font-size: 20px; }
.dress-copy .italic-note { color: #ccc8c0; font-size: 17px !important; font-style: italic; }
.palette-grid { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 15px; width: min(100%, 520px); margin-inline: auto; }
.palette-tone { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; text-align: center; }
.palette-tone span { font-family: var(--serif); font-size: 19px; }
.palette-tone small { font-size: 7px; letter-spacing: .15em; }
.palette-tone.ivory { color: var(--ink); background: var(--ivory); }
.palette-tone.gray { color: var(--ink); background: var(--gray); }
.palette-tone.graphite { background: var(--graphite); }
.palette-tone.black { background: var(--ink); }

/* ---------- Vertical photo pause ---------- */
.photo-interlude { margin: 22px 0 0; padding: 92px var(--side) 110px; }
.photo-interlude img { width: min(100%, 580px); height: auto; aspect-ratio: 2 / 3; margin-inline: auto; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* ---------- Legacy section styles ---------- */
.gift { padding: 112px var(--side) 124px; }
.gift-layout { grid-template-columns: minmax(0, 1fr); }
.gift-figure { width: min(100%, 580px); margin-inline: auto; }
.gift-figure img { height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: center 40%; filter: grayscale(1) contrast(1.08); }
.gift-copy { width: min(100%, 640px); margin-inline: auto; }
.gift h2 { font-size: clamp(44px, 5.6vw, 68px); }
.gift-copy > p:not(.section-kicker) { font-family: var(--serif); font-size: 21px; }
.couple-notes { margin: 29px 0 7px; border-top: 1px solid var(--hairline-dark); }
.couple-notes span { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--hairline-dark); font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.couple-notes b { font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: .04em; }
.gift-copy blockquote { margin: 31px 0 0; padding: 19px 0 19px 27px; border-left: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(22px, 2.7vw, 29px); font-style: italic; line-height: 1.25; }

/* ---------- Telegram ---------- */
.telegram { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; padding: 100px var(--side) 112px; text-align: center; }
.telegram-mark { display: grid; place-items: center; width: 112px; aspect-ratio: 1; margin-inline: auto; border: 1px solid var(--hairline-light); border-radius: 50%; font-family: var(--serif); font-size: 34px; letter-spacing: .09em; }
.telegram h2 { font-size: clamp(49px, 6.5vw, 75px); }
.telegram-copy > p:not(.section-kicker) { max-width: 53ch; margin: 22px auto 28px; color: #cbc7bf; font-family: var(--serif); font-size: 20px; }

/* ---------- RSVP ---------- */
.rsvp { padding: 112px var(--side) 126px; }
.rsvp-heading { text-align: center; }
.rsvp-heading > p:last-child { font-family: var(--serif); font-size: 19px; }
.rsvp-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 640px; margin: 54px auto 0; }
.rsvp-form > * { grid-column: 1 / -1; }
.field-wide { grid-column: 1 / -1; }
.rsvp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .rsvp-form legend { display: block; margin-bottom: 8px; font-size: 8px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.rsvp-form input[type="text"], .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  padding: 12px 0;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
}
.rsvp-form input[type="text"]:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-bottom-width: 2px; }
.rsvp-form textarea { resize: vertical; }
.radio-option { display: inline-flex; align-items: center; margin: 5px 24px 5px 0; cursor: pointer; }
.radio-option input { width: 17px; height: 17px; margin: 0 8px 0 0; accent-color: var(--ink); }
.radio-option span { font-family: var(--serif); font-size: 17px; }
.submit-button { width: 100%; margin-top: 4px; }
.form-note { margin: -15px 0 0; color: #726f69; font-size: 9px; text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 84px 22px 92px; text-align: center; }
.footer > p { max-width: 30ch; margin: 0 auto; font-family: var(--serif); font-size: 27px; line-height: 1.15; }

/* ---------- Fixed UI and motion ---------- */
.music-control {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: max(16px, calc((100vw - 820px) / 2 + 18px));
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 5px 14px 5px 5px;
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 30px;
  background: rgba(24,24,24,.82);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.music-record { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.music-record span { font-family: var(--serif); font-size: 18px; }
.music-text { font-size: 8px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.music-control.is-playing .music-record { color: var(--ink); background: var(--ivory); animation: spin 4.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-progress {
  position: fixed;
  z-index: 220;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ivory);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.feather-layer { position: fixed; z-index: 60; inset: 0; overflow: hidden; pointer-events: none; }
.floating-feather { position: absolute; top: -150px; left: var(--left); width: var(--size); opacity: var(--opacity); filter: drop-shadow(0 9px 15px rgba(0,0,0,.23)); animation: feather-fall var(--duration) linear var(--delay) infinite; will-change: transform; }
.floating-feather img { width: 100%; transform: rotate(var(--image-tilt)) scaleX(var(--mirror)); }
@keyframes feather-fall {
  0% { transform: translate3d(0, -150px, 0) rotate(var(--rotation-start)); }
  32% { transform: translate3d(var(--drift-one), 32vh, 0) rotate(var(--rotation-mid)); }
  68% { transform: translate3d(var(--drift-two), 69vh, 0) rotate(var(--rotation-end)); }
  100% { transform: translate3d(var(--drift-three), calc(100vh + 170px), 0) rotate(var(--rotation-final)); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s ease, transform .85s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }

.toast {
  position: fixed;
  z-index: 200;
  bottom: 24px;
  left: 50%;
  width: min(calc(100% - 34px), 400px);
  padding: 17px 20px;
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,.38);
  background: #161616;
  box-shadow: 0 15px 44px rgba(0,0,0,.34);
  transform: translate(-50%, 160%);
  transition: transform .4s ease;
}
.toast.show { transform: translate(-50%, 0); }
.toast strong, .toast span { display: block; }
.toast strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.toast span { font-size: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .hero-layout, .split-layout, .dress-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-layout { gap: 72px; }
  .hero-editorial { gap: 50px; }
  .editorial-poster { width: min(100%, 560px); margin-inline: auto; }
  .story, .location, .gift { padding-top: 86px; padding-bottom: 98px; }
  .portrait-figure, .venue-figure, .gift-figure { max-width: 520px; margin-inline: auto; }
  .story-copy, .location-copy, .gift-copy, .dress-copy { text-align: center; }
  .milestones { text-align: left; }
  .location-layout { grid-template-columns: 1fr; }
  .location-copy > p:not(.section-kicker) { margin-inline: auto; }
  .dress-code { padding-top: 88px; padding-bottom: 96px; }
  .palette-grid { width: min(100%, 420px); margin-inline: auto; }
  .telegram { grid-template-columns: 1fr; text-align: center; }
  .telegram-mark { width: 96px; }
  .rsvp-form { grid-template-columns: 1fr; }
  .rsvp-form > * { grid-column: 1 / -1; }
  .music-control { top: 12px; right: 12px; }
}

@media (max-width: 500px) {
  :root { --side: 18px; }
  .hero { padding-right: 14px; padding-left: 14px; }
  .hero-heading { padding-top: 35px; }
  .hero-heading h1 span { font-size: clamp(43px, 13.2vw, 58px); }
  .hero-image { height: auto; aspect-ratio: 2 / 3; }
  .date-marquee { height: 65px; }
  .date-marquee span { font-size: 20px; }
  .hero-date { padding-bottom: 24px; }
  .intro-copy { margin-top: 40px; }
  .editorial-index { margin-inline: 6px; }
  .mini-event { grid-template-columns: 34% 11% 55%; }
  .mini-event span { font-size: 14px; }
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countdown-section { padding-top: 75px; padding-bottom: 88px; }
  .story h2, .location h2, .dress-code h2, .gift h2, .telegram h2, .rsvp h2 { font-size: clamp(43px, 13vw, 58px); }
  .portrait-figure img, .gift-figure img, .photo-interlude img { height: auto; aspect-ratio: 2 / 3; }
  .schedule { padding-right: 17px; padding-left: 17px; }
  .schedule-list::before { left: 89px; }
  .schedule-item { grid-template-columns: 68px 43px 1fr; min-height: 125px; }
  .schedule-item time { font-size: 25px; }
  .schedule-item > i::before { left: 17px; }
  .schedule-item h3 { font-size: 25px; }
  .venue-figure img { height: auto; aspect-ratio: 2 / 3; }
  .palette-grid { gap: 10px; }
  .palette-tone span { font-size: 17px; }
  .telegram { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .telegram-mark { margin-inline: auto; }
  .telegram-copy > p:not(.section-kicker) { margin-inline: auto; }
  .radio-option { display: flex; margin-right: 0; }
  .music-control { width: 48px; padding: 5px; }
  .music-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floating-feather { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .music-control.is-playing .music-record { animation: none; }
  .hero-image img, .date-marquee-track, .schedule-item:nth-child(2) > i::after { animation: none; }
  .image-reveal img { clip-path: inset(0); transform: none; transition: none; }
  .schedule-list::before { transform: scaleY(1); transition: none; }
  .button, .button span, .toast { transition: none; }
}
