/* Theme: earthy + vintage — edit CSS variables to tweak globally */
:root {
  --color-earth: #3e2a16;
  --color-forest: #345438;
  --color-cream: #f3ebe0;
  --color-parchment: #e8dcc8;
  --color-muted: #6b5c4d;
  --color-gold: #9a7b4f;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --shadow-soft: 0 4px 24px rgba(62, 42, 22, 0.12);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-earth);
  background: var(--color-cream);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(52, 84, 56, 0.08), transparent 55%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  /* Lock horizontal scroll; vertical overlap (#story paper over hero) stays visible. */
  overflow-x: hidden;
  max-width: 100%;
}

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

a:hover {
  color: var(--color-earth);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 235, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(62, 42, 22, 0.12);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem max(1.25rem, env(safe-area-inset-right)) 0.85rem max(1.25rem, env(safe-area-inset-left));
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.nav a {
  color: var(--color-earth);
  text-decoration: none;
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  z-index: 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 3px double rgba(52, 84, 56, 0.35);
}

.hero--welcome {
  --hero-image: url("../images/taylorcj3.JPG");
  --hero-decal: url("../images/goldvictoriandecal.png");
  min-height: min(96vh, 1440px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 14vw, 7rem) max(1.5rem, env(safe-area-inset-right)) clamp(3.5rem, 10vw, 5rem) max(1.5rem, env(safe-area-inset-left));
  background-color: #2a1f14;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero--welcome::before,
.hero--welcome::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: clamp(180px, 42vw, 400px);
  aspect-ratio: 1;
  background-image: var(--hero-decal);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero--welcome::before {
  top: max(-0.35rem, calc(env(safe-area-inset-top) - 18px));
  left: max(-3.5rem, calc(env(safe-area-inset-left) - 76px));
  background-position: left top;
}

.hero--welcome::after {
  top: max(-0.35rem, calc(env(safe-area-inset-top) - 18px));
  right: max(-3.5rem, calc(env(safe-area-inset-right) - 76px));
  background-position: right top;
  transform: scaleX(-1);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 10, 0.45) 0%,
    rgba(30, 22, 14, 0.62) 45%,
    rgba(20, 14, 10, 0.55) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 40rem;
  margin: 0 auto;
}

.hero__names {
  margin: 0 0 0.85rem;
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 5rem);
  line-height: 1.15;
  color: #faf6f0;
  letter-spacing: 0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero__and {
  display: block;
  font-weight: 400;
  font-style: normal;
  font-size: 0.55em;
  color: #c9d4c4;
  margin: 0.12em 0;
}

.hero__announce {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  color: rgba(243, 235, 224, 0.92);
  line-height: 1.45;
}

.hero--welcome .hero__date {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 600;
  color: #e8dcc8;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(243, 235, 224, 0.35);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
}

.section {
  padding: clamp(3rem, 8vw, 5rem) max(1.5rem, env(safe-area-inset-right)) clamp(3rem, 8vw, 5rem) max(1.5rem, env(safe-area-inset-left));
}

.section__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 40rem;
}

.section--cream {
  background: var(--color-cream);
}

/* Story: vintage paper texture, slightly zoomed (5%), bleeds up over welcome hero */
#story.section--cream {
  position: relative;
  z-index: 1;
  margin-top: clamp(-3.5rem, -6.5vw, -1.5rem);
  background: transparent;
}

#story.section--cream::before {
  content: "";
  position: absolute;
  top: clamp(-6.5rem, -12vw, -3.25rem);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background-image: url("../images/vintagepapertransparentbg.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.10);
  transform-origin: center top;
  pointer-events: none;
}

/* Bottom-right quadrant: above parchment (::before z-index 0), below copy */
#story .story__swans {
  position: absolute;
  inset: 50% 0 0 35%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: clamp(0.35rem, 1.5vw, 1rem);
}

#story .story__swans img {
  display: block;
  width: min(100%, clamp(13.75rem, 65vw, 37.5rem));
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.3;
}

#story.section--cream .section__inner {
  position: relative;
  z-index: 2;
}

#story .section__title {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-size: clamp(2.75rem, 6.5vw, 3.75rem);
}

/* Keep sections after story above the story paper texture layer. */
#story.section--cream ~ .section,
#story.section--cream ~ .site-footer {
  position: relative;
  z-index: 2;
}

#when-where.section {
  position: relative;
  background-color: var(--color-parchment);
  background-image: url("../images/vintagepicture.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #000;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

#when-where .section__inner {
  position: relative;
  z-index: 1;
}

#when-where .section__title,
#when-where .card h3,
#when-where .card__lead,
#when-where .card__note,
#when-where .venue,
#when-where time {
  color: #000;
}

#when-where .section__title {
  text-shadow: none;
}

.section--dark {
  background: #361e0f;
  color: #361e0f;
}

.section--sage {
  background: #313e1b;
  color: var(--color-cream);
}

.section--dark a,
.section--sage a {
  color: #c9d4c4;
}

.section--dark a:hover,
.section--sage a:hover {
  color: #fff;
}

.section__title {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.75vw, 3.15rem);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--color-earth);
}

.info-headers {
  font-family: "Corinthia", "Pinyon Script", cursive;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: clamp(calc(2.35rem * 1.25), calc(5.75vw * 1.25), calc(3.15rem * 1.25));
}

.section__title--light {
  color: var(--color-cream);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card--wide {
    grid-column: 1 / -1;
  }
}

.card {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(62, 42, 22, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-forest);
}

.card__lead {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.card__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

.card__note code {
  font-size: 0.8em;
  background: rgba(62, 42, 22, 0.06);
  padding: 0.1em 0.35em;
}

.venue {
  margin: 0 0 1rem;
  font-style: normal;
  line-height: 1.6;
}

.prose {
  font-size: 1rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.faq-page {
  background: #fdfce8;
}

.faq-page .section__inner {
  max-width: 64rem;
}

.faq-page .section__title {
  margin-bottom: clamp(2.25rem, 6vw, 3.25rem);
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 1.2rem;
  text-align: left;
  max-width: 100rem;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  width: 100%;
}

.faq-item__question {
  position: relative;
  margin: 0;
  padding: 1.4rem 3.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 3vw, 1.48rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #36210e;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(54, 33, 14, 0.24);
  background: rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  text-align: left;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "+";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] .faq-item__question::after {
  content: "-";
}

.faq-item__question-text {
  display: block;
  width: 100%;
  white-space: normal;
}

.faq-item__answer {
  max-width: 100%;
  margin: 0;
  padding: 1.35rem 1.45rem 1.55rem;
  font-size: clamp(1.08rem, 2.75vw, 1.22rem);
  font-style: italic;
  line-height: 1.65;
  border: 1px solid rgba(54, 33, 14, 0.18);
  border-top: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 0 8px 8px;
}

.faq-item[open] .faq-item__question {
  border-radius: 8px 8px 0 0;
}

.faq-item[open] .faq-item__answer {
  animation: faq-slide-down 720ms ease-out;
}

@keyframes faq-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .faq-page {
    padding-top: clamp(2.5rem, 8vw, 3.25rem);
  }

  .faq-list {
    gap: 1rem;
  }

  .faq-item__question {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    padding: 1.15rem 2.55rem;
  }

  .faq-item__answer {
    font-size: 1.07rem;
    line-height: 1.65;
    padding: 1.15rem 1.1rem 1.3rem;
  }
}

.section-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.section-split__main {
  min-width: 0;
}

.section-split__figure {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  justify-self: center;
  width: 100%;
}

.section-split__figure img {
  display: block;
  width: auto;
  max-width: min(100%, 18rem);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid rgba(154, 123, 79, 0.5);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}

#reception .section-split__figure img {
  max-width: min(100%, 25.2rem);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#dress-code .section-split__figure img {
  width: 100%;
  max-width: min(100%, 25.5rem);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

@media (max-width: 767px) {
  /* Dress code: text above image on small screens (DOM has image first). */
  #dress-code .section-split--image-left .section-split__main {
    order: 1;
  }

  #dress-code .section-split--image-left .section-split__figure {
    order: 2;
  }
}

@media (min-width: 768px) {
  .section-split--image-right {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 1fr);
    align-items: center;
  }

  .section-split--image-right .section-split__figure {
    justify-self: center;
  }

  #reception .section-split--image-right {
    grid-template-columns: minmax(0, 1fr) minmax(19.6rem, 1.2fr);
  }

  #reception .section-split--image-right .section-split__figure {
    transform: translateX(4rem);
  }

  .section-split--image-left {
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .section-split--image-left .section-split__figure {
    justify-self: center;
  }

  #dress-code .section-split--image-left {
    grid-template-columns: minmax(21rem, 1.2fr) minmax(0, 1fr);
  }

  #dress-code .section-split--image-left .section-split__figure {
    justify-self: start;
    margin-inline-start: -4rem;
  }

  #dress-code .section-split__main {
    position: relative;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  }

  #dress-code .section-split__main::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: min(100%, 20rem);
    aspect-ratio: 608 / 774;
    background-image: url("../images/maroonbg.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%) scale(1.25);
    pointer-events: none;
  }

  #dress-code .section-split__main > * {
    position: relative;
    z-index: 1;
  }

  #dress-code .section-split__main .prose {
    margin-inline: auto;
  }
}

.section-split__main .section__title {
  text-align: left;
  margin-bottom: 1.5rem;
}

#reception .section-split__main .section__title {
  text-align: center;
}

#reception .section-split__main .evening-timeline {
  margin-inline: 0;
  max-width: none;
}

.evening-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
  margin-inline: auto;
}

.evening-timeline__item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding-bottom: 2.5rem;
}

.evening-timeline__item:last-child {
  padding-bottom: 0;
}

.evening-timeline__content {
  position: relative;
  grid-row: 1;
  min-width: 0;
}

.evening-timeline__item:nth-child(odd) .evening-timeline__content {
  grid-column: 1;
  padding-right: 1.25rem;
  text-align: right;
}

.evening-timeline__item:nth-child(even) .evening-timeline__content {
  grid-column: 3;
  padding-left: 1.25rem;
  text-align: left;
}

.evening-timeline__content::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  width: 1.25rem;
  height: 1px;
  background: rgba(154, 123, 79, 0.65);
}

.evening-timeline__item:nth-child(odd) .evening-timeline__content::before {
  right: 0;
}

.evening-timeline__item:nth-child(even) .evening-timeline__content::before {
  left: 0;
}

.evening-timeline__marker {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 1.25rem;
  align-self: stretch;
  min-height: 1.5rem;
}

.evening-timeline__item:not(:last-child) .evening-timeline__marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(0.35rem + 0.55rem);
  bottom: -2.5rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(154, 123, 79, 0.65),
    rgba(243, 235, 224, 0.2)
  );
  transform: translateX(-50%);
}

.evening-timeline__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.25);
  transform: translateX(-50%);
  z-index: 1;
}

.evening-timeline__time {
  display: block;
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-gold);
  white-space: nowrap;
}

.evening-timeline__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-cream);
  line-height: 1.25;
}

@media (min-width: 480px) {
  .evening-timeline {
    max-width: 40rem;
  }

  .evening-timeline__item:nth-child(odd) .evening-timeline__content {
    padding-right: 1.5rem;
  }

  .evening-timeline__item:nth-child(even) .evening-timeline__content {
    padding-left: 1.5rem;
  }

  .evening-timeline__content::before {
    width: 1.5rem;
  }

  .evening-timeline__time {
    font-size: 1.05rem;
  }

  .evening-timeline__label {
    font-size: 1.35rem;
  }
}

/* Dress code — match reception (#reception) dark section styling */
#dress-code.section--dark,
#dress-code.section--cream {
  background-color: #361e0f;
  color: var(--color-cream);
}

#dress-code .section__title {
  color: var(--color-cream);
}

#dress-code .prose {
  max-width: 28rem;
  margin-inline: auto;
  color: rgba(243, 235, 224, 0.95);
  text-align: center;
  font-style: italic;
}

#dress-code a {
  color: #c9d4c4;
}

#dress-code a:hover {
  color: #fff;
}

#dress-code .section-split__main {
  text-align: center;
}

#dress-code .section-split__main .section__title {
  text-align: center;
  margin-bottom: 0.01rem;
}

.dress-code__label {
  text-align: center;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--color-cream);
}

@media (max-width: 767px) {
  #dress-code.section--dark {
    background: #361e0f url("../images/maroonbgmobile.png") center / 100% 100% no-repeat;
  }
}

.story__drop::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.85;
  padding-right: 0.45rem;
  padding-top: 0.1rem;
  color: var(--color-forest);
  font-weight: 600;
}

.story__closing {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  text-align: center;
  color: var(--color-forest);
  margin-top: 1.5rem !important;
}

.site-footer {
  position: relative;
  z-index: 200;
  text-align: center;
  padding: 1.5rem max(1.5rem, env(safe-area-inset-right)) 1.5rem max(1.5rem, env(safe-area-inset-left));
  background: #38230d;
  color: var(--color-parchment);
  border-top: 3px double rgba(56, 35, 13, 0.4);
}

.home-body .site-footer {
  background: #fdfce8;
  color: #38230d;
}

.footer__names {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.footer__date {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

main {
  max-width: 100%;
}

.prose,
.nav {
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .hero--welcome {
    min-height: min(96vh, 960px);
    padding-bottom: clamp(5rem, 15vw, 7rem);
    background-position: center 42%;
  }

  #story.section--cream {
    margin-top: -2.75rem;
  }

  /* Mobile tune: larger swans, positioned lower in the bottom-right quadrant. */
  #story .story__swans {
    inset: 56% 0 0 46%;
    align-items: flex-end;
    padding: 0.25rem;
  }

  #story .story__swans img {
    width: min(120%, clamp(17rem, 95vw, 34rem));
  }

  body {
    background-image:
      radial-gradient(ellipse 100% 85% at 50% -18%, rgba(52, 84, 56, 0.08), transparent 55%),
      url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  }
}


/* Home RSVP links section */
#rsvp.section--sage {
  background-color: #313e1b;
  background-image: url("../images/greenbackground.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-overlap-lace {
  position: relative;
  z-index: 5;
  --lace-tile: calc(22% + 5px);
  width: 100%;
  height: clamp(2.5rem, 5vw, 4rem);
  margin-top: calc(-0.5 * clamp(2.5rem, 5vw, 4rem) - 2px);
  margin-bottom: calc(-0.5 * clamp(2.5rem, 5vw, 4rem) - 2px);
  background-image:
    url("../images/lacetransparent.png"),
    url("../images/lacetransparent.png"),
    repeating-linear-gradient(
      to right,
      rgba(49, 62, 27, 0) 0,
      rgba(49, 62, 27, 0) calc(var(--lace-tile) - 4px),
      rgba(49, 62, 27, 1) var(--lace-tile),
      rgba(49, 62, 27, 0) calc(var(--lace-tile) + 4px),
      rgba(49, 62, 27, 0) calc(var(--lace-tile) * 2)
    );
  background-repeat: repeat-x, repeat-x, repeat-x;
  background-position: center, calc(50% + 1px) center, 0 0;
  background-size: var(--lace-tile) 100%, var(--lace-tile) 100%, auto 100%;
  pointer-events: none;
}

#rsvp .action-link {
  background: #313e1b;
}

#rsvp .action-link:hover {
  color: var(--color-earth);
  background: var(--color-cream);
  border-color: var(--color-cream);
}

/* Home action links (RSVP section) */
.action-links {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 56rem;
}

@media (min-width: 640px) {
  .action-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 1.5rem 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--color-cream);
  background: rgba(243, 235, 224, 0.12);
  border: 2px solid rgba(243, 235, 224, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.action-link:hover {
  color: var(--color-earth);
  background: var(--color-cream);
  border-color: var(--color-cream);
  text-decoration: none;
}

.rsvp-deadline {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #361e0f;
}

/* Hero RSVP */
.hero__actions {
  margin: 1.75rem 0 0;
}

.hero__btn {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-cream);
  background: rgba(52, 84, 56, 0.55);
  border: 2px solid rgba(243, 235, 224, 0.65);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero__btn:hover {
  color: var(--color-earth);
  background: var(--color-cream);
  border-color: var(--color-cream);
  text-decoration: none;
}

/* RSVP page (rsvp.html) */
.rsvp-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* FAQ page (faq.html) */
.faq-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.faq-body .faq-main {
  flex: 1 0 auto;
  min-height: 0;
}

.faq-body .site-footer {
  margin-top: auto;
}

.rsvp-body .rsvp-main {
  padding: clamp(2rem, 5vw, 3.5rem) max(1.25rem, env(safe-area-inset-right)) clamp(3rem, 8vw, 4rem)
    max(1.25rem, env(safe-area-inset-left));
  flex: 1 0 auto;
  min-height: 0;
}

.rsvp-body .site-footer {
  margin-top: auto;
}

.rsvp-page {
  max-width: 36rem;
  margin: 0 auto;
}

.rsvp-page__title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.rsvp-intro {
  text-align: center;
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}

.rsvp-party-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--color-earth);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rsvp-field__label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--color-earth);
}

.rsvp-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-earth);
  background: #fffef9;
  border: 1px solid rgba(62, 42, 22, 0.2);
  border-radius: var(--radius);
}

.rsvp-input:focus {
  outline: 2px solid rgba(52, 84, 56, 0.45);
  outline-offset: 1px;
}

.rsvp-btn {
  margin-top: 0.25rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--color-cream);
  background: #485a27;
  border: 1px solid rgba(62, 42, 22, 0.25);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.rsvp-btn:hover {
  background: var(--color-earth);
  color: var(--color-parchment);
}

.rsvp-btn--secondary {
  background: transparent;
  color: var(--color-forest);
  border-color: rgba(52, 84, 56, 0.45);
}

.rsvp-btn--secondary:hover {
  background: rgba(52, 84, 56, 0.08);
  color: var(--color-earth);
}

.rsvp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.rsvp-guest-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(62, 42, 22, 0.12);
}

.rsvp-guest-card:last-of-type {
  border-bottom: none;
}

.rsvp-guest-card__name {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-forest);
}

.rsvp-message {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.rsvp-message--error {
  color: #7a2e2e;
}

.rsvp-choices {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rsvp-choice {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: left;
  color: var(--color-earth);
  background: rgba(255, 252, 245, 0.85);
  border: 1px solid rgba(62, 42, 22, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rsvp-choice:hover,
.rsvp-choice:focus-visible {
  background: rgba(52, 84, 56, 0.08);
  border-color: rgba(52, 84, 56, 0.45);
  outline: none;
}

.rsvp-choice__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-forest);
}

.rsvp-choice__party {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* RSVP check dashboard (rsvpcheck/index.html) */
.rsvpcheck-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.rsvpcheck-main {
  padding: clamp(2rem, 5vw, 3rem) max(1.25rem, env(safe-area-inset-right)) clamp(3rem, 7vw, 4rem)
    max(1.25rem, env(safe-area-inset-left));
  flex: 1 0 auto;
  min-height: 0;
}

.rsvpcheck-page {
  max-width: min(70rem, 100%);
}

.rsvpcheck-body .site-footer {
  margin-top: auto;
}

.rsvpcheck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.rsvpcheck-title {
  margin: 0;
}

.rsvpcheck-summary {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  color: var(--color-earth);
}

.rsvpcheck-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1000px) {
  .rsvpcheck-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.rsvpcheck-card {
  background: rgba(255, 252, 242, 0.72);
  border: 1px solid rgba(62, 42, 22, 0.14);
  border-radius: var(--radius);
  padding: 1rem;
}

.rsvpcheck-table-wrap {
  overflow-x: auto;
}

.rsvpcheck-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 28rem;
}

.rsvpcheck-table th,
.rsvpcheck-table td {
  text-align: left;
  padding: 0.6rem 0.45rem;
  border-bottom: 1px solid rgba(62, 42, 22, 0.1);
  vertical-align: top;
}

.rsvpcheck-table th {
  font-family: var(--font-display);
  color: var(--color-earth);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
