/* ────────────────────────────────────────────────────────────────────────
   Kathy & Christian — Save the Date
   Burgundy + sage blocks with full-bleed photography and art-nouveau filigree.
   Token-based; palette + script font are tweakable from the in-page Tweaks panel.
   ──────────────────────────────────────────────────────────────────────── */

/* ───── PP Pangaia — body text face ───── */
@font-face {
  font-family: "PP Pangaia";
  src: url("assets/fonts/PPPangaia-Ultralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Pangaia";
  src: url("assets/fonts/PPPangaia-UltralightItalic.otf") format("opentype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Pangaia";
  src: url("assets/fonts/PPPangaia-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Pangaia";
  src: url("assets/fonts/PPPangaia-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Pangaia";
  src: url("assets/fonts/PPPangaia-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Pangaia";
  src: url("assets/fonts/PPPangaia-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --burgundy: #4a0d0f;
  --burgundy-deep: #3a0a0c;
  --sage: #787a5b;
  --sage-deep: #696b4e;
  --cream: #ece2cc;
  --cream-soft: #d8ceb6;
  --ink: #1a0405;

  --rule: rgba(236, 226, 204, 0.45);
  --shadow-photo: 0 10px 30px rgba(0, 0, 0, 0.35);

  --font-script: "Pinyon Script", "Allura", cursive;
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans: "Cormorant Garamond", Georgia, serif;
  /* Body / running-copy face */
  --font-body: "PP Pangaia", "Cormorant Garamond", Georgia, serif;

  --maxw: 1080px;
  --gutter: clamp(28px, 6vw, 80px);
}

body[data-palette="rose"] {
  --burgundy: #6a2632;
  --burgundy-deep: #58202a;
  --sage: #8c8169;
  --sage-deep: #79705a;
  --cream: #f1e6d0;
}
body[data-palette="forest"] {
  --burgundy: #1f3a2a;
  --burgundy-deep: #18301f;
  --sage: #8c7a52;
  --sage-deep: #7a6a47;
  --cream: #ede4c8;
}
body[data-palette="midnight"] {
  --burgundy: #1c2233;
  --burgundy-deep: #161b29;
  --sage: #7d7e74;
  --sage-deep: #696a60;
  --cream: #ece2cc;
}

/* ───── reset ───── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); }
body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ───── typography helpers ───── */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}
.tracked {
  font-family: var(--font-serif);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* ───── sections ───── */
.section {
  position: relative;
  width: 100%;
}
.section-burgundy {
  background: var(--burgundy);
  color: var(--cream);
}
.section-sage {
  background: var(--sage);
  color: var(--cream);
}
.section-photo {
  background: #000;
}

.inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 132px) var(--gutter);
}

/* ───── HERO ───── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  min-height: 460px;
  background: #1a1a14;
  overflow: hidden;
}
.hero .image-slot,
.hero image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero::after {
  /* Subtle vignette to keep cursive readable over any photo */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0 var(--gutter);
}
.hero-names {
  font-family: var(--font-script);
  font-size: clamp(84px, 17vw, 200px);
  line-height: 0.98;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  margin: 0;
  font-weight: 400;
  white-space: normal;
  text-wrap: balance;
}
.hero-names .amp {
  font-family: var(--font-script);
  font-style: normal;
  margin: 0 0.18em;
  font-size: 0.92em;
  opacity: 0.95;
}
.hero-stamp {
  margin-top: clamp(12px, 1.8vw, 26px);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ───── SECTION FRAME (Tweakable: vine · corners · grapes · nouveau · none)
   Shared by the hero (full-bleed image) and the outro (closing section). ───── */
.sframe {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0.95;
}
.sframe--corner {
  width: clamp(160px, 30vw, 590px);
  height: auto;
}
.sframe--tl { top: clamp(10px, 1.8vw, 26px); left: clamp(10px, 1.8vw, 26px); }
.sframe--tr { top: clamp(10px, 1.8vw, 26px); right: clamp(10px, 1.8vw, 26px); }
.sframe--bl {
  bottom: clamp(10px, 1.8vw, 26px);
  left: clamp(10px, 1.8vw, 26px);
  transform: rotate(180deg);
}
.sframe--br {
  bottom: clamp(10px, 1.8vw, 26px);
  right: clamp(10px, 1.8vw, 26px);
  transform: rotate(180deg);
}
/* Full frame — rotated 90° + stretched to wrap the landscape hero. */
.sframe--full {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
/* Hero: recolour the cream art white (light) or ink (dark) over the photo. */
.hero--frame-light .sframe {
  filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}
.hero--frame-dark .sframe {
  filter: brightness(0) drop-shadow(0 1px 5px rgba(255, 255, 255, 0.28));
}
/* "corners" art is rotated 90° counter-clockwise vs the vine frame. */
.sframe--corners.sframe--tl { transform: rotate(-90deg); }
.sframe--corners.sframe--br { transform: rotate(90deg); }

/* ───── BURGUNDY DATE BLOCK ───── */
.date-block .inner {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  max-width: 1280px;
}
.date-block .photo-frame {
  justify-self: start;
}
.date-block .photo-frame--wide {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
}
.date-block .copy {
  align-self: center;
  text-align: left;
  max-width: 34em;
}
.date-block .big-date {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(60px, 8.4vw, 112px);
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin: 0 0 22px;
  color: var(--cream);
  line-height: 1;
}
.date-block p {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.4;
  color: var(--cream);
}
.date-block p:last-of-type { margin-bottom: 0; }
.date-block p.intro-light { font-weight: 400; }

@media (max-width: 720px) {
  .date-block .inner {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: center;
    text-align: center;
  }
  .date-block .copy { text-align: center; }
  .date-block .flourish--inline { margin-left: auto; margin-right: auto; }
  .date-block .photo-frame { justify-self: center; }
  .date-block .date-countdown { justify-content: center; }
  .date-block .cal-link { margin-left: auto; margin-right: auto; }
}

/* ───── PHOTO BREAK ───── */
.photo-break {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  max-height: 72vh;
  background: #1a1a14;
  position: relative;
  overflow: hidden;
}
.photo-break image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

@media (max-width: 720px) {
  /* Hero fills 80% of the viewport on phones; photo break is 50% taller. */
  .hero { min-height: 80vh; }
  .photo-break { min-height: 570px; max-height: none; }
}

/* ───── WANN & WO ───── */
.wannwo .inner {
  text-align: center;
}
.wannwo-head {
  margin: 0 0 clamp(48px, 7vw, 80px);
  text-align: center;
}
.wannwo-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0;
  color: var(--cream);
  font-weight: 500;
}
.wannwo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vw, 88px);
  max-width: 940px;
  margin: 0 auto;
}
.event {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  text-align: left;
}
.event-text { text-align: center; }

/* Wann & Wo rows reveal sideways: illustration in from the left, text in from
   the right. The animation is purely additive on `.is-in` — the halves are
   visible by default, so they can never be stranded hidden if the scroll
   observer doesn't fire. */
.wannwo { overflow-x: clip; }
.event.reveal { transition: none; }
.event.reveal.is-pre,
.event.reveal.is-in { opacity: 1; transform: none; }
.wannwo .event.is-in .event-illu { animation: wannwoInLeft 900ms cubic-bezier(.2, .7, .2, 1) both; }
.wannwo .event.is-in .event-text { animation: wannwoInRight 900ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes wannwoInLeft {
  from { opacity: 0; transform: translateX(-44px); }
  to { opacity: 1; transform: none; }
}
@keyframes wannwoInRight {
  from { opacity: 0; transform: translateX(44px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wannwo .event.is-in .event-illu,
  .wannwo .event.is-in .event-text { animation: none; }
}
@media (max-width: 720px) {
  .wannwo-grid { gap: 56px; }
  .event {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(20px, 5vw, 32px);
  }
}
.event h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(32px, 3.6vw, 48px);
  margin: 0 0 14px;
  color: var(--cream);
}
.event-venue {
  margin: 0;
  font-size: clamp(20px, 2vw, 27px);
  color: var(--cream);
}
.event-venue strong {
  display: block;
  font-weight: 500;
}
.event-detail {
  margin: 8px 0 0;
  font-size: clamp(18px, 1.8vw, 24px);
  font-style: italic;
  color: var(--cream);
  opacity: 0.85;
}
.event-illu {
  margin-top: 0;
  width: 100%;
  height: clamp(180px, 24vw, 280px);
  color: var(--cream);
}
.event-illu image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.event-illu image-slot::part(frame) { background: transparent; }
.event-map { margin-top: clamp(16px, 2vw, 24px); }
.event-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───── COLLAGE BREAK ───── */
.collage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  max-height: 80vh;
  background: #1a1a14;
  overflow: hidden;
}
.collage-bg image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.collage-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  pointer-events: none;
  padding: 0 8%;
  gap: clamp(8px, 1.4vw, 20px);
}
.collage-poly {
  pointer-events: auto;
  width: 100%;
  max-width: clamp(220px, 30vw, 520px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.collage-poly--up,
.collage-poly--mid,
.collage-poly--down { transform: none; }
/* Below 1024px the polaroids lay out as a wrapping flex grid — each takes a
   third of the inner width (minus padding + gaps) and wraps to the next row
   once it would drop below its min-width, instead of overlapping. */
@media (max-width: 1023px) {
  .collage {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .collage-overlay {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 48px);
    gap: clamp(14px, 2.4vw, 26px);
  }
  .collage-poly {
    flex: 0 1 calc((100% - 2 * clamp(14px, 2.4vw, 26px)) / 3);
    min-width: 200px;
    max-width: none;
  }
}

/* ───── UNTERKUNFT ───── */
.unterkunft .inner {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  max-width: 1280px;
}
.unterkunft .photo-frame--wide {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
}
.unterkunft .copy { max-width: 34em; }
.unterkunft h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(34px, 4vw, 50px);
  margin: 0 0 18px;
  color: var(--cream);
  font-weight: 500;
}
.unterkunft p {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.4;
  color: var(--cream);
  margin: 0;
}

/* Accommodation / location links */
.loc-links {
  list-style: none;
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 0;
}
.loc-link {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(13px, 1.6vw, 18px) 2px;
  border-top: 1px solid var(--rule);
  color: var(--cream);
  text-decoration: none;
  transition: padding-left 220ms ease, opacity 220ms ease;
}
.loc-links li:last-child .loc-link { border-bottom: 1px solid var(--rule); }
.loc-link:hover { padding-left: 10px; }
.loc-name {
  flex: 1 1 auto;
  text-align: left;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
}
.loc-place {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}
.loc-arrow {
  flex: none;
  margin-left: 2px;
  font-size: clamp(18px, 1.8vw, 22px);
  opacity: 0.8;
}
@media (max-width: 720px) {
  .unterkunft .inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
    justify-items: center;
  }
  .unterkunft .copy { order: 1; }
  .unterkunft .photo-frame { order: 2; margin: 0 auto; }
  .unterkunft .photo-frame--wide { max-width: 300px; }
}

/* ───── SAVE THE DATE FOOTER ───── */
.outro {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.outro .inner {
  padding-top: clamp(96px, 14vw, 160px);
  padding-bottom: clamp(96px, 14vw, 160px);
  max-width: 1000px;
}
.outro-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 1;
  margin: 0 0 clamp(28px, 5vw, 56px);
  color: var(--cream);
}
.outro-photo {
  width: min(840px, 100%);
  aspect-ratio: 16 / 10;
  margin: 0 auto clamp(36px, 6vw, 64px);
  box-shadow: var(--shadow-photo);
  overflow: hidden;
  border-radius: 2px;
}
.outro-photo image-slot { width: 100%; height: 100%; display: block; }
.outro-body {
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--cream);
  margin: 0;
  padding-bottom: clamp(28px, 5vw, 56px);
  max-width: 24em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
/* Outro: the shared section frame, shown in cream (no recolour filter) with a
   soft shadow. Sized a touch larger than the hero corners. */
.outro .sframe { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.32)); opacity: 0.92; }
.outro .sframe--corner { width: clamp(130px, 20vw, 264px); }
.outro .sframe--tl,
.outro .sframe--tr { top: clamp(20px, 3vw, 52px); }
.outro .sframe--bl,
.outro .sframe--br { bottom: clamp(20px, 3vw, 52px); }
.outro .sframe--tl, .outro .sframe--bl { left: clamp(20px, 3vw, 52px); }
.outro .sframe--tr, .outro .sframe--br { right: clamp(20px, 3vw, 52px); }

/* ───── FILIGREE DIVIDERS ───── */
.divider {
  display: flex;
  justify-content: center;
  color: var(--cream);
  opacity: 0.85;
}
.divider-img { width: clamp(170px, 26vw, 300px); height: auto; display: block; }
.divider--top {
  margin-bottom: clamp(48px, 6vw, 80px);
}
.divider--bottom {
  margin-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
/* Tweak: compact divider that hugs the paragraph above it */
.divider--below-text {
  margin-top: clamp(18px, 2.6vw, 36px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
/* Tweak: larger divider that reads as a break between two sections */
.divider--section {
  margin-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.divider--section .divider-img { width: clamp(280px, 44vw, 520px); }

/* ───── FLOURISH (Tweakable decorative motif) ───── */
.flourish {
  display: block;
  pointer-events: none;
  opacity: 0.9;
}
.flourish--center {
  margin: clamp(10px, 2vw, 22px) auto clamp(2px, 1vw, 10px);
  height: clamp(92px, 12vw, 152px);
  width: auto;
}
.flourish--inline {
  height: clamp(72px, 9vw, 116px);
  width: auto;
  margin: 0 0 clamp(12px, 1.6vw, 20px);
}

/* ───── PHOTO FRAMES (clean, borderless) ───── */
.photo-frame {
  position: relative;
  box-shadow: var(--shadow-photo);
  overflow: hidden;
  border-radius: 2px;
  width: clamp(220px, 30vw, 320px);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
}
.photo-frame image-slot {
  width: 100%;
  flex: 1;
  display: block;
}
.photo-frame--wide {
  width: clamp(260px, 34vw, 380px);
  aspect-ratio: 4 / 5;
}
.photo-frame--center { margin: 0 auto; }

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--cream);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: transparent;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}
.btn:hover {
  background: var(--cream);
  color: var(--burgundy);
}
.section-sage .btn:hover { color: var(--sage); }

/* ───── COUNTDOWN (compact, secondary to the date) ───── */
.date-countdown {
  margin-top: clamp(22px, 3vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(10px, 1.4vw, 18px);
  opacity: 0.8;
}
.cd-cell { display: inline-flex; align-items: baseline; gap: 6px; }
.cd-num {
  font-family: var(--font-serif);
  font-size: clamp(33px, 3.9vw, 48px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  line-height: 1;
}
.cd-label {
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}
.cd-sep { margin-left: clamp(4px, 0.8vw, 10px); opacity: 0.4; color: var(--cream); }

.cal-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(18px, 2.4vw, 28px);
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  width: fit-content;
  transition: border-color 200ms ease, gap 200ms ease;
}
.cal-link:hover { border-bottom-color: var(--cream); gap: 13px; }
.cal-link svg { flex: none; }

/* ───── TOAST ───── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  z-index: 80;
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ───── REVEAL ─────
   Content is visible by default (SSR-safe). On client mount, JS adds
   `.is-pre` to elements not yet in view so they fade in. `.is-in` reveals.
*/
.reveal {
  transition: opacity 1100ms ease, transform 1100ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-pre {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ───── ADDRESS MODAL (leave address for the printed invitation) ───── */
.addr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 15px 30px;
  border: 1px solid var(--cream);
  color: var(--cream);
  background: transparent;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}
.addr-trigger:hover { background: var(--cream); color: var(--burgundy); }
.addr-trigger svg { flex: none; }

.addr-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 4, 5, 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: addrFade 200ms ease;
}
@keyframes addrFade { from { opacity: 0; } to { opacity: 1; } }

.addr-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--cream);
  color: var(--ink);
  border-radius: 4px;
  padding: clamp(36px, 4.5vw, 58px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: addrPop 260ms cubic-bezier(.2, .7, .2, 1);
}
@keyframes addrPop {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.addr-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.45;
  background: none;
  border: 0;
  cursor: pointer;
}
.addr-close:hover { opacity: 1; }
.addr-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 46px);
  margin: 0 0 8px;
  color: var(--burgundy);
}
.addr-sub {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.5;
  margin: 0 0 28px;
  color: var(--ink);
  opacity: 0.7;
}
.addr-banner {
  margin: 0 0 22px;
  padding: 13px 17px;
  border: 1px solid rgba(179, 38, 30, 0.3);
  border-radius: 4px;
  background: rgba(179, 38, 30, 0.09);
  color: #8a1c16;
  font-size: 15.5px;
}
.addr-field { display: block; margin-bottom: 22px; }
.addr-field > span {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  opacity: 0.8;
}
.addr-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 17px;
  border: 1px solid rgba(26, 4, 5, 0.3);
  border-radius: 3px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease;
}
.addr-field input::placeholder { color: rgba(26, 4, 5, 0.5); }
.addr-field input:focus {
  outline: none;
  border-color: var(--burgundy);
  background: #fff;
}
.addr-field input.is-invalid {
  border-color: #b3261e;
  background: rgba(179, 38, 30, 0.05);
}
.addr-field em {
  display: block;
  margin-top: 7px;
  font-style: normal;
  font-size: 14.5px;
  color: #b3261e;
}
.addr-submit {
  width: 100%;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 22px;
  background: var(--burgundy);
  color: var(--cream);
  border: 0;
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, opacity 200ms ease;
}
.addr-submit:hover:not(:disabled) { background: var(--burgundy-deep); }
.addr-submit:disabled { opacity: 0.7; cursor: default; }
.addr-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(236, 226, 204, 0.4);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: addrSpin 700ms linear infinite;
}
@keyframes addrSpin { to { transform: rotate(360deg); } }
.addr-success { text-align: center; padding: 8px 0; }
.addr-check {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.addr-success h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(34px, 4vw, 42px);
  margin: 0 0 10px;
  color: var(--burgundy);
}
.addr-success p {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.75;
  margin: 0 0 28px;
}
.addr-success .addr-submit { width: auto; padding: 15px 38px; margin: 0 auto; }
