/* =================================================================
   KOSTIW WEDDING — SITE STYLES
   Vanilla CSS. No preprocessor. No framework.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --forest: #1F2A1F;
  --forest-deep: #151C15;
  --aubergine: #2B1B2E;
  --cream: #F0E6D2;
  --cream-dim: #D4CCB5;
  --cream-mute: rgba(240, 230, 210, 0.7);
  --thistle: #A894B5;
  --thistle-deep: #7A6888;
  --line: rgba(240, 230, 210, 0.12);
  --line-strong: rgba(240, 230, 210, 0.32);

  --display: 'Cormorant Infant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: clamp(24px, 5vw, 64px);
  --measure: 60ch;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--forest);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;              /* stop Safari faking italics / weights */
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; image-orientation: from-image; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }

[hidden] { display: none !important; }

/* ---------- Utility ---------- */
.wordmark {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream-mute);
  text-decoration: none;
}

.thistle-mark { color: var(--thistle); opacity: 0.85; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

/* =========================================================
   PUBLIC LANDING
   ========================================================= */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px var(--gutter);
  background: var(--forest);
}

.landing__top,
.landing__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.landing__core {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 40px 0;
}

.landing__names {
  font-family: var(--display);
  font-size: clamp(3.5rem, 14vw, 10rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 0.92;
  margin: 16px 0;
}

.landing__ampersand {
  font-weight: 300;
  font-size: 0.82em;
  color: var(--thistle);
  display: inline-block;
  transform: translateY(-0.05em);
  padding: 0 0.1em;
}

.landing__date {
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  max-width: 38ch;
  line-height: 1.4;
}

.landing__location {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream-mute);
}

.landing .thistle-mark { width: 40px; }

.link-actions {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Actions sitting with the names in the vertical middle of the landing */
.landing__actions {
  margin-top: 40px;
}

/* Right-aligned domain wordmark in the bottom row */
.wordmark--domain {
  margin-left: auto;
}

.link-action {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  color: var(--cream);
  font-weight: 500;
  transition: border-color 0.3s ease, letter-spacing 0.5s ease;
}
.link-action:hover { border-color: var(--cream); letter-spacing: 0.38em; }

/* =========================================================
   GATE
   ========================================================= */
.gate {
  position: fixed;
  inset: 0;
  background: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  z-index: 100;
  animation: fadeIn 0.5s ease;
}

.gate__inner {
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.gate__mark { width: 36px; margin-bottom: 8px; }

.gate__title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
}

.gate__subtitle {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-mute);
  font-weight: 500;
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: center;
  margin-top: 16px;
}

.gate__input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 4px;
  color: var(--cream);
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  width: 280px;
  max-width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
}
.gate__input:focus { border-color: var(--cream); }

.gate__submit {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 14px 36px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  font-weight: 500;
}
.gate__submit:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--forest);
}

.gate__error {
  min-height: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--thistle);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-style: italic;
}
.gate__error.is-shown { opacity: 1; }

.gate__back {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-mute);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 500;
}
.gate__back:hover { color: var(--cream); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================
   NAV (inside)
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  background: linear-gradient(180deg, rgba(21, 28, 21, 0.92) 0%, rgba(21, 28, 21, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.nav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__brand {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  font-weight: 500;
  cursor: pointer;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__link {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-dim);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-weight: 500;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

@media (max-width: 900px) {
  .nav__links { gap: 18px; }
  .nav__link { font-size: 10px; letter-spacing: 0.15em; }
}
@media (max-width: 640px) {
  .nav { padding: 14px var(--gutter); }
  .nav__links .hide-mobile { display: none; }
  .nav__links { gap: 14px; }
}

/* =========================================================
   SECTION SHARED
   ========================================================= */
section {
  padding: 140px var(--gutter) 120px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-label {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--thistle);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-heading {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  letter-spacing: -0.025em;
  margin-bottom: 48px;
  line-height: 0.98;
}

.section-sub {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-bottom: 40px;
  font-weight: 500;
}

@media (max-width: 640px) {
  section { padding: 100px var(--gutter) 80px; }
}

/* =========================================================
   HOME (inside)
   ========================================================= */
.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
}

/* Hero variant — full-bleed photo behind the opening lines */
.home--hero {
  position: relative;
  /* Escape section max-width + gutter to reach true viewport edges */
  max-width: none;                     /* override section { max-width: 1400px } */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 140px var(--gutter) var(--gutter);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* top */
  align-items: flex-end;        /* right */
}
.home__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  image-orientation: from-image;
  z-index: -2;
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.02);
}
/* Scrim weighted to the top-right, so faces lower-centre stay unobstructed */
.home__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(31, 42, 31, 0.75) 0%,
      rgba(31, 42, 31, 0.45) 35%,
      rgba(31, 42, 31, 0.1) 60%,
      rgba(31, 42, 31, 0.5) 100%),
    linear-gradient(270deg,
      rgba(31, 42, 31, 0.55) 0%,
      rgba(31, 42, 31, 0.15) 45%,
      rgba(31, 42, 31, 0.0) 100%);
}
.home__content {
  position: relative;
  max-width: 560px;
  text-align: right;
}
.home--hero .home__lead {
  margin-left: auto;   /* pin right even with narrow max-width */
  max-width: none;     /* line breaks are now manual via <br> */
  line-height: 1.12;   /* a touch more air between stacked phrases */
}
.home--hero .home__hint {
  margin-left: auto;
}
.home--hero .home__hint::after {
  display: none; /* kill the trailing rule-line when right-aligned */
}
.home--hero .home__hint::before {
  content: '';
  width: 60px;
  height: 1px;
  background: currentColor;
}
.home--hero .home__lead em { color: var(--cream); }

@media (max-width: 720px) {
  .home--hero {
    padding-top: 120px;
    align-items: flex-end; /* keep right */
  }
  .home__content { max-width: 100%; }
  .home--hero .home__lead { max-width: 100%; }
  /* Keep us in frame on portrait mobile — we're positioned lower-left in the shot */
  .home__bg {
    background-position: 28% 65%;
  }
  /* Darken the lower-left scrim a touch so faces read against the thistle type stack */
  .home__scrim {
    background:
      linear-gradient(180deg,
        rgba(31, 42, 31, 0.7) 0%,
        rgba(31, 42, 31, 0.35) 30%,
        rgba(31, 42, 31, 0.1) 55%,
        rgba(31, 42, 31, 0.55) 100%),
      linear-gradient(270deg,
        rgba(31, 42, 31, 0.4) 0%,
        rgba(31, 42, 31, 0.15) 50%,
        rgba(31, 42, 31, 0.0) 100%);
  }
}

.home__lead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.25rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 48px;
}

.home__lead em {
  color: var(--thistle);
  font-style: italic;
  font-weight: 400;
}

.home__hint {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-mute);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
.home__hint::after {
  content: '';
  width: 60px;
  height: 1px;
  background: currentColor;
}

/* =========================================================
   US + POLAROID STRIP
   ========================================================= */
.us__body {
  max-width: 56ch;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 72px;
  color: var(--cream-dim);
}

.strip-wrap {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
  padding: 40px 0 60px;
}

.strip {
  display: flex;
  gap: 36px;
  padding: 0 var(--gutter);
  will-change: transform;
}

.polaroid {
  flex: 0 0 auto;
  width: 280px;
  background: var(--cream);
  padding: 14px 14px 52px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5),
              0 2px 4px rgba(0, 0, 0, 0.3);
  transform: rotate(var(--tilt, -1.5deg));
  position: relative;
  transition: transform 0.4s ease;
}
.polaroid:hover { transform: rotate(var(--tilt, -1.5deg)) scale(1.03) translateY(-4px); }

.polaroid:nth-child(1) { --tilt: -2deg; }
.polaroid:nth-child(2) { --tilt: 1.5deg; }
.polaroid:nth-child(3) { --tilt: -1deg; }
.polaroid:nth-child(4) { --tilt: 2.2deg; }
.polaroid:nth-child(5) { --tilt: -1.8deg; }
.polaroid:nth-child(6) { --tilt: 1deg; }

.polaroid__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
  background: var(--forest);
}

.polaroid__caption {
  position: absolute;
  bottom: 16px;
  left: 14px;
  right: 14px;
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--forest-deep);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .polaroid { width: 220px; padding: 10px 10px 40px; }
  .polaroid__caption { font-size: 12px; bottom: 12px; }
  .strip { gap: 24px; }
}

/* =========================================================
   THE DAY — cards
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--forest);
  padding: 48px 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.4s ease;
}
.card:hover { background: var(--aubergine); }

.card__label {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--thistle);
  font-weight: 500;
}

.card__heading {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  font-style: italic;
  letter-spacing: -0.01em;
}

.card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-dim);
  flex: 1;
}
.card__body strong { font-weight: 500; color: var(--cream); }
.card__body a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.card__body a:hover { border-color: var(--cream); }

/* =========================================================
   THE WEEKEND — programme
   ========================================================= */
.programme { margin-top: 16px; }

.day {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.day:last-child { border-bottom: 1px solid var(--line); }

.day__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day__date {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.day__tag {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--thistle);
  font-weight: 500;
  margin-top: 4px;
}

.day__body {
  display: grid;
  gap: 0;
}

.day__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  font-size: 15px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.day__row:first-child { padding-top: 0; }
.day__row:last-child { border-bottom: none; }

.day__time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
}

.day__event { color: var(--cream); }

@media (max-width: 760px) {
  .day { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .day__row { grid-template-columns: 80px 1fr; gap: 16px; }
}

/* =========================================================
   WHERE TO SLEEP
   ========================================================= */
.sleep__sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  margin: 72px 0 24px;
  letter-spacing: -0.01em;
}
.sleep__sub:first-of-type { margin-top: 0; }

.sleep__image-wrap {
  margin: 32px 0 40px;
}

.sleep__image {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}

.sleep__image-caption {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-top: 12px;
  font-style: italic;
}

.sleep__body {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream-dim);
  margin-bottom: 32px;
}
.sleep__body p { margin-bottom: 1em; }
.sleep__body strong { color: var(--cream); font-weight: 500; }

.pricing {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  border-top: 1px solid var(--line);
  max-width: 600px;
}
.pricing li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.pricing__label {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  flex: 1;
}
.pricing__value {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.note {
  font-size: 13px;
  color: var(--thistle);
  font-style: italic;
  letter-spacing: 0.02em;
  margin-top: 16px;
}

.hotel-list, .transport-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  max-width: 720px;
}
.hotel-list li,
.transport-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
}
.hotel-list li:first-child,
.transport-list li:first-child { border-top: 1px solid var(--line); }

.hotel__name,
.transport__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
}

.hotel__meta,
.transport__meta {
  font-size: 13px;
  color: var(--cream-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 500;
}

.transport__meta a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.transport__meta a:hover { border-color: var(--cream); }

.drive-note {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(43, 27, 46, 0.3);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 720px;
}
.drive-note strong { color: var(--cream); font-weight: 500; }

/* Minibus callout — a warmer block, borders lit in thistle */
.minibus {
  margin: 32px 0 48px;
  padding: 28px 32px;
  border: 1px solid var(--thistle);
  background: rgba(168, 148, 181, 0.07);
  max-width: 720px;
  position: relative;
}
.minibus__label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--thistle);
  margin-bottom: 12px;
}
.minibus__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--cream-dim);
  margin: 0 0 10px;
}
.minibus__body strong { color: var(--cream); font-weight: 500; }
.minibus__meta {
  font-size: 12px;
  color: var(--cream-mute);
  letter-spacing: 0.06em;
  margin: 0;
}

/* =========================================================
   RSVP FORM
   ========================================================= */
.rsvp {
  max-width: 720px;
  margin: 0 auto;
}

.rsvp__progress {
  height: 1px;
  background: var(--line);
  margin: 16px 0 56px;
  position: relative;
  overflow: hidden;
}
.rsvp__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--thistle);
  transition: width 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
  width: 20%;
}

.rsvp__step { display: none; }
.rsvp__step.is-active { display: block; animation: stepIn 0.4s ease; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rsvp__step-label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--thistle);
  margin-bottom: 12px;
  font-weight: 500;
}

.rsvp__step-heading {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.rsvp__step-sub {
  font-size: 14px;
  color: var(--cream-mute);
  margin-bottom: 40px;
  letter-spacing: 0.03em;
  font-style: italic;
}

.field { margin-bottom: 28px; }

.field__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 10px;
  font-weight: 500;
}
.field__required { color: var(--thistle); margin-left: 2px; }

.field__input,
.field__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  color: var(--cream);
  font-size: 16px;
  font-family: var(--body);
  outline: none;
  transition: border-color 0.3s ease;
}

.field__select {
  width: 100%;
  background: transparent;
  appearance: none;
  cursor: pointer;
  padding: 10px 28px 10px 14px;
  color: var(--cream);
  font-size: 15px;
  font-family: var(--body);
  outline: none;
  transition: border-color 0.3s ease;
  border: 1px solid var(--line-strong);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23D4CCB5' stroke-width='1.2' stroke-linecap='round'><path d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field__select option {
  background: var(--forest);
  color: var(--cream);
}

.field__textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--cream);
}
.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--cream-mute);
  opacity: 0.6;
  font-style: italic;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
}

/* Choice cards (radio-style) */
.choice-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.choice {
  position: relative;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 22px 24px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease;
  color: var(--cream);
  font-family: inherit;
  display: block;
}
.choice:hover { border-color: var(--cream); }
.choice.is-selected {
  border-color: var(--thistle);
  background: rgba(168, 148, 181, 0.08);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice__title {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.choice__sub {
  font-size: 13px;
  color: var(--cream-mute);
  line-height: 1.5;
}

/* Day checklist */
.day-choices {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 12px;
  background: var(--line);
  border: 1px solid var(--line);
}

.day-choice {
  background: var(--forest);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}
.day-choice:hover { background: var(--aubergine); }
.day-choice.is-selected { background: rgba(168, 148, 181, 0.1); }
.day-choice input { accent-color: var(--thistle); width: 18px; height: 18px; cursor: pointer; }

.day-choice__title {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
}
.day-choice__sub {
  font-size: 11px;
  color: var(--cream-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Form nav (back / next / submit) */
.rsvp__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.rsvp__nav-start { flex: 0 0 auto; }
.rsvp__nav-end { flex: 1; display: flex; justify-content: flex-end; }

.btn {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 14px 32px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  font-weight: 500;
}
.btn:hover:not(:disabled) {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--forest);
}
.btn--primary { border-color: var(--cream); }
.btn--quiet {
  border: none;
  padding: 14px 16px;
  color: var(--cream-mute);
}
.btn--quiet:hover { background: transparent; color: var(--cream); border: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--helper {
  padding: 8px 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  margin-top: 12px;
}

.add-guest {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--cream-dim);
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
  margin: 16px 0 32px;
  font-weight: 500;
}
.add-guest:hover { border-color: var(--cream); color: var(--cream); }

.guest {
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 16px;
  position: relative;
  background: rgba(43, 27, 46, 0.15);
}
.guest__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.guest__label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--thistle);
  font-weight: 500;
}
.guest__remove {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream-mute);
  width: 28px;
  height: 28px;
  line-height: 1;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.guest__remove:hover { border-color: var(--cream); color: var(--cream); }

.attendance-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.rsvp__error {
  padding: 14px 20px;
  background: rgba(168, 148, 181, 0.1);
  border: 1px solid var(--thistle);
  color: var(--thistle);
  font-size: 13px;
  margin-bottom: 24px;
  display: none;
  letter-spacing: 0.02em;
}
.rsvp__error.is-shown { display: block; }

.rsvp__success {
  text-align: center;
  padding: 80px 40px;
}
.rsvp__success-heading {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.rsvp__success-body {
  color: var(--cream-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 48ch;
  margin: 0 auto;
}
.rsvp__success-body a { color: var(--cream); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 72px var(--gutter) 56px;
  text-align: center;
  color: var(--cream-mute);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 80px;
  font-weight: 500;
}
.footer__brand {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cream);
  margin-bottom: 20px;
  font-weight: 300;
}
.footer__mark {
  width: 28px;
  margin: 12px auto 20px;
  color: var(--thistle);
  opacity: 0.7;
  display: block;
}
.footer__meta { margin-top: 6px; }

.footer__contact {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cream-mute);
}
.footer__contact a {
  color: var(--thistle);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  margin-left: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer__contact a:hover { color: var(--cream); border-color: var(--cream); }

.rsvp__help-link {
  color: var(--thistle);
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.rsvp__help-link:hover { color: var(--cream); border-color: var(--cream); }

/* =========================================================
   STANDALONE RSVP PAGE (rsvp.html)
   ========================================================= */
.standalone {
  padding: 80px var(--gutter);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.standalone__wrap {
  max-width: 720px;
  width: 100%;
  padding-top: 40px;
}
.standalone__header {
  text-align: center;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.standalone__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.standalone__meta {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-mute);
  font-weight: 500;
}
.standalone__mark {
  width: 28px;
  margin: 16px auto 24px;
  color: var(--thistle);
  display: block;
  opacity: 0.75;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
