@font-face {
  font-family: "Cormorant Infant";
  src: url("/assets/fonts/cormorant-infant-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0400-052f, U+1c80-1c8a, U+2de0-2dff, U+a640-a69f;
}

@font-face {
  font-family: "Cormorant Infant";
  src: url("/assets/fonts/cormorant-infant-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-024f, U+1e00-1eff, U+2000-206f;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0400-052f, U+1c80-1c8a, U+2de0-2dff, U+a640-a69f;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-024f, U+1e00-1eff, U+2000-206f;
}

@font-face {
  font-family: "Lobster";
  src: url("/assets/fonts/lobster-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-052f, U+1c80-1c8a, U+2de0-2dff, U+a640-a69f;
}

@font-face {
  font-family: "Lobster";
  src: url("/assets/fonts/lobster-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024f, U+1e00-1eff, U+2000-206f;
}

:root {
  --white: #fff;
  --ivory: #fff9eb;
  --mint: #c9ffc5;
  --sage: #4e764c;
  --sage-dark: #3d623c;
  --ink: #191a17;
  --muted: #686257;
  --canvas: #eff0f5;
  --line: rgba(25, 26, 23, 0.18);
  --serif: "Cormorant Infant", Georgia, "Times New Roman", serif;
  --script: "Lobster", "Segoe Script", cursive;
  --sans: "Montserrat", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  transform: translateY(-150%);
}

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

.invitation-sheet {
  position: relative;
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: clip;
  background: var(--white);
  box-shadow: 0 0 45px rgba(45, 47, 55, 0.08);
}

.site-nav {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  min-height: 64px;
  align-items: center;
  padding: 6px 14px;
  background: rgba(201, 255, 197, 0.94);
  box-shadow: 0 1px 0 rgba(97, 139, 95, 0.12);
  grid-template-columns: 44px minmax(0, 1fr) auto;
  backdrop-filter: blur(10px);
}

.site-nav__toggle,
.calendar-button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}

.site-nav__toggle {
  position: relative;
  display: grid;
  width: 44px;
  padding: 0;
  background: transparent;
  place-items: center;
}

.site-nav__toggle-lines,
.site-nav__toggle-lines::before,
.site-nav__toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--sage-dark);
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav__toggle-lines::before {
  transform: translateY(-6px);
}

.site-nav__toggle-lines::after {
  transform: translateY(4px);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-lines {
  background: transparent;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-lines::before {
  transform: translateY(0) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-lines::after {
  transform: translateY(-2px) rotate(-45deg);
}

.site-nav__label {
  min-width: 0;
  overflow: hidden;
  padding-left: 4px;
  color: var(--sage-dark);
  font-size: 20px;
  font-weight: 300;
}

.calendar-button {
  padding: 8px 20px;
  border-radius: 24px;
  background: var(--sage);
  color: var(--white);
  font-family: var(--script);
  font-size: 17px;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}

.calendar-button:hover {
  background: var(--sage-dark);
}

.site-nav__menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 12px;
  width: min(300px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(97, 139, 95, 0.24);
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 35px rgba(42, 64, 41, 0.16);
}

.site-nav__menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
}

.site-nav__menu a:hover {
  background: rgba(201, 255, 197, 0.45);
}

.preview-banner {
  padding: 7px 12px;
  background: #ffdc7d;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: flex;
  min-height: 790px;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: clamp(245px, 48vw, 345px) 28px 62px;
  background: var(--white);
  text-align: center;
}

.hero__canopy-frame {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(310px, 58vw, 420px);
  overflow: hidden;
  pointer-events: none;
}

.hero__canopy {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: auto 0 0;
}

.ornament {
  margin: 0 0 28px;
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.35em;
}

.ornament--lower {
  margin: 25px 0 16px;
}

.hero__kicker,
.hero__intro,
.hero__closing,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
}

.hero__kicker {
  color: var(--muted);
  font-size: clamp(10px, 1.8vw, 12px);
  letter-spacing: 0.3em;
}

.hero__title {
  max-width: none;
  margin: 28px auto 24px;
  font-family: var(--serif);
  font-size: clamp(31px, 7.7vw, 52px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__intro {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(10px, 2vw, 13px);
  letter-spacing: 0.22em;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.hero__date {
  margin: 27px 0 0;
  font-size: clamp(24px, 5.7vw, 38px);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero__time {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: clamp(11px, 2vw, 14px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__closing {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.26em;
}

.countdown-section {
  margin-top: 54px;
}

.countdown {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.countdown div {
  min-width: 0;
  padding: 0 3px;
  text-align: center;
}

.countdown strong {
  display: block;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 300;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: clamp(7px, 1.65vw, 10px);
}

.countdown__complete {
  margin: 0;
  font-family: var(--script);
  font-size: 28px;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 25px rgba(50, 55, 48, 0.18);
  font-family: var(--sans);
  font-size: 22px;
  text-decoration: none;
  place-items: center;
  animation: float 2.4s ease-in-out infinite;
}

.section {
  position: relative;
  padding: clamp(72px, 14vw, 112px) clamp(24px, 9vw, 72px);
  text-align: center;
  scroll-margin-top: 74px;
}

.section--ivory {
  background-color: var(--ivory);
  overflow: hidden;
}

.section--ivory::before,
.section--ivory::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: clamp(72px, 21vw, 142px);
  background: url("/assets/botanical-edge.svg") top left / 100% auto repeat-y;
  content: "";
  opacity: 0.16;
  pointer-events: none;
}

.section--ivory::before {
  left: 0;
}

.section--ivory::after {
  right: 0;
  transform: scaleX(-1);
}

.section--ivory > * {
  position: relative;
  z-index: 1;
}

.section--mint {
  background: var(--mint);
}

.section h2 {
  max-width: 17ch;
  margin: 0 auto 30px;
  font-family: var(--script);
  font-size: clamp(34px, 7vw, 50px);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--sage-dark);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.prose {
  max-width: 510px;
  margin: 0 auto 30px;
  font-size: clamp(17px, 3.5vw, 21px);
  line-height: 1.55;
}

.preserve-lines {
  white-space: pre-line;
}

.botanical-divider {
  width: min(100%, 420px);
  max-height: 155px;
  margin: -46px auto 42px;
  object-fit: contain;
  opacity: 0.7;
}

.botanical-divider--small {
  width: min(82%, 330px);
  max-height: 110px;
  margin-bottom: 36px;
}

.invitation {
  padding-top: 92px;
}

.script-quote {
  max-width: 510px;
  margin: 62px auto 0;
  font-family: var(--script);
  font-size: clamp(31px, 7vw, 46px);
  line-height: 1.1;
}

.portraits {
  padding-top: 24px;
}

.gallery {
  display: grid;
  gap: 70px;
}

.gallery figure {
  margin: 0;
}

.gallery picture {
  display: block;
}

.gallery img {
  width: min(100%, 360px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 48% 48% 45% 45% / 38% 38% 42% 42%;
  box-shadow: 0 16px 40px rgba(54, 63, 49, 0.12);
  object-fit: cover;
}

.gallery figcaption {
  margin-top: 21px;
  font-family: var(--script);
  font-size: clamp(34px, 7vw, 48px);
}

.details {
  padding-top: 54px;
}

.details-list {
  display: grid;
  max-width: 520px;
  margin: 0 auto;
  gap: 68px;
}

.details-list article {
  position: relative;
}

.details-list article:not(:last-child)::after {
  display: block;
  margin: 44px auto 0;
  color: var(--sage);
  content: "···";
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.4em;
}

.details-list h3 {
  margin: 0 0 17px;
  font-family: var(--script);
  font-size: clamp(32px, 7vw, 47px);
  font-weight: 400;
  line-height: 1.1;
}

.details-list p {
  margin: 0;
  font-size: clamp(17px, 3.5vw, 20px);
  line-height: 1.5;
  white-space: pre-line;
}

.dress {
  padding-top: 90px;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(9px, 2.3vw, 15px);
}

.palette__color {
  display: block;
  width: clamp(43px, 10vw, 58px);
  height: clamp(43px, 10vw, 58px);
}

.palette__color svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.rsvp {
  padding-top: 100px;
}

.rsvp__deadline {
  max-width: 430px;
}

.edit-notice,
.load-error {
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 16px;
  border-left: 3px solid var(--sage);
  background: rgba(201, 255, 197, 0.42);
  font-family: var(--sans);
  font-size: 13px;
  text-align: left;
}

.load-error {
  margin: 0;
  max-width: none;
  border-left: 0;
  background: #fff1e8;
  text-align: center;
}

.rsvp-form {
  max-width: 560px;
  margin: 50px auto 0;
  padding: clamp(22px, 6vw, 42px);
  border: 1px solid rgba(97, 139, 95, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 45px rgba(67, 79, 62, 0.08);
  text-align: left;
}

.field {
  margin: 0 0 28px;
}

.field label,
.fieldset legend {
  display: block;
  margin: 0 0 9px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(25, 26, 23, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.choice {
  position: relative;
  display: flex !important;
  min-height: 48px;
  align-items: center;
  margin: 0 !important;
  cursor: pointer;
}

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

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(97, 139, 95, 0.34);
  border-radius: 9px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease;
}

.choice input:checked + span {
  border-color: var(--sage);
  background: var(--mint);
}

.choice input:focus-visible + span {
  outline: 3px solid #416f40;
  outline-offset: 2px;
}

.conditional {
  margin-top: 34px;
}

.survey-block {
  margin: 36px calc(clamp(22px, 6vw, 42px) * -1) 30px;
  padding: clamp(31px, 7vw, 46px) clamp(22px, 6vw, 42px) 18px;
  background: var(--mint);
}

.survey-block h3 {
  margin: 0 0 37px;
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 29px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.choice-grid--compact .choice span {
  min-height: 44px;
  background: rgba(255, 255, 255, 0.82);
}

.field__hint,
.field__error,
.privacy-note,
.form-status {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.45;
}

.field__hint {
  margin: 6px 0 0;
  color: var(--muted);
}

.field__error {
  min-height: 1em;
  margin: 6px 0 0;
  color: #9a3129;
}

.form-status {
  min-height: 1.5em;
  margin: 0 0 12px;
  text-align: center;
}

.form-status[data-state="error"] {
  color: #9a3129;
}

.form-status[data-state="success"] {
  color: #316b37;
}

.privacy-note {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--sage);
  border-radius: 24px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button--outline {
  background: transparent;
  color: var(--sage-dark);
}

.button--sage {
  background: var(--sage);
  color: var(--white);
}

.button--full {
  width: 100%;
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button:hover {
  background: var(--sage-dark);
  color: var(--white);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #416f40;
  outline-offset: 3px;
}

[aria-invalid="true"] {
  border-color: #9a3129 !important;
}

.schedule {
  padding-top: 90px;
  padding-bottom: 95px;
}

.timeline {
  position: relative;
  max-width: 530px;
  margin: 58px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 60px;
  width: 1px;
  background: rgba(97, 139, 95, 0.55);
  content: "";
}

.timeline li {
  position: relative;
  display: grid;
  padding: 0 0 43px;
  grid-template-columns: 48px 1fr;
  gap: 27px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  position: absolute;
  top: 7px;
  left: 55px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--mint);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 1px var(--sage);
  content: "";
}

.timeline__time {
  font-family: var(--script);
  font-size: 22px;
  line-height: 1.2;
}

.timeline h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.timeline__place,
.timeline p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.timeline__place {
  margin-bottom: 5px;
  color: var(--sage-dark);
  font-weight: 700;
}

.venue__name {
  margin: 0 0 8px;
  font-family: var(--script);
  font-size: 28px;
}

.venue__address {
  margin: 0 0 20px;
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.contact-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--sage);
  border-radius: 22px;
  color: var(--sage-dark);
  font-family: var(--sans);
  font-size: 12px;
  text-decoration: none;
}

.footer {
  padding: 75px 24px 52px;
  background: var(--mint);
  text-align: center;
}

.footer__botanical {
  width: min(80%, 300px);
  max-height: 100px;
  margin: -35px auto 24px;
  object-fit: contain;
  opacity: 0.65;
}

.footer p {
  max-width: 470px;
  margin: 0 auto 24px;
  font-family: var(--script);
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.2;
}

.footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.noscript {
  margin: 0;
  padding: 16px;
  background: #fff1e8;
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 359px) {
  .site-nav {
    padding-inline: 7px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .site-nav__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .calendar-button {
    padding-inline: 14px;
    font-size: 15px;
  }

  .hero {
    min-height: 740px;
    padding-inline: 16px;
  }

  .hero__title {
    font-size: 24px;
    letter-spacing: 0.04em;
  }

  .hero__date {
    font-size: 22px;
  }

  .section {
    padding-inline: 16px;
  }

  .rsvp-form {
    padding-inline: 16px;
  }

  .survey-block {
    margin-inline: -16px;
    padding-inline: 16px;
  }

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

  .choice--wide {
    grid-column: auto;
  }
}

@media (min-width: 360px) and (max-width: 500px) {
  .site-nav__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero__title {
    font-size: 29px;
    letter-spacing: 0.055em;
  }
}

@media (min-width: 768px) {
  body {
    padding: 34px 0;
  }

  .invitation-sheet {
    border-radius: 28px;
  }

  .site-nav {
    border-radius: 28px 28px 0 0;
    padding-inline: 20px;
  }

  .hero__scroll {
    right: 30px;
  }

  .gallery img {
    width: 380px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
