/* =================================================================
   1. Tokens — change these first, everything else follows
   ================================================================= */
:root {
  --ink:         #1b2126;
  --maroon:      #40212A;
  --green:       #65684a;
  --pink:        #7f4751;
  --light-green: #d1d4ad;
  --cream:       #e6e4dd;

  --font-body:   "Optima", "Candara", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;

  --space:      1.25rem;
  --space-lg:   2.5rem;
  --space-xl:   5rem;
  --measure:    64ch;
  --wrap:       68rem;
  --radius:     6px;

  --text-main:  clamp(0.9rem, 0.9rem + 0.85vw, 1.375rem);
  --text-xl:    clamp(1.1rem, 1rem + 1vw, 1.5625rem);
}

/* =================================================================
   1b. Local fonts
   ================================================================= */
@font-face {
  font-family: "Optima";
  src: url("assets/fonts/optima/OPTIMA.TTF?v=1788412610") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Optima";
  src: url("assets/fonts/optima/Optima Medium.ttf?v=1788412610") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Optima";
  src: url("assets/fonts/optima/OPTIMA_B.TTF?v=1788412610") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Optima";
  src: url("assets/fonts/optima/Optima_Italic.ttf?v=1788412610") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/*@font-face {
  font-family: "Luxurious Script";
  src: url("assets/fonts/Luxurious_Script/LuxuriousScript-Regular.ttf?v=1788412610") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}*/

/* =================================================================
   2. Base
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-family: "Great Vibes", cursive;
}

p { margin: 0 0 1em; max-width: var(--measure); }

/* Canva "Spacing" units are 1/1000 em, not px */
.paragraph-xl {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1rem + 1vw, 1.5625rem);
  letter-spacing: 0.1em; /* Canva Spacing: 100 */
  line-height: 1.3;
}
.paragraph-main {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 0.9rem + 0.85vw, 1.375rem);
  letter-spacing: 0.01em; /* Canva Spacing: 10 */
  line-height: 1.3;
}
.paragraph-sm {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.82rem + 0.45vw, 1rem);
  letter-spacing: 0.01em; /* Canva Spacing: 10 */
  line-height: 1.3;
}

.h1 {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 1.3;
}
.h2 {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1.3;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dim); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* =================================================================
   3. Header + navigation
   ================================================================= */
.site-header {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--maroon);
  backdrop-filter: blur(6px);
  z-index: 5;
  font-family: var(--font-body);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space);
  min-height: 4rem;
  flex-wrap: wrap;
}

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding-block: 0.35rem;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--light-green); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: var(--size-sm);
  color: var(--cream);
  cursor: pointer;
}
.nav-toggle-bar {
  position: relative;
  width: 16px; height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-label {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
  box-shadow: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 30;
  }
  .header-inner { justify-content: flex-end; }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding-bottom: 0.75rem;
  }
  .site-nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 20;
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background: var(--maroon);
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  .site-nav.is-open a { font-size: 1.5rem; }

  body.nav-open { overflow: hidden; }
}

/* =================================================================
   4. Sections
   ================================================================= */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem);
  background-image: url("assets/imagery/maroon-bg-texture.jpg?v=1788412610");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; }

.hero-kicker {
  margin: 0;
  max-width: none;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--cream);
}

.hero-title {
  margin: -0.5rem 0 0;
  max-width: none;
  font-variant-ligatures: common-ligatures contextual discretionary-ligatures historical-ligatures;
  font-feature-settings: "calt" 1, "liga" 1, "dlig" 1, "salt" 1, "ss01" 1, "ss02" 1, "ss03" 1, "ss04" 1;
  color: var(--cream);
  transform: rotate(-2.5deg);
}

.hero-polaroid {
  margin: 0 auto;
  width: min(100%, 40rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  transform: rotate(-2.5deg);
}
.hero-polaroid img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-tagline {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  max-width: none;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--cream);
}
.hero-tagline em { font-style: italic; letter-spacing: 0.1em; }

.date {
  background-image: url("assets/imagery/date-section.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
  height: min(56.25vw, 900px);
  overflow: hidden;
}

.filler-collage {
  position: absolute;

  top: 0;
  left: 50%;

  width: min(1600px, 100%);
  height: 100%;

  transform: translateX(-50%);
}

/* ========================================
   BACKGROUND
======================================== */

.hero-background {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(40, 40, 40, 0.48),
      rgba(40, 40, 40, 0.48)
    ),
    url("assets/images/city-background.jpg");

  background-size: cover;
  background-position: center;

  filter: grayscale(100%);
}


/* ========================================
   COLLAGE CONTAINER
======================================== */

.hero-collage {
  position: relative;

  width: min(1100px, 100%);
  min-height: 100vh;
  min-height: 100svh;

  margin: 0 auto;
}


/* ========================================
   FILLER POLAROIDS (shared frame style)
======================================== */

.filler-polaroid {
  position: absolute;

  background: var(--cream);

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.25);

  z-index: 2;
}

.filler-polaroid img {
  display: block;

  width: 100%;

  object-fit: cover;
}


/* Venue photo — upper left */

.filler-polaroid-venue {
  width: 480px;

  top: 3%;
  left: 2%;

  background: none;
  padding: 0;
  box-shadow: none;
}

.filler-polaroid-venue img {
  height: auto;
}


/* ========================================
   INVITATION CARD — UPPER RIGHT
======================================== */

.invitation-card {
  position: absolute;

  top: 2%;
  right: 33%;

  width: 220px;
  height: 300px;

  box-sizing: border-box;

  padding: 25px 20px;

  background: #48232c;

  border: 1px solid #c9b98b;

  color: #f3eee0;

  text-align: center;

  z-index: 4;

  box-shadow:
    5px 7px 15px rgba(0, 0, 0, 0.18);
}


/* Inner border */

.invitation-card::before {
  content: "";

  position: absolute;

  inset: 5px;

  border: 1px solid rgba(201, 185, 139, 0.5);

  pointer-events: none;
}


/* Date */

.invitation-date {
  position: relative;
  margin: 0 0 12px;
}


/* Names */

.invitation-card h1 {
  position: relative;

  margin: 5px 0;

  font-family: "Great Vibes", cursive;

  font-size: 34px;

  font-weight: 400;

  line-height: 0.9;
}


/* Time */

.invitation-time {
  position: relative;

  margin: 10px 0 0;
}


/* Decorative ornament */

.ornament {
  display: block;
  width: 65%;
  height: auto;
  margin: 1rem auto;
  padding: 1rem auto;
}


/* ========================================
   INITIALS CARD — LOWER LEFT
======================================== */

.initials-card {
  position: absolute;

  left: 0%;
  top: 30%;

  width: 270px;
  height: 155px;

  background: #48232c;

  border: 1px solid #d2c399;

  color: #f5f0df;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 15px;

  transform: rotate(4deg);

  z-index: 3;

  box-shadow:
    5px 8px 15px rgba(0, 0, 0, 0.2);
}


/* Inner border */

.initials-card::before {
  content: "";

  position: absolute;

  inset: 5px;

  border: 1px solid rgba(210, 195, 153, 0.6);
}


/* Initial letters */

.initials-card span {
  font-family: "Great Vibes", cursive;

  font-size: 55px;

  font-weight: 400;
}


/* Ampersand */

.initials-card small {
  font-family: "Great Vibes", cursive;

  font-size: 25px;
}


/* ========================================
   FLOWERS
======================================== */

.flower {
  position: absolute;

  pointer-events: none;

  z-index: 4;
}


/* Gold flower */

.flower-gold {
  width: 220px;

  top: 14%;
  left: 25%;

  transform: rotate(-74.1deg);
}


/* Yellow flower */

.flower-yellow {
  width: 150px;

  top: 46%;
  left: 20%;

  transform: rotate(-8deg);

  z-index: 6;
}


/* ========================================
   ENVELOPE
======================================== */

.envelope {
  position: absolute;

  left: 44%;
  top: 42%;

  width: 300px;

  transform: translate(-50%, -50%);

  z-index: 5;

  filter:
    drop-shadow(
      0 10px 12px rgba(0, 0, 0, 0.18)
    );
}

.envelope img {
  display: block;

  width: 100%;
  height: auto;
}


/* ========================================
   BOTTOM RIGHT POLAROID (portrait photo)
======================================== */

.filler-polaroid-portrait {
  width: 250px;

  right: 24%;
  bottom: 15%;

  background: none;
  padding: 0;

  transform: rotate(1deg);
}

.filler-polaroid-portrait img {
  height: auto;
}


/* ========================================
   STAMPS
======================================== */

.stamp {
  position: absolute;

  width: 70px;

  z-index: 7;
}

.stamp img {
  display: block;

  width: 100%;
  height: auto;
}


/* Orange stamp (upright source image, rotate in CSS) */

.stamp-orange {
  top: 40%;
  left: 60%;

  transform: rotate(17deg);
}


/* Flower stamp (already tilted in source image) */

.stamp-flower {
  width: 90px;

  top: 50%;
  left: 57%;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

  .date {
    height: auto;
    min-height: 750px;
  }

  .hero-collage {
    min-height: 750px;
  }


  /* Venue photo */

  .filler-polaroid-venue {
    width: 260px;

    top: 9%;
    left: 4%;
  }


  /* Invitation */

  .invitation-card {
    width: 145px;
    height: 200px;

    top: 12%;
    right: 5%;

    padding: 18px 12px;
    align-items: center;
  }

  .invitation-date {
    font-size: var(--font-body);
  }

  .invitation-card h1 {
    font-size: 25px;
  }

  .invitation-time {
    font-size: 9px;
  }

  .ornament {
    width: 55%;
  }


  /* Initials */

  .initials-card {
    width: 155px;
    height: 90px;

    top: 71%;
    left: 5%;
  }

  .initials-card span {
    font-size: 40px;
  }

  .initials-card small {
    font-size: 18px;
  }


  /* Envelope */

  .envelope {
    width: 200px;

    top: 50%;
  }


  /* Gold flower */

  .flower-gold {
    width: 110px;

    top: 28%;
    left: 42%;
  }

  /* Yellow flower */

  .flower-yellow {
    width: 80px;

    top: 64%;
    left: 28%;
  }


  /* Right photo */

  .filler-polaroid-portrait {
    width: 145px;

    right: 5%;
    bottom: 8%;
  }


  /* Stamps */

  .stamp {
    width: 50px;
  }

  .stamp-orange {
    top: 55%;
    left: 65%;
  }

  .stamp-flower {
    width: 65px;

    top: 62%;
    left: 57%;
  }
}

/* =================================================================
   ITINERARY
   ================================================================= */
.itinerary {
  background-image: url("assets/imagery/cream-bg-texture.jpg");
  background-size: cover;
  background-position: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  color: var(--ink);
}

.itinerary-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.itinerary-inner > * {
  min-width: 0;
}

.itinerary-title {
  color: var(--pink);
  margin: 0 0 2rem;
}

.itinerary-photo {
  position: relative;
  margin: 0 0 3rem;
  max-width: 90%;
}

.itinerary-photo:last-child {
  margin-bottom: 0;
}

.itinerary-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.itinerary-photo-2 {
  margin-left: 0;
}

.itinerary-list {
  margin: 0;
}

.itinerary-item {
  margin: 0 0 2.5rem;
}

.itinerary-item:last-child {
  margin-bottom: 0;
}

.itinerary-item dt {
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.itinerary-item dd {
  margin: 0;
  max-width: 46rem;
  color: var(--ink);
}

@media (max-width: 800px) {
  .itinerary-inner {
    grid-template-columns: 1fr;
  }

  .itinerary-media {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .itinerary-title {
    width: 100%;
  }

  .itinerary-photo-2 {
    margin-left: 0;
  }
}

/* =================================================================
   ACCOMMODATIONS
   ================================================================= */
.accommodations {
  background-image: url("assets/imagery/maroon-bg-texture.jpg");
  background-size: cover;
  background-position: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  color: var(--cream);
}

.accommodations-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.accommodations-inner > * {
  min-width: 0;
}

.accommodations-title {
  color: var(--cream);
  margin: 0 0 1.5rem;
}

.accommodations-intro {
  color: var(--cream);
  margin: 0 0 2.5rem;
  max-width: 32rem;
}

.accommodations-intro em {
  font-style: italic;
}

.accommodations-list {
  margin: 0;
}

.accommodations-item {
  margin: 0 0 2.5rem;
}

.accommodations-item:last-child {
  margin-bottom: 0;
}

.accommodations-item dt {
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.accommodations-item dd {
  margin: 0;
  max-width: 46rem;
  color: var(--cream);
  opacity: 0.85;
}

.accommodations-media {
  min-width: 0;
}

.accommodations-photo {
  width: 75%;
  margin: 0 0 2rem auto;
}

.accommodations-photo:last-child {
  margin-bottom: 0;
}

.accommodations-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 800px) {
  .accommodations-inner {
    grid-template-columns: 1fr;
  }

  .accommodations-media {
    order: -1;
    max-width: 26rem;
    margin: 0 auto 1rem;
  }
}

/* =================================================================
   RSVP
   ================================================================= */
.rsvp {
  background-image:
    linear-gradient(rgba(27, 33, 38, 0.55), rgba(27, 33, 38, 0.55)),
    url("assets/imagery/date-section.jpg");
  background-size: cover;
  background-position: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  color: var(--cream);
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

.rsvp-inner {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: clamp(3rem, 10vw, 8rem);
  align-items: stretch;
}

.rsvp-inner > * {
  min-width: 0;
}

.rsvp-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.rsvp-form-col {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.rsvp-title {
  color: var(--cream);
  margin: 0;
  text-shadow: 0 2px 10px rgba(27, 33, 38, 0.85);
}

.rsvp-lede {
  color: var(--cream);
  margin: 0;
  text-shadow: 0 1px 6px rgba(27, 33, 38, 0.85);
}

@media (max-width: 800px) {
  .rsvp-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .rsvp-guest-line label {
    white-space: normal;
  }
}

.rsvp-stamp {
  --perf-r: 8px;
  --perf-gap: 24px;
  --pad-block: clamp(2rem, 6vw, 3rem);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: var(--cream);
  padding: var(--pad-block) clamp(1.5rem, 6vw, 2.5rem);
  transform: rotate(-1deg);
  box-shadow:
    inset 0 0 0 2px var(--maroon),
    0 20px 35px rgba(0, 0, 0, 0.35);
  background-image:
    radial-gradient(circle var(--perf-r), var(--maroon) 99%, transparent 100%),
    radial-gradient(circle var(--perf-r), var(--maroon) 99%, transparent 100%),
    radial-gradient(circle var(--perf-r), var(--maroon) 99%, transparent 100%),
    radial-gradient(circle var(--perf-r), var(--maroon) 99%, transparent 100%),
    url("assets/imagery/cream-bg-texture.jpg");
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, no-repeat;
  background-size:
    var(--perf-gap) calc(var(--perf-r) * 2),
    var(--perf-gap) calc(var(--perf-r) * 2),
    calc(var(--perf-r) * 2) var(--perf-gap),
    calc(var(--perf-r) * 2) var(--perf-gap),
    cover;
  background-position:
    left 0 top calc(var(--perf-r) * -1),
    left 0 bottom calc(var(--perf-r) * -1),
    left calc(var(--perf-r) * -1) top 0,
    right calc(var(--perf-r) * -1) top 0,
    center;
}

.rsvp-form {
  flex: 1;
  text-align: left;
  display: grid;
  align-content: center;
}

.rsvp-form-fields {
  display: grid;
  gap: var(--space-lg);
}

.rsvp-form-fields[hidden] {
  display: none;
}

.rsvp-field {
  display: grid;
  gap: 0.75rem;
}

.rsvp-field > label {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  letter-spacing: 0.1em;
  color: var(--ink);
}

.rsvp-field-inline {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rsvp-field-inline label {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
}

.rsvp-guest-line {
  margin-left: 1.85rem;
}

.rsvp-field input[type="text"],
.rsvp-field input[type="number"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0.3rem 0.2rem;
  font-family: var(--font-body);
  font-size: var(--text-xl);
  letter-spacing: 0.1em;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--green);
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-guest-line input[type="number"] {
  flex: none;
  width: 3.5rem;
}

.rsvp-field input:hover {
  border-color: var(--maroon);
}

.rsvp-field input:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 1px 0 0 var(--maroon);
}

.rsvp-field-invalid {
  border-color: var(--pink) !important;
  background: rgba(127, 71, 81, 0.15);
  outline: none !important;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 3px rgba(127, 71, 81, 0.25),
    0 6px 14px rgba(127, 71, 81, 0.35) !important;
}

.rsvp-choice {
  position: relative;
  display: block;
  padding-left: 2.1rem;
  font-family: var(--font-body);
  font-size: var(--text-xl);
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease;
}

.rsvp-choice:hover {
  color: var(--maroon);
}

.rsvp-choice input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rsvp-choice span {
  display: inline-block;
}

.rsvp-choice span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.3rem;
  height: 1.3rem;
  transform: translateY(-50%);
  background: var(--cream);
  border: 2px solid var(--green);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-choice:hover span::before {
  border-color: var(--maroon);
}

.rsvp-choice input[type="checkbox"]:focus-visible + span::before {
  box-shadow: 0 0 0 3px rgba(64, 33, 42, 0.25);
}

.rsvp-choice input[type="checkbox"]:checked + span::before {
  background: var(--maroon);
  border-color: var(--maroon);
}

.rsvp-choice-invalid span::before {
  border-color: var(--pink) !important;
  box-shadow:
    0 0 0 3px rgba(127, 71, 81, 0.25),
    0 6px 14px rgba(127, 71, 81, 0.35) !important;
}

.rsvp-choice span::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 0.34rem;
  height: 0.62rem;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -65%) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.15s ease;
}

.rsvp-choice input[type="checkbox"]:checked + span::after {
  transform: translate(-50%, -65%) rotate(45deg) scale(1);
}

.rsvp-submit {
  justify-self: center;
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  background: var(--maroon);
  color: var(--cream);
  border: none;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-submit:hover {
  background: var(--pink);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.rsvp-submit:active { transform: translateY(0); }
.rsvp-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.rsvp-status {
  margin: 0;
  text-align: center;
  color: var(--ink);
}

.rsvp-status[data-state="error"] { color: var(--pink); }
.rsvp-status[data-state="success"] {
  color: var(--ink);
  font-size: var(--text-xl);
  letter-spacing: 0.1em;
}

.rsvp-contact {
  margin: var(--space-lg) 0 0;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(27, 33, 38, 0.85);
}

.rsvp-contact a {
  color: var(--cream);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rsvp-contact a:hover { color: var(--light-green); }

.section {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--rule);
}

.button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: var(--size-sm);
  font-weight: 550;
}
.button:hover { background: var(--accent-dim); color: var(--paper); }

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: var(--size-sm); }

.note {
  font-size: var(--size-sm);
  color: var(--ink-soft);
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
}

/* =================================================================
   5. Footer
   ================================================================= */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--space);
  margin-top: var(--space-lg);
  color: var(--ink-soft);
  font-size: var(--size-sm);
}
.site-footer p { margin: 0; }

/* =================================================================
   6. Accessibility preferences
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
