@import url("https://fonts.googleapis.com/css2?family=Italiana&family=Quattrocento:wght@400;700&display=swap");

@font-face {
  font-family: "Dear Amora";
  src: url("fonts/DearAmora-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Anaktoria";
  src: url("fonts/Anaktoria.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Lekton";
  src: url("fonts/Lekton-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Lekton";
  src: url("fonts/Lekton-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "Biro Script";
  src: url("fonts/Biro_Script.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  --paper: #f5f0e7;
  --paper-deep: #e8dfd0;
  --ink: #21362f;
  --muted: #6c746f;
  --forest: #203a31;
  --cream: #fffaf1;
  --rust: #a24d32;
  --tan: #b08d65;
  --line: rgba(33, 54, 47, 0.2);
  --serif: "Italiana", Georgia, serif;
  --sans: "Quattrocento", Georgia, serif;
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

#invite-link-dialog {
  width: min(90vw, 30rem);
  padding: 2.5rem;
  border: 1px solid #ac967e;
  border-radius: 0.75rem;
  background: #fbf9ed;
  color: #4a3026;
  text-align: center;
}
#invite-link-dialog::backdrop { background: rgb(45 28 20 / 60%); }
#invite-link-dialog h2 { font-size: 2rem; line-height: 1.2; }
#invite-link-dialog button {
  padding: 0.8rem 2rem;
  border: 0;
  border-radius: 50%;
  background: #4a3026;
  color: #fbf9ed;
  font: inherit;
  cursor: pointer;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--cream);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 5rem 1.5rem;
  color: white;
  text-align: center;
  background-color: #4c5e56;
  background-image: url("images/hero-optimized.jpg");
  background-position: center;
  background-size: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  transform: translateY(-17vh);
  color: #fff8e9;
  text-shadow: 0 2px 18px rgba(25, 24, 20, 0.2);
}

.hero h1 {
  max-width: none;
  margin: 0 auto;
  font: 400 clamp(4.2rem, 9vw, 8.5rem) / 0.9 "Dear Amora", Georgia, serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__invitation {
  margin: 1.25rem 0 2.25rem;
  font: 400 clamp(1.8rem, 3.2vw, 3rem) / 1.1 "Anaktoria", var(--serif);
  letter-spacing: 0.01em;
}

.hero__button {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.8rem 0 0.65rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 248, 233, 0.78);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, letter-spacing 180ms ease;
}

.hero__button:hover,
.hero__button:focus-visible {
  border-bottom-color: #fff8e9;
  letter-spacing: 0.28em;
}

.chapter-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 231, 0.94);
  backdrop-filter: blur(12px);
  box-shadow:
    0 -10px 24px rgba(255, 248, 233, 0.2),
    0 -2px 8px rgba(232, 210, 175, 0.14);
  font-family: "Quattrocento", Georgia, serif;
}

.chapter-nav__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  min-height: var(--nav-height);
  margin: 0 auto;
}

.chapter-nav__links a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  font-family: "Quattrocento", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.chapter-nav__links a:first-child {
  border-left: 1px solid var(--line);
}

.chapter-nav__label {
  position: relative;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.2rem;
}

.chapter-nav__label::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--tan);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.chapter-nav__number {
  color: var(--tan);
  font-family: var(--serif);
  font-style: normal;
}

.chapter-nav__links a:hover,
.chapter-nav__links a:focus-visible,
.chapter-nav__links a.is-active {
  background: transparent;
  color: var(--ink);
}

.chapter-nav__links a:hover .chapter-nav__label::after,
.chapter-nav__links a:focus-visible .chapter-nav__label::after,
.chapter-nav__links a.is-active .chapter-nav__label::after {
  transform: scaleX(1);
}

.chapter-nav__toggle {
  display: none;
}

.section {
  position: relative;
  padding: clamp(6rem, 11vw, 10rem) max(1.5rem, calc((100vw - 1200px) / 2));
}

.section h2 {
  max-width: 13ch;
  margin: 0 0 2rem;
  font: 400 clamp(3rem, 7vw, 6.5rem) / 0.95 var(--serif);
  letter-spacing: -0.025em;
}

.section__narrow {
  max-width: 780px;
  margin: auto;
}

.section__wide {
  max-width: 1200px;
  margin: auto;
}

.section__intro {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.chapter-label {
  position: absolute;
  top: 2rem;
  left: max(1.5rem, calc((100vw - 1200px) / 2));
  color: var(--rust);
  font-family: var(--serif);
  font-style: italic;
}

.chapter-label--light {
  color: #d9bca4;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.countdown-section {
  min-height: 0;
  padding: 0;
  background: #3d251c;
}

.countdown-stage {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  padding: clamp(2rem, 4vw, 4rem);
  background-color: #56633d;
  background-image: url("images/countdown-background.webp");
  background-position: center;
  background-size: cover;
}

.countdown-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: clamp(1rem, 2vw, 2rem);
  width: min(100%, 1500px);
  min-height: calc(100vh - var(--nav-height) - clamp(4rem, 8vw, 8rem));
  min-height: calc(100svh - var(--nav-height) - clamp(4rem, 8vw, 8rem));
  margin: auto auto clamp(3rem, 6vw, 5rem);
}

.invitation-art {
  position: relative;
  z-index: 1;
  margin: 0;
}

.invitation-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1.5rem 1.8rem rgba(20, 25, 14, 0.2));
}

.invitation-art--envelope {
  container-type: inline-size;
  grid-row: 1 / 3;
  grid-column: 1;
  align-self: center;
  justify-self: center;
  width: min(57vw, 840px);
  transform: translateX(clamp(-32px, -1.5vw, -18px));
}

.invitation-art--calendar {
  container-type: inline-size;
  grid-row: 2;
  grid-column: 2;
  align-self: start;
  justify-self: center;
  width: min(54vw, 790px);
  margin-top: -1rem;
  transform: translateX(clamp(-64px, -3vw, -36px));
}

.envelope-session-details,
.calendar-session-details {
  position: absolute;
  display: grid;
  margin: 0;
  color: #8d4f3a;
  font-family: "Lekton", monospace;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.envelope-session-details {
  top: 48%;
  left: 24%;
  width: 54%;
  transform: rotate(-9.5deg);
  font-size: clamp(0.55rem, 2.45cqw, 1.3rem);
  letter-spacing: 0.13em;
}

.envelope-session-details span,
.calendar-session-details span {
  color: inherit;
}

.envelope-session-details__date {
  margin-bottom: 0.2em;
}

.calendar-session-details {
  top: 51%;
  left: 34%;
  width: 32%;
  color: #5d4338;
  font-family: "Quattrocento", Georgia, serif;
  font-size: clamp(0.55rem, 2.1cqw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.calendar-session-details__venue,
.calendar-session-details__time {
  font-size: 1.18em;
}

.wedding-countdown {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: grid;
  grid-row: 1;
  grid-column: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: end;
  width: min(100%, 750px);
  margin: 0 auto clamp(1.5rem, 3vw, 3rem);
  color: white;
  filter: drop-shadow(0 2px 8px rgba(20, 25, 14, 0.34));
  transform: translateX(clamp(-64px, -3vw, -36px));
}

.wedding-countdown::before {
  position: absolute;
  z-index: 0;
  inset: -45% -9% -40%;
  background: url("images/countdown-paintstroke.webp") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.wedding-countdown__unit {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
  place-items: center;
  min-width: 0;
  padding: 0 0.5rem;
  color: inherit;
  text-align: center;
}

.wedding-countdown__unit:not(:last-child)::after {
  position: absolute;
  top: -0.18em;
  right: -0.14em;
  color: inherit;
  content: ":";
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4.2vw, 4.7rem);
  font-weight: 400;
  line-height: 1;
}

.wedding-countdown strong {
  color: inherit;
  font-family: var(--sans);
  font-size: clamp(3.2rem, 5.8vw, 6rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.wedding-countdown span {
  color: inherit;
  font-family: "Quattrocento", Georgia, serif;
  font-size: clamp(0.78rem, 1.1vw, 1.02rem);
}

.couple-notes {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  gap: clamp(5rem, 9vw, 9rem);
  padding: clamp(6rem, 10vw, 10rem) max(2rem, calc((100vw - 1250px) / 2));
  background: #3d251c;
  color: #fff8e9;
}

.couple-notes::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("images/subtle-noise.png") repeat;
  content: "";
  opacity: 1;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.couple-notes__wave {
  position: absolute;
  z-index: 0;
  right: 0;
  left: 0;
  height: clamp(3.5rem, 6vw, 5.5rem);
  background-color: #3d251c;
  background-image: url("images/subtle-noise.png");
  background-blend-mode: overlay;
  background-repeat: repeat;
  content: "";
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 70' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 34 C135 3 285 57 430 27 S715 2 1000 36 L1000 70 L0 70 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 70' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 34 C135 3 285 57 430 27 S715 2 1000 36 L1000 70 L0 70 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.couple-notes__wave--top {
  top: calc(clamp(3.5rem, 6vw, 5.5rem) * -1 + 1px);
}

.couple-notes__wave--bottom {
  bottom: calc(clamp(3.5rem, 6vw, 5.5rem) * -1 + 1px);
  transform: rotate(180deg);
}

.couple-note-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.couple-note-copy {
  justify-self: center;
  max-width: 34rem;
  color: inherit;
  text-align: center;
}

.couple-note-copy h3 {
  margin: 0 0 1.5rem;
  color: inherit;
  font-family: "Dear Amora", cursive;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.couple-note-copy p {
  margin: 0;
  color: inherit;
  font-family: "Lekton", monospace;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  letter-spacing: 0.025em;
  line-height: 1.45;
  text-wrap: pretty;
}

.couple-polaroid {
  justify-self: center;
  width: min(100%, 29rem);
  margin: 0;
}

.couple-polaroid img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1.5rem 1.6rem rgba(17, 8, 5, 0.24));
}

.couple-polaroid--tracy {
  transform: rotate(1.5deg);
}

.couple-polaroid--xuan {
  transform: rotate(-1.5deg);
}

.setting {
  padding: 0;
  background: var(--cream);
}

.reply__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.setting__hero {
  width: 100%;
  height: clamp(23rem, 44vw, 44rem);
  margin: 0;
  overflow: hidden;
  background-color: #d8d0c2;
  background-image: url("images/getting-to-hortus-enhanced.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.setting__hero img {
  width: 100%;
  height: calc(clamp(23rem, 44vw, 44rem) + 8rem);
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translate3d(0, var(--venue-shift, 0), 0) scale(1.02);
  will-change: transform;
}

.directions {
  width: min(calc(100% - 2rem), 1440px);
  margin: 0 auto;
  padding-top: clamp(4rem, 7vw, 6.5rem);
  color: #4a3026;
}

.setting .directions .directions__heading,
.directions__date {
  max-width: none;
  margin: 0 0 clamp(2.5rem, 4vw, 4rem);
  font-family: "Anaktoria", cursive;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  letter-spacing: 0;
  line-height: 1.05;
  text-align: left;
}

.directions__date {
  color: #9b7400;
}

.directions__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.directions__location address {
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
  font-style: normal;
  line-height: 1.5;
}

.directions__location address span {
  font-weight: 700;
}

.directions__map {
  width: 100%;
  margin: 0 auto;
}

.directions__map img {
  width: 100%;
  height: auto;
  aspect-ratio: 1292 / 1217;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.directions__accordions {
  border-top: 0;
}

.directions__intro {
  margin: -1rem 0 2rem;
  width: 100%;
  max-width: none;
  font-family: "Lekton", monospace;
  font-size: 0.98rem;
  line-height: 1.55;
}

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

.directions__accordions .direction-panel:first-of-type {
  border-top: 1px dashed rgba(74, 48, 38, 0.45);
}

.direction-panel {
  border-bottom: 1px dashed rgba(74, 48, 38, 0.45);
}

.direction-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: "Quattrocento", Georgia, serif;
  font-size: 1.2rem;
  list-style: none;
}

.direction-panel summary::-webkit-details-marker {
  display: none;
}

.direction-panel summary::after {
  width: 0.65rem;
  height: 0.65rem;
  margin: 0 0.35rem 0.35rem 1rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.direction-panel[open] summary::after {
  transform: rotate(225deg) translate(-0.2rem, -0.2rem);
}

.direction-panel__content {
  padding: 0 0 1.5rem;
  font-family: "Lekton", monospace;
  font-size: 0.98rem;
  line-height: 1.55;
}

.direction-panel.is-animating {
  overflow: hidden;
}

.direction-panel__content p {
  margin: 0 0 1rem;
}

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

.direction-panel__content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.direction-panel__content li + li {
  margin-top: 0.75rem;
}

.program-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: clamp(6rem, 10vw, 10rem) auto 0;
  border-top: 1px dotted rgba(74, 48, 38, 0.55);
  background: #f9f9f9;
  color: #4a3026;
}

.program-segment__copy {
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  align-self: center;
}

.program-segment h3 {
  margin: 0 0 1rem;
  font-family: "Quattrocento", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.dress-code h3 {
  color: #cf77a1;
}

.program-copy h3 {
  color: #96985f;
}

.dress-code > p,
.program-copy > p {
  max-width: none;
  margin: 0 0 1.5rem;
  font-family: "Lekton", monospace;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.45;
}

.program-copy {
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.program-schedule {
  margin: clamp(3rem, 6vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
}

.program-schedule li {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.7fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  padding: 1.65rem 0;
  border-bottom: 1px dotted rgba(74, 48, 38, 0.55);
}

.program-schedule time,
.program-schedule h4 {
  font-family: "Quattrocento", Georgia, serif;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.45;
}

.program-schedule h4 {
  margin: 0;
}

.program-schedule p {
  margin: 0.25rem 0 0;
  color: #9a8a6d;
  font-family: "Lekton", monospace;
  font-size: 0.94rem;
  line-height: 1.4;
}

.program-segment__image {
  aspect-ratio: 1 / 1.12;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.program-segment__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.004);
}

.photo-card {
  margin: 0;
  transform: rotate(1.5deg);
  padding: 0.75rem 0.75rem 1.25rem;
  background: white;
  box-shadow: 0 1.5rem 4rem rgba(33, 54, 47, 0.14);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-deep);
}

.photo-card figcaption {
  padding: 1rem 0.5rem 0;
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
}

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

.evening h2 {
  max-width: 15ch;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 5rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  list-style: none;
}

.timeline li {
  min-height: 24rem;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline li:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline__number {
  display: block;
  margin-bottom: 5rem;
  color: #d9bca4;
  font: italic 1.4rem var(--serif);
}

.timeline time {
  display: block;
  color: #d9bca4;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0.75rem 0;
  font: 400 2rem var(--serif);
}

.timeline p {
  color: rgba(255, 250, 241, 0.7);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(48rem, 76vw, 68rem);
  padding: 0;
  background: #f7f3e9;
  color: #4a3026;
}

.faq-section__image {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

.faq-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.faq-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(2.5rem, 7vw, 7rem);
  background-color: #3d251c;
  background-image: url("images/subtle-noise.png");
  background-blend-mode: overlay;
  background-repeat: repeat;
  color: #fff8e9;
}

.faq-kicker {
  margin: 0 0 1rem;
  color: rgba(255, 248, 233, 0.72);
  font: 400 0.78rem "Lekton", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.faq-section .faq-section__content h2 {
  max-width: none;
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  color: #fff8e9;
  font: 400 clamp(3.2rem, 5vw, 5.5rem) / 0.88 "Anaktoria", Georgia, serif;
  letter-spacing: 0;
}

.faq-section h2 span {
  display: block;
  font-family: "Quattrocento", Georgia, serif;
  font-size: 0.66em;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.faq-list {
  border-top: 1px solid rgba(255, 248, 233, 0.42);
}

.faq-panel {
  border-bottom: 1px solid rgba(255, 248, 233, 0.42);
}

.faq-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  color: #fff8e9;
  font: 400 clamp(1rem, 1.35vw, 1.25rem) "Quattrocento", Georgia, serif;
  cursor: pointer;
  list-style: none;
}

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

.faq-panel summary span {
  font-family: "Lekton", monospace;
  transition: transform 280ms ease;
}

.faq-panel[open] summary span {
  transform: rotate(45deg);
}

.faq-panel__answer {
  padding: 0 2.5rem 1.35rem 0;
}

.faq-panel__answer p {
  margin: 0;
  color: rgba(255, 248, 233, 0.78);
  font-size: 0.96rem;
  line-height: 1.65;
}

.faq-panel.is-animating {
  overflow: hidden;
}

.reply {
  z-index: 1;
  isolation: isolate;
  padding: clamp(7rem, 12vw, 11rem) 1.5rem clamp(6rem, 10vw, 9rem);
  background: #fbf9ed;
  color: #4a3026;
}

.reply::before {
  position: absolute;
  top: -2.25rem;
  right: 0;
  left: 0;
  height: 2.35rem;
  background: radial-gradient(ellipse 58% 100% at 50% 100%, #fbf9ed 97%, transparent 100%) 0 0 / 5.7rem 2.35rem repeat-x;
  content: "";
}

.reply::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -2.25rem;
  left: 0;
  height: 2.35rem;
  background: radial-gradient(ellipse 58% 100% at 50% 0, #fbf9ed 97%, transparent 100%) 0 0 / 5.7rem 2.35rem repeat-x;
  content: "";
  pointer-events: none;
}

.rsvp-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  margin: 0 auto;
  text-align: center;
}

.rsvp-kicker {
  margin: 0 0 0.75rem;
  color: #859357;
  font-family: "Lekton", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reply .rsvp-wrap h2 {
  max-width: none;
  margin: 0;
  color: #4a3026;
  font-family: "Anaktoria", cursive;
  font-size: clamp(4rem, 9vw, 7rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.rsvp-intro {
  max-width: 36rem;
  margin: 1.25rem auto 3rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.rsvp-form {
  display: grid;
  gap: 1.6rem;
  padding: 0;
  text-align: left;
}

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

.rsvp-attendee-details {
  display: grid;
  gap: 1.6rem;
}

.rsvp-attendee-details[hidden] {
  display: none;
}

.rsvp-field > label,
.rsvp-form legend {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-field > label span {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid rgba(74, 48, 38, 0.6);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #4a3026;
  font: inherit;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form textarea:focus {
  border-bottom-color: var(--rust);
  box-shadow: 0 2px 0 var(--rust);
}

.party-size-stepper {
  display: grid;
  grid-template-columns: 3rem 4rem 3rem;
  gap: 0.5rem;
  align-items: center;
  margin: 0.65rem 0 1rem;
}

.party-size-stepper button {
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(74, 48, 38, 0.55);
  border-radius: 50%;
  background: transparent;
  color: #4a3026;
  font: 400 1.35rem var(--sans);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.party-size-stepper button:hover,
.party-size-stepper button:focus-visible {
  border-color: #859357;
  outline: none;
  background: #859357;
  color: #fffdf4;
}

.party-size-stepper input {
  width: 4rem;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #4a3026;
  font: 400 1.5rem "Quattrocento", Georgia, serif;
  text-align: center;
  appearance: textfield;
}

.party-size-stepper input::-webkit-inner-spin-button,
.party-size-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.rsvp-form fieldset {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.rsvp-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.rsvp-form legend {
  margin-bottom: 0.75rem;
}

.radio-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  cursor: pointer;
}

.radio-card:has(input:checked) {
  border-color: #859357;
  background: #859357;
  color: #fffdf4;
}

.submit-button {
  justify-self: center;
  width: min(100%, 17rem);
  height: 4.1rem;
  min-height: 0;
  padding: 0.85rem 2rem;
  border: 1px solid #4a3026;
  border-radius: 50%;
  background: #4a3026;
  color: white;
  font: 600 0.8rem var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.rsvp-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.rsvp-floral {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: block;
  width: auto;
  height: clamp(36rem, 68vw, 52rem);
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.rsvp-floral--left {
  left: clamp(2rem, 3vw, 3.5rem);
  transform: translateY(-50%) scaleX(-1);
}

.rsvp-floral--right {
  right: clamp(-14rem, -10vw, -9rem);
}

.submit-button:not(:disabled):hover,
.submit-button:not(:disabled):focus-visible {
  background: var(--rust);
  border-color: var(--rust);
}

.form-message {
  min-height: 1.6em;
  margin: 0;
  text-align: center;
}

.form-message[data-state="success"] {
  color: #586631;
}

.form-message[data-state="error"] {
  color: var(--rust);
}

footer {
  position: relative;
  z-index: 0;
  display: grid;
  min-height: clamp(24rem, 48vw, 42rem);
  padding: 4rem 1.5rem;
  align-content: end;
  overflow: hidden;
  background-color: #233431;
  background-image: url("images/footer-landscape-optimized.jpg");
  background-position: center 30%;
  background-size: cover;
  color: var(--cream);
  text-align: center;
}

footer a {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  justify-self: center;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  text-decoration: none;
}

footer p {
  margin: 1rem 0 0;
}

/* CURSOR DUCK: Self-contained and safe to remove if the experiment is not a keeper. */
.cursor-duck {
  --duck-facing: 1;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: grid;
  width: 7rem;
  height: 7rem;
  place-items: center;
  opacity: 1;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  transform: translate3d(-6rem, -6rem, 0);
  user-select: none;
  will-change: transform;
}

.cursor-duck.is-dragging {
  cursor: grabbing;
}

.cursor-duck__bird {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.35rem 0.3rem rgba(33, 25, 18, 0.18));
  transform: scaleX(var(--duck-facing));
  transform-origin: center bottom;
  animation: goose-idle 1.9s ease-in-out infinite alternate;
}

.cursor-duck__nip {
  position: absolute;
  top: -0.45rem;
  left: 50%;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #fff8e9;
  color: #4a3026;
  font: 700 0.62rem "Lekton", monospace;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(-50%, 0.35rem) rotate(-5deg);
  transition: opacity 120ms ease, transform 180ms ease;
  white-space: nowrap;
}

.cursor-duck.is-walking .cursor-duck__bird {
  animation: goose-waddle 260ms ease-in-out infinite alternate;
}

.cursor-duck.is-chasing .cursor-duck__bird {
  animation-duration: 165ms;
}

.cursor-duck.is-dragging .cursor-duck__bird {
  animation: none;
  transform: scaleX(var(--duck-facing)) rotate(-4deg) translateY(-0.3rem);
}

.cursor-duck.is-nipping .cursor-duck__nip {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-5deg);
}

@keyframes goose-idle {
  from { transform: scaleX(var(--duck-facing)) rotate(-1.5deg) translateY(0); }
  to { transform: scaleX(var(--duck-facing)) rotate(1.5deg) translateY(-0.12rem); }
}

@keyframes goose-waddle {
  from { transform: scaleX(var(--duck-facing)) rotate(-6deg) translateY(0); }
  to { transform: scaleX(var(--duck-facing)) rotate(6deg) translateY(-0.28rem); }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-duck {
    display: none;
  }
}

@media (max-width: 1024px) {
  .rsvp-floral {
    display: none;
  }
}

@media (max-width: 800px) {
  :root {
    --nav-height: 52px;
  }

  .reply::before {
    top: -1.5rem;
    height: 1.6rem;
    background-size: 3.4rem 1.6rem;
  }

  .reply::after {
    bottom: -1.5rem;
    height: 1.6rem;
    background-size: 3.4rem 1.6rem;
  }

  .rsvp-floral--left {
    left: -2.25rem;
  }

  .rsvp-floral--right {
    right: -11rem;
  }

  .rsvp-floral {
    top: 50%;
    width: auto;
    height: 34rem;
    opacity: 1;
    transform: translateY(-50%);
  }

  footer {
    min-height: 32rem;
    background-position: 58% 30%;
  }

  .hero__content {
    transform: translateY(-15vh);
  }

  .hero h1 {
    font-size: clamp(3.6rem, 17vw, 6rem);
  }

  .hero__invitation {
    margin-top: 1rem;
  }

  .countdown-stage {
    min-height: 0;
    padding: 1rem 1rem 8rem;
    background-position: 54% center;
  }

  .countdown-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.75rem;
    min-height: 0;
    margin-bottom: 0;
  }

  .invitation-art--envelope,
  .wedding-countdown,
  .invitation-art--calendar {
    grid-row: auto;
    grid-column: 1;
  }

  .invitation-art--envelope {
    order: 1;
    justify-self: center;
    width: min(110%, 42rem);
    transform: none;
  }

  .wedding-countdown {
    order: 3;
    align-self: center;
    width: 100%;
    margin: 1.5rem 0 0;
    transform: none;
  }

  .wedding-countdown::before {
    inset: -42% -4% -38%;
  }

  .wedding-countdown strong {
    font-size: clamp(2.15rem, 10.5vw, 4rem);
  }

  .wedding-countdown span {
    font-size: clamp(0.68rem, 2.8vw, 0.9rem);
  }

  .wedding-countdown__unit {
    padding: 0 0.2rem;
  }

  .wedding-countdown__unit:not(:last-child)::after {
    top: -0.05em;
    right: -0.12em;
    font-size: clamp(1.6rem, 7vw, 2.8rem);
  }

  .invitation-art--calendar {
    order: 2;
    justify-self: center;
    width: min(105%, 42rem);
    margin-top: -0.5rem;
    transform: none;
  }

  .envelope-session-details {
    font-size: clamp(0.55rem, 2.45cqw, 1.3rem);
  }

  .calendar-session-details {
    font-size: clamp(0.48rem, 1.9cqw, 0.95rem);
  }

  .couple-notes {
    gap: 5rem;
    padding: 5rem 1.5rem 6rem;
  }

  .couple-note-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .couple-polaroid {
    width: min(88vw, 25rem);
  }

  .couple-note-copy {
    max-width: 29rem;
  }

  .couple-note-copy h3 {
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 10vw, 3.15rem);
  }

  .couple-note-copy p {
    font-size: clamp(0.9rem, 4vw, 1.05rem);
    line-height: 1.5;
  }

  .couple-note-row--tracy .couple-polaroid {
    order: 1;
  }

  .couple-note-row--tracy .couple-note-copy {
    order: 2;
  }

  .couple-note-row--xuan .couple-polaroid {
    order: 1;
  }

  .couple-note-row--xuan .couple-note-copy {
    order: 2;
  }

  .chapter-nav__toggle {
    display: flex;
    width: 100%;
    min-height: var(--nav-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 400 0.75rem "Quattrocento", Georgia, serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .chapter-nav__links {
    display: none;
    grid-template-columns: 1fr;
    min-height: 0;
    border-top: 1px solid var(--line);
  }

  .chapter-nav.is-open .chapter-nav__links {
    display: grid;
  }

  .chapter-nav__links a,
  .chapter-nav__links a:first-child {
    justify-content: flex-start;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .directions__grid,
  .reply__grid {
    grid-template-columns: 1fr;
  }

  .setting__hero img {
    height: calc(clamp(24rem, 90vw, 36rem) + 10rem);
    margin-top: -5rem;
    opacity: 1;
  }

  .setting__hero {
    height: clamp(24rem, 90vw, 36rem);
    background-image: none;
    background-attachment: scroll;
  }

  .directions {
    width: min(calc(100% - 2.5rem), 38rem);
    padding-top: 3.5rem;
  }

  .setting .directions .directions__heading,
  .directions__date {
    margin: 3rem 0;
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .directions__grid {
    gap: 3rem;
  }

  .directions__location address {
    font-size: 1.03rem;
  }

  .direction-panel summary {
    font-size: 1.12rem;
  }

  .direction-panel__content {
    font-size: 0.93rem;
  }

  .directions__map {
    width: min(100%, 27rem);
  }

  .program-segment {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .program-segment__copy {
    order: 2;
    padding: 3rem 1.5rem;
  }

  .program-segment h3 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .program-schedule {
    margin-top: 3rem;
  }

  .program-schedule li {
    grid-template-columns: minmax(6.5rem, 0.7fr) minmax(0, 1.3fr);
    gap: 1rem;
  }

  .program-segment__image {
    order: 1;
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .photo-card {
    max-width: 28rem;
  }

  .faq-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .faq-section__image {
    height: min(125vw, 43rem);
  }

  .faq-section__content {
    padding: 4.5rem 1.5rem 6rem;
  }

  .faq-section .faq-section__content h2 {
    font-size: clamp(3.4rem, 14vw, 5rem);
  }

  .faq-panel summary {
    font-size: 1.05rem;
  }

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

  .timeline li,
  .timeline li:first-child {
    min-height: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .timeline__number {
    margin-bottom: 2rem;
  }
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

@media (prefers-reduced-motion: reduce) {
  .setting__hero {
    background-attachment: scroll;
  }

  .setting__hero img {
    transform: scale(1.02) !important;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
