/* Kairos wedding theme: burgundy, warm ivory and antique gold. */
@font-face {
  font-family: "Great Vibes";
  src: url("assets/GreatVibes-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ivory: #faf3e6;
  --paper: #fffaf1;
  --burgundy: #681e32;
  --wine: #441323;
  --gold: #b88c45;
  --gold-light: #ead2a0;
  --ink: #351f25;
  --muted: #79625d;
  --line: #b88c4540;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 15px/1.7 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

button, input, select {
  font: inherit;
}

button, a, input, summary, select {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

::selection {
  background: var(--burgundy);
  color: var(--ivory);
}

/* Persistent navigation and private preview status. */
.draft {
  background: var(--wine);
  color: var(--gold-light);
  padding: 8px 20px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.draft span {
  margin-left: 20px;
  letter-spacing: .3px;
  color: #f9ead5;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 6%;
  background: #fffaf1f5;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--burgundy);
  text-decoration: none;
  font: 16px Georgia, serif;
  letter-spacing: 2px;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-size: 12px;
  text-decoration: none;
}

nav a:hover {
  color: var(--burgundy);
}

nav .nav-rsvp {
  background: var(--burgundy);
  color: var(--paper);
  border-radius: 4px;
  padding: 10px 19px;
  border: 1px solid var(--burgundy);
}

.nav-rsvp span {
  margin-left: 14px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 50;
  background: white;
  padding: 14px;
}

.skip-link:focus {
  top: 12px;
}

/* Floral opening: calligraphy is retained only for the couple’s names. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 850px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ivory);
  border-bottom: 5px solid var(--burgundy);
}

.hero-florals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid #b88c4570;
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, #faf3e600, #fffaf155 30%, #fffaf188 50%, #fffaf155 70%, #faf3e600);
}

.hero-content {
  width: min(100%, 1000px);
  padding: 64px 30px 105px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2.7px;
  line-height: 1.9;
  font-weight: 600;
}

.hero .eyebrow {
  color: var(--burgundy);
}

.hero h1 {
  font: 400 clamp(64px, 8.3vw, 112px)/1.1 "Great Vibes", cursive;
  color: var(--burgundy);
  margin: 30px 0 25px;
}

.hero h1 span {
  display: block;
}

.hero h1 em {
  display: block;
  color: #987025;
  font: italic 42px/1.4 Georgia, serif;
}

.hero-sub {
  color: #674b42;
  font: italic 18px/1.6 Georgia, serif;
}

.date-rule {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 28px auto 12px;
}

.date-rule > span {
  font: 55px Georgia, serif;
  color: var(--burgundy);
}

.date-rule > div {
  border-left: 1px solid var(--gold);
  padding-left: 16px;
  font-size: 11px;
  letter-spacing: 3px;
  text-align: left;
  line-height: 1.9;
}

.date-rule b {
  font-weight: 400;
  letter-spacing: 5px;
}

.hero-place {
  font-size: 10px;
  letter-spacing: 2.5px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 24px;
  border: 1px solid var(--burgundy);
  border-radius: 4px;
  background: var(--burgundy);
  color: var(--paper);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}

.button:hover {
  background: var(--wine);
  transform: translateY(-2px);
}

.button > span:not(.button-label) {
  font-size: 19px;
  font-weight: 400;
}

.button.light {
  color: var(--burgundy);
  background: #fffaf1bb;
  border-color: #9f783f;
}

.button.light:hover {
  background: #efe0c2;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  margin: 0;
  font-size: 9px;
  letter-spacing: 2px;
}

.scroll-cue span {
  display: block;
  font-size: 20px;
  margin-top: 8px;
}

/* Invitation, family, and countdown. */
.section {
  padding: 95px max(7%, calc((100% - 1160px) / 2));
}

h2 {
  font: 400 clamp(36px, 4.4vw, 58px)/1.15 Georgia, serif;
  letter-spacing: -1.4px;
  margin: 22px 0;
}

h2 i {
  color: var(--burgundy);
  font-weight: 400;
}

.invitation {
  text-align: center;
  background: var(--paper);
}

.invitation > .eyebrow {
  color: #946b2b;
}

.ornament {
  font-size: 36px;
  color: var(--gold);
  margin: 15px 0;
}

.invitation-copy {
  max-width: 720px;
  margin: 28px auto;
  font: 22px/1.85 Georgia, serif;
}

.family {
  font: italic 20px Georgia, serif;
  color: var(--burgundy);
}

.parents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 850px;
  margin: 40px auto 50px;
}

.parents > div {
  padding: 25px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #f6e8ce, #fffaf1);
  border-radius: 8px;
}

.parents .eyebrow {
  color: #8f652b;
  font-size: 9px;
}

.parents > div > p:last-child {
  font: 21px/1.6 Georgia, serif;
  color: var(--burgundy);
  margin: 12px 0 0;
}

.countdown-heading {
  margin: 0 0 20px;
  color: var(--burgundy);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 22px;
}

.countdown > div {
  width: 116px;
  padding: 20px 10px 17px;
  border: 1px solid #b88c4577;
  background: var(--burgundy);
  border-radius: 8px;
  box-shadow: 0 8px 18px #44132314;
}

.countdown strong {
  display: block;
  font: 42px Georgia, serif;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}

.countdown span {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-top: 8px;
}

.small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  display: inline-block;
  font-size: 12px;
  text-underline-offset: 6px;
  margin-top: 15px;
  color: var(--burgundy);
}

/* Event tabs and a two-part invitation card. */
.celebration-details {
  background: #f0e3cc;
}

.section-title {
  text-align: center;
}

.section-title > .eyebrow {
  color: #815a26;
}

.event-tabs {
  display: flex;
  justify-content: center;
  margin: 35px auto;
  gap: 10px;
}

.event-tabs button {
  min-width: 205px;
  padding: 16px 25px;
  border: 1px solid #bd9b66;
  border-radius: 6px;
  background: #fffaf1aa;
  color: var(--burgundy);
  font: 23px Georgia, serif;
}

.event-tabs button span {
  display: block;
  margin-top: 8px;
  font: 10px Arial, sans-serif;
  letter-spacing: 1px;
}

.event-tabs button[aria-selected="true"] {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--ivory);
  box-shadow: 0 8px 18px #681e3220;
}

.event-tabs button[aria-selected="true"] span {
  color: var(--gold-light);
}

.details {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  background: var(--paper);
  border: 1px solid #c6a367;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px #44132312;
}

.details-intro {
  position: relative;
  padding: 46px 40px;
  background: var(--burgundy);
  color: var(--ivory);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.details-intro::after {
  content: "✧";
  font: 110px Georgia, serif;
  position: absolute;
  right: 25px;
  bottom: 30px;
  color: #ead2a020;
  pointer-events: none;
}

.details-intro .eyebrow {
  color: var(--gold-light);
  font-size: 9px;
}

.event-title {
  font: 42px/1.15 Georgia, serif;
  margin: 30px 0 22px;
}

.details-intro > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  max-width: 290px;
  color: #f1ddca;
}

.details-intro .button {
  margin-top: auto;
  padding-top: 14px;
  position: relative;
  z-index: 1;
}

.details-intro .light {
  color: var(--ivory);
  border-color: #cfa863;
  background: transparent;
  margin-top: 35px;
}

.details-intro .light:hover {
  background: #812d44;
}

.details[data-theme="engagement"] .details-intro {
  background: #7c3545;
}

.event {
  padding: 38px 40px;
}

.event > .eyebrow {
  color: #866c4d;
  font-size: 9px;
  letter-spacing: 1.6px;
}

.event h3 {
  font: 31px/1.3 Georgia, serif;
  color: var(--burgundy);
  margin: 22px 0 12px;
}

.time {
  display: inline-block;
  font-size: 13px;
  color: var(--burgundy);
  padding: 7px 14px;
  background: #f2e4cc;
  border-radius: 30px;
  margin: 0;
}

.venue {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

h4 {
  font: 24px/1.4 Georgia, serif;
  margin: 0 0 14px;
}

.venue p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 3px 0;
}

.map-tags {
  margin-top: 22px;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #af833c;
  background: #f3e3c3;
  color: var(--burgundy);
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.location-tag:hover {
  background: #e9d2a4;
}

.venue .map-note {
  font-size: 10px;
  margin-top: 12px;
}

.language {
  font-size: 11px;
  color: var(--muted);
  margin-top: 23px;
}

/* RSVP: a clear form, optional engagement, and a preview before sending. */
.rsvp-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 65px;
  background: var(--wine);
  color: var(--ivory);
}

.rsvp-intro .eyebrow {
  color: var(--gold-light);
}

.rsvp-intro h2 i {
  color: var(--gold-light);
}

.rsvp-intro > p:not(.eyebrow) {
  max-width: 370px;
  color: #edd9c8;
  font: 18px/1.8 Georgia, serif;
}

.decor-photo {
  margin: 35px 0 0;
  max-width: 380px;
}

.decor-photo img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 160px 160px 8px 8px;
  border: 1px solid var(--gold);
  padding: 6px;
  background: #ead2a017;
}

.decor-photo figcaption {
  font-size: 9px;
  margin-top: 9px;
  color: #d9bfa6;
  letter-spacing: .5px;
}

#rsvp-form {
  align-self: start;
  background: var(--paper);
  color: var(--ink);
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  box-shadow: 0 20px 45px #1b061733;
}

.form-kicker {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--burgundy);
  margin: 25px 0 15px;
}

.service-status {
  font-size: 11px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f5ead6;
  color: #72562c;
  margin: 0;
  line-height: 1.7;
}

label, legend {
  font-size: 13px;
  line-height: 1.6;
}

input:not([type="radio"]):not([type="checkbox"]), select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #cbb99c;
  border-radius: 5px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 16px;
}

input::placeholder {
  color: #93817a;
}

fieldset {
  min-width: 0;
  border: 0;
  margin: 25px 0 0;
  padding: 14px 0 0;
}

legend {
  font-weight: 600;
  color: var(--burgundy);
}




input[type="radio"], input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--burgundy);
  margin: 0;
  flex-shrink: 0;
}

.count-field {
  margin-top: 20px;
}

.count-field small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.stepper {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
}

.stepper button {
  width: 48px;
  height: 48px;
  border: 1px solid #ba965f;
  border-radius: 5px;
  background: #f0e0c1;
  color: var(--burgundy);
  font-size: 22px;
}

.stepper button:hover {
  background: #e6cca0;
}

.stepper input[type="number"] {
  width: 80px;
  text-align: center;
  margin: 0;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font: 21px/1.45 Georgia, serif;
  color: var(--burgundy);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: #987025;
  font: 25px Georgia, serif;
}

details[open] > summary::after {
  content: "−";
}

details p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.engagement-rsvp {
  margin-top: 8px;
}

.engagement-rsvp summary {
  font: 16px/1.5 Georgia, serif;
}

.engagement-rsvp legend {
  font-size: 11px;
}

.response-preview {
  background: #efe3cd;
  color: var(--burgundy);
  border-radius: 5px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  margin: 24px 0 4px;
}

.privacy-details {
  border: 0;
  padding: 10px 0 15px;
}

.privacy-details summary {
  font: 11px Arial, sans-serif;
  color: var(--muted);
}

.privacy-details summary::after {
  font-size: 18px;
}

.privacy-note {
  font-size: 11px;
  line-height: 1.8;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  margin: 10px 0 23px;
}

.consent input {
  margin-top: 1px;
}

#submit-rsvp {
  width: 100%;
}

#rsvp-feedback {
  font-size: 13px;
  line-height: 1.8;
}

#rsvp-feedback:empty {
  display: none;
}

.saved {
  border: 1px solid #b0b999;
  background: #edf0df;
  color: #355133;
  padding: 14px;
  border-radius: 5px;
}

.error {
  color: #9c233b;
  padding: 10px 0;
}

#rsvp-form > .small {
  margin: 16px 0 0;
  font-size: 10px;
}

/* Guest notes and the final invitation. */
.guest-notes {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  background: var(--paper);
}

.guest-notes > div > p:last-child {
  font-size: 13px;
  color: var(--muted);
}

.guest-notes .eyebrow {
  color: #8d652c;
}

#faq details:first-child {
  padding-top: 0;
}

#faq details[open] {
  background: #f4e9d6;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 6px;
}

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#faf3e6dd, #faf3e6cc), url("assets/floral-hero.jpg") center bottom / cover;
  z-index: -1;
}

.closing h2 {
  max-width: 750px;
  margin: 22px auto;
  color: var(--burgundy);
}

.closing > p:not(.eyebrow) {
  font-size: 10px;
  letter-spacing: 1.7px;
  margin: 28px 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: var(--burgundy);
  color: var(--gold-light);
  padding: 28px 6%;
  font-size: 9px;
  letter-spacing: 1px;
}

.mobile-rsvp {
  display: none;
}

.noscript {
  padding: 25px;
}

/* The private owner dashboard uses the same design tokens. */
#admin-login {
  max-width: 480px;
  margin: 30px 0;
}

#admin-login .button {
  margin-top: 20px;
}

.owner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 35px 0;
}

.owner-stats article {
  padding: 25px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: var(--paper);
}

.owner-stats strong {
  font: 60px Georgia, serif;
  color: var(--burgundy);
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  nav {
    gap: 17px;
  }

  .rsvp-section {
    gap: 35px;
  }

  .details-intro, .event {
    padding: 32px 28px;
  }

  .guest-notes {
    gap: 35px;
  }

  .event-title {
    font-size: 36px;
  }

}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 115px;
  }

  body {
    padding-bottom: 74px;
  }

  header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 11px 5%;
  }

  .brand {
    font-size: 13px;
    letter-spacing: 2px;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 18px;
  }

  nav a {
    font-size: 10px;
    padding: 7px 0;
  }

  nav .nav-rsvp {
    padding: 6px 12px;
  }

  .nav-rsvp span {
    margin-left: 5px;
  }

  .draft {
    font-size: 8px;
    padding: 7px 10px;
    letter-spacing: 1px;
  }

  .draft span {
    display: block;
    margin: 3px 0 0;
    font-size: 8px;
  }

  .hero {
    min-height: 730px;
  }

  .hero::before {
    inset: 15px;
  }

  .hero::after {
    background: linear-gradient(90deg, #faf3e655, #fffaf1a8 35%, #fffaf1a8 65%, #faf3e655);
  }

  .hero-content {
    padding: 60px 22px 105px;
  }

  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 72px);
    margin-top: 25px;
  }

  .hero h1 em {
    font-size: 32px;
    line-height: 1.5;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-actions .button {
    min-width: 220px;
  }

  .scroll-cue {
    bottom: 27px;
    font-size: 8px;
  }

  .section {
    padding: 65px 6%;
  }

  h2 {
    font-size: 38px;
    letter-spacing: -.9px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
  }

  .invitation-copy {
    font-size: 19px;
  }

  .parents {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 32px 0 40px;
  }

  .parents > div {
    padding: 20px 15px;
  }

  .parents > div > p:last-child {
    font-size: 20px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown > div {
    flex: 1;
    width: auto;
    padding: 17px 4px 14px;
  }

  .countdown strong {
    font-size: 32px;
  }

  .countdown span {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .event-tabs {
    gap: 8px;
    margin: 28px 0;
  }

  .event-tabs button {
    min-width: 0;
    flex: 1;
    padding: 14px 8px;
    font-size: 20px;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .details-intro {
    padding: 28px;
  }

  .details-intro .event-title {
    margin: 16px 0;
  }

  .details-intro > p:not(.eyebrow) {
    max-width: none;
    margin: 0;
  }

  .details-intro .button {
    margin-top: 22px;
  }

  .event {
    padding: 28px;
  }

  .event h3 {
    font-size: 28px;
  }

  .event > .eyebrow {
    letter-spacing: 1px;
  }

  h4 {
    font-size: 22px;
  }

  .rsvp-section, .guest-notes {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rsvp-intro > p:not(.eyebrow) {
    max-width: none;
    font-size: 17px;
  }

  .decor-photo {
    max-width: none;
    margin-top: 24px;
  }

  .decor-photo img {
    height: 210px;
    border-radius: 100px 100px 6px 6px;
    object-position: center 56%;
  }

  #rsvp-form {
    padding: 25px 21px;
  }

  .guest-notes h2 {
    margin-bottom: 14px;
  }

  summary {
    font-size: 20px;
  }

  .closing h2 {
    font-size: 38px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    font-size: 8px;
  }

  .mobile-rsvp {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: var(--paper);
    border-top: 1px solid var(--gold);
    padding: 10px 6% calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 25px #44132312;
  }

  .mobile-rsvp > span {
    font-size: 10px;
    color: var(--muted);
  }

  .mobile-rsvp strong {
    display: block;
    font: 16px/1.6 Georgia, serif;
    color: var(--burgundy);
  }

  .mobile-rsvp > a {
    padding: 9px 22px;
    background: var(--burgundy);
    color: var(--ivory);
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
  }

  .mobile-rsvp > a > span {
    margin-left: 15px;
  }

  .owner-stats {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

}

.mobile-rsvp.form-in-view {
  visibility: hidden;
  pointer-events: none;
}


/* Mutually exclusive attendance buttons, with native keyboard activation. */
.attendance-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid #b88c4577;
  border-radius: 12px;
  background: #efe3cd;
}

.attendance-option {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 9px;
  min-height: 160px;
  padding: 17px 13px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--burgundy);
  text-align: left;
  transition: background .2s, color .2s, box-shadow .2s;
}

.attendance-option:hover {
  background: #fffaf1bb;
}

.attendance-title {
  font: 19px/1.25 Georgia, serif;
}

.attendance-note {
  font-size: 10px;
  line-height: 1.7;
  color: #735c52;
}

.attendance-selected {
  visibility: hidden;
  margin-top: auto;
  padding-top: 5px;
  font-size: 10px;
  color: var(--gold-light);
}

.attendance-option[aria-pressed="true"] {
  background: var(--burgundy);
  color: var(--ivory);
  border-color: var(--burgundy);
  box-shadow: 0 3px 10px #44132322;
}

.attendance-option[aria-pressed="true"] .attendance-note {
  color: #f2ddc9;
}

.attendance-option[aria-pressed="true"] .attendance-selected {
  visibility: visible;
}

.attendance-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0 0;
}

@media (max-width: 380px) {
  .attendance-option {
    padding: 14px 10px 10px;
  }

  .attendance-title {
    font-size: 17px;
  }
}

/* Refined RSVP: concise details, deliberate review, and a durable saved receipt. */
.rsvp-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.rsvp-form-header .form-kicker {
  margin: 0 0 8px;
  letter-spacing: 2px;
}

.rsvp-form-header h3 {
  margin: 0;
  color: var(--burgundy);
  font: 30px/1.2 Georgia, serif;
  letter-spacing: -.5px;
}

.reply-seal {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: #987025;
  font: 26px Georgia, serif;
  flex-shrink: 0;
}

.rsvp-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.rsvp-progress li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  color: #87736b;
  font-size: 11px;
  border-bottom: 2px solid #e1d2b9;
}

.rsvp-progress li > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ede3d3;
  font-size: 10px;
}

.rsvp-progress [aria-current="step"] {
  color: var(--burgundy);
  border-color: var(--burgundy);
  font-weight: 600;
}

.rsvp-progress [aria-current="step"] > span {
  background: var(--burgundy);
  color: var(--ivory);
}

.rsvp-connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

#service-status {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

#retry-connection {
  flex-shrink: 0;
  background: #efe3cd;
  color: var(--burgundy);
  border: 1px solid #bd9b66;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  min-height: 40px;
}

#rsvp-editor > label:first-child {
  color: var(--burgundy);
  font-weight: 600;
}

.field-help {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.inline-error {
  color: #9c233b;
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0 12px;
}

[aria-invalid="true"] {
  border-color: #9c233b !important;
  box-shadow: 0 0 0 1px #9c233b;
}

.attendance-option {
  min-height: 144px;
  padding: 16px 13px 12px;
}

.attendance-title {
  font-size: 18px;
  line-height: 1.3;
}

.attendance-note {
  font-size: 10px;
}

.attendance-hint {
  min-height: 36px;
}

.count-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.count-presets button {
  background: transparent;
  color: var(--burgundy);
  border: 1px solid #c5ab81;
  border-radius: 5px;
  padding: 9px 4px;
  min-height: 43px;
  font-size: 11px;
}

.count-presets [aria-pressed="true"] {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--ivory);
}

.count-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 13px;
}

.count-control .stepper {
  margin: 0;
}

#guest-count-summary {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

#review-rsvp {
  width: 100%;
}

.rsvp-reassurance {
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin: 13px 0 0;
}

.review-eyebrow {
  font-size: 9px;
  color: #8d652c;
  letter-spacing: 1.8px;
  font-weight: 600;
  margin: 15px 0;
}

#rsvp-review h4, #rsvp-success h4 {
  font: 29px/1.3 Georgia, serif;
  color: var(--burgundy);
  margin: 16px 0 25px;
}

.reply-summary {
  margin: 0;
  border-top: 1px solid var(--line);
}

.reply-summary > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.reply-summary dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}

.reply-summary dd {
  margin: 0;
  color: var(--burgundy);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.wedding-reminder {
  margin: 22px 0;
  padding: 15px;
  border: 1px solid #ddcba8;
  background: #f3e8d2;
  border-radius: 6px;
}

.wedding-reminder p {
  font-size: 11px;
  line-height: 1.7;
  color: #72562c;
  margin: 0;
}

.wedding-reminder p:first-child {
  font-weight: 600;
  margin-bottom: 5px;
}

.review-actions, .receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-actions .button, .receipt-actions .button {
  width: 100%;
}

.review-actions #edit-review {
  order: 2;
  justify-content: center;
}

#rsvp-feedback {
  padding: 13px 0 0;
  margin: 0;
}

.receipt-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #f0e5cd;
  color: var(--burgundy);
  font-size: 27px;
  margin: 8px auto 20px;
}

.rsvp-receipt > .review-eyebrow, .rsvp-receipt > h4 {
  text-align: center;
}

#success-message {
  font: 17px/1.75 Georgia, serif;
  color: var(--muted);
  text-align: center;
  margin-bottom: 25px;
}

.saved-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 20px 0;
}

#receipt-calendar {
  justify-content: center;
}

#edit-saved {
  justify-content: center;
}

form[aria-busy="true"] .button {
  cursor: progress;
}

@media (max-width: 700px) {
  .rsvp-form-header h3 {
    font-size: 27px;
  }

  .reply-seal {
    width: 37px;
    height: 37px;
  }

  .attendance-option {
    min-height: 150px;
    padding: 14px 11px 10px;
  }

  .attendance-title {
    font-size: 18px;
  }

  #rsvp-review h4, #rsvp-success h4 {
    font-size: 27px;
  }
}

nav .nav-rsvp:hover, nav .nav-rsvp:focus-visible {
  background: var(--wine);
  color: var(--paper);
}

/* Keep the reply form short and comfortable on small screens. */
.attendance-option {
  min-height: 88px;
  padding: 16px 12px;
}

.attendance-title {
  font-size: 1rem;
}

#submit-rsvp {
  width: 100%;
}

.rsvp-form-header {
  margin-bottom: 20px;
}

.phone-fields {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.phone-fields input {
  width: 100%;
  min-width: 0;
}

.phone-fields .field-help {
  display: block;
  margin: 0 0 6px;
}

/* Subtle motion establishes a clear reading order without delaying controls. */
.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

nav a[aria-current="location"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.button, .attendance-option, summary, input {
  transition: transform 180ms ease, background 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease;
}

.button:active, .attendance-option:active {
  transform: scale(.98);
}

input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px #44132318;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-content > * {
    animation: welcome-in 800ms both cubic-bezier(.2, .65, .3, 1);
  }

  .motion-ready .hero-content h1 { animation-delay: 100ms; }
  .motion-ready .hero-sub { animation-delay: 200ms; }
  .motion-ready .date-rule { animation-delay: 280ms; }
  .motion-ready .hero-place { animation-delay: 340ms; }
  .motion-ready .hero-actions { animation-delay: 400ms; }

  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .65, .3, 1);
  }

  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
  }

  #wedding-count-wrap:not([hidden]), #rsvp-success:not([hidden]) {
    animation: welcome-in 350ms ease both;
  }

  #faq details[open] p {
    animation: welcome-in 250ms ease both;
  }

  @keyframes welcome-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.response-table-wrap { overflow-x: auto; margin-block: 24px; }
.response-table { width: 100%; border-collapse: collapse; text-align: left; }
.response-table th, .response-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.response-table th { color: var(--burgundy); }
.response-table td { overflow-wrap: anywhere; }
