:root {
  --ink: #28251f;
  --muted: #787166;
  --paper: #f2ede3;
  --paper-soft: #fbf8f1;
  --line: #d8d0c3;
  --line-soft: rgba(133, 122, 105, 0.18);
  --green: #7a856f;
  --green-deep: #46513e;
  --green-ink: #263628;
  --white: #fffdf8;
  --scroll-progress: 0;
  --dot-shift-x: 0px;
  --dot-shift-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #f3ede1;
  background-image: linear-gradient(180deg, rgba(255, 253, 248, 0.52), rgba(230, 220, 205, 0.24));
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 300;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.32), transparent 38%, rgba(216, 208, 195, 0.12));
  opacity: 0.52;
}


main {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.is-hidden {
  display: none !important;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: var(--paper-soft);
  opacity: 0;
  transition: opacity 480ms ease;
}

.page-transition.is-active {
  opacity: 1;
}

.transition-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms ease 200ms, transform 360ms ease 200ms;
}

.page-transition.is-active .transition-mark {
  opacity: 1;
  transform: translateY(0);
}

.transition-name {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.transition-line {
  width: 0;
  height: 1px;
  background: var(--green-deep);
  opacity: 0.7;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1) 360ms;
}

.page-transition.is-active .transition-line {
  width: 56px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: clamp(8px, 1.5vw, 18px);
  padding-left: clamp(8px, 1.5vw, 18px);
  border-left: 1px solid var(--line-soft);
}

.lang-btn {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0 2px;
  min-height: auto;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.lang-btn.is-active {
  color: var(--green-deep);
  border-bottom-color: currentColor;
}

.lang-btn:hover {
  color: var(--ink);
  transform: none;
}

.lang-sep {
  color: var(--line);
  font-size: 0.68rem;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.rsvp-form > label {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper-soft);
}

.landing__mark {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  letter-spacing: 0.14em;
  animation: loaderIn 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing__line {
  width: 0;
  height: 1px;
  background: var(--green-deep);
  opacity: 0.55;
  margin: 14px 0;
  animation: loaderLine 820ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.landing__date {
  margin: 0 0 52px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  animation: loaderIn 700ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both;
}

.landing__enter {
  border: 1px solid var(--green-deep);
  padding: 14px 32px;
  min-height: auto;
  animation: loaderIn 700ms cubic-bezier(0.22, 1, 0.36, 1) 600ms both;
}

.landing__enter:hover {
  border-color: var(--ink);
}

#enter-error {
  margin-top: 16px;
  min-height: 1.4rem;
}

input[type="email"],
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px 0;
  outline: none;
}

textarea {
  border: 1px solid var(--line);
  padding: 14px;
  resize: vertical;
}

input[type="email"]:focus,
textarea:focus {
  border-color: var(--green-deep);
}

button,
.hero__cta,
.registry {
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

button:hover,
.hero__cta:hover,
.registry:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.hint,
.error,
.success {
  min-height: 1.4rem;
  line-height: 1.5;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.hint a {
  color: var(--green-deep);
  font-weight: 400;
}

.error {
  color: var(--green-ink);
  font-weight: 400;
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.success {
  color: var(--green-deep);
  font-weight: 400;
}

button.is-loading {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

button.is-loading::after {
  content: " …";
}

.rsvp-thanks {
  max-width: 820px;
  padding: clamp(28px, 4vw, 48px) 0;
}

.rsvp-thanks .eyebrow {
  margin-bottom: 18px;
}

.rsvp-thanks h2 {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  line-height: 1.1;
}

.rsvp-thanks p {
  color: var(--muted);
  line-height: 1.82;
  margin: 0 0 clamp(22px, 3vw, 34px);
}

.site {
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(216, 208, 195, 0.76);
  background: rgba(243, 237, 225, 0.84);
  backdrop-filter: blur(18px);
}

.nav__brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav__links a {
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: stretch;
  gap: 0;
  background: rgba(251, 248, 241, 0.58);
  border-bottom: 1px solid var(--line);
}

.hero__carousel {
  position: relative;
  min-height: calc(100vh - 66px);
  overflow: hidden;
  background: #27251f;
}

.hero__carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 58%, rgba(243, 237, 225, 0.52));
}

.hero__carousel img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(0.94);
  animation: fadeCarousel 28s infinite;
}

.hero__carousel img:nth-child(2) {
  animation-delay: 4s;
}

.hero__carousel img:nth-child(3) {
  animation-delay: 8s;
}

.hero__carousel img:nth-child(4) {
  animation-delay: 12s;
}

.hero__carousel img:nth-child(5) {
  animation-delay: 16s;
}

.hero__carousel img:nth-child(6) {
  animation-delay: 20s;
}

.hero__carousel img:nth-child(7) {
  animation-delay: 24s;
}

@keyframes fadeCarousel {
  0%,
  100% {
    opacity: 0;
    transform: translateY(calc(var(--scroll-progress) * -18px)) scale(1);
  }
  8%,
  24% {
    opacity: 1;
    transform: translateY(calc(var(--scroll-progress) * -28px)) scale(1.035);
  }
  32% {
    opacity: 0;
    transform: translateY(calc(var(--scroll-progress) * -34px)) scale(1.06);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(540px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 104px) 0;
  color: var(--ink);
  transform: translateY(calc(var(--scroll-progress) * 18px));
}

.hero h2 {
  margin: 0;
  font-size: clamp(4.8rem, 10vw, 9rem);
  line-height: 0.88;
}

.wedding-date {
  margin: 24px 0 18px;
  color: var(--green-ink);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero p:not(.wedding-date) {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.34vw, 1.15rem);
  line-height: 1.86;
}

.hero__cta {
  justify-self: start;
  margin-top: 18px;
}

.welcome,
.details,
.rsvp,
.gifts {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 6vw, 84px) 0;
  scroll-margin-top: 66px;
}

.welcome {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.72rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.12;
  text-align: center;
}

.welcome p {
  width: min(820px, 100%);
  margin: 0 auto;
}

.section-title {
  display: grid;
  gap: clamp(12px, 2vw, 22px);
  align-items: start;
  margin-bottom: 0;
  max-width: 780px;
}

.section-title h2,
.gifts h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  line-height: 1.1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.details--schedule {
  padding-top: clamp(28px, 4vw, 52px);
}

.detail-grid article {
  min-height: 270px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line);
}

.detail-grid article + article {
  border-left: 1px solid var(--line);
}

.detail-grid span {
  color: var(--green-ink);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.detail-grid h3 {
  margin: 48px 0 12px;
  font-size: 1.82rem;
}

.detail-grid p {
  color: var(--muted);
  line-height: 1.76;
}

.detail-grid a {
  color: var(--green-deep);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.illustration {
  padding: clamp(12px, 2vw, 28px) 0 0;
}

.illustration img {
  width: min(1040px, calc(100% - 44px));
  max-height: 490px;
  margin: 0 auto;
  object-fit: cover;
  opacity: 0.64;
  mix-blend-mode: multiply;
}

.rsvp-form {
  display: grid;
  gap: 28px;
  max-width: 820px;
  padding: 0;
  border: 0;
  background: transparent;
}

.rsvp {
  padding-top: clamp(34px, 4vw, 58px);
  padding-bottom: clamp(32px, 4vw, 54px);
}

fieldset {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 2.85vw, 2.55rem);
  font-weight: 400;
  line-height: 1;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.choice:last-child {
  border-bottom: 1px solid var(--line);
}

.choice input,
.guest-card input {
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid var(--green-deep);
  border-radius: 50%;
  background: transparent;
  display: inline-grid;
  place-items: center;
  flex: 0 0 14px;
}

.choice input::before,
.guest-card input::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-deep);
  transform: scale(0);
  transition: transform 160ms ease;
}

.choice input:checked::before,
.guest-card input:checked::before {
  transform: scale(1);
}

.guest-card input[type="checkbox"] {
  border-radius: 0;
}

.guest-card input[type="checkbox"]::before {
  width: 7px;
  height: 7px;
  border-radius: 0;
}

.guest-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.guest-card {
  display: grid;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.guest-card__top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}


.guest-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.guest-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.guest-switch__track {
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid var(--line);
  background: transparent;
  flex-shrink: 0;
  transition: border-color 200ms ease, background 200ms ease;
}

.guest-switch input:checked + .guest-switch__track {
  border-color: var(--green-deep);
  background: var(--green-deep);
}

.guest-switch input:disabled + .guest-switch__track {
  opacity: 0.35;
}

.guest-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--line);
  transition: transform 200ms ease, background 200ms ease;
}

.guest-switch input:checked + .guest-switch__track .guest-switch__thumb {
  transform: translateX(20px);
  background: var(--paper-soft);
}

.guest-switch__label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 68px;
  transition: color 200ms ease;
}

.guest-switch:has(input:checked) .guest-switch__label {
  color: var(--green-deep);
}

.switch-on  { display: none; }
.switch-off { display: inline; }

.guest-switch:has(input:checked) .switch-on  { display: inline; }
.guest-switch:has(input:checked) .switch-off { display: none; }

.guest-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.diet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.diet-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 300;
}

.other-diet {
  display: none;
}

.other-diet.is-visible {
  display: block;
}

.rsvp-submit {
  justify-self: center;
  border: 1px solid var(--green-deep);
  padding: 16px 52px;
  min-height: auto;
  margin-top: 8px;
}

.rsvp-submit:hover {
  border-color: var(--ink);
}

.gifts {
  display: block;
}

.gifts__copy,
.gifts p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.82;
}

.gifts .registry {
  margin: clamp(18px, 3vw, 30px) 0 clamp(34px, 5vw, 54px);
}

.gift-intro {
  margin: clamp(28px, 4vw, 42px) 0 0;
  color: var(--muted);
  line-height: 1.82;
}

.bank {
  margin: 14px 0 24px;
  color: var(--muted) !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.82 !important;
}

.bank span {
  color: var(--green-ink);
}

.line-icon {
  width: clamp(22px, 2.2vw, 30px);
  height: clamp(22px, 2.2vw, 30px);
  flex-shrink: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(3.1) brightness(1.08);
  opacity: 0.5;
}

.heading-with-icon {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.4vw, 18px);
}

.heading-with-icon .line-icon {
  margin-top: clamp(4px, 0.5vw, 8px);
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-mark {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

footer button {
  color: var(--green-deep);
}

.reveal {
  --reveal-y: 34px;
  --reveal-scale: 0.98;
  --parallax-y: 0px;
  opacity: 0;
  transform: translateY(calc(var(--reveal-y) + var(--parallax-y))) scale(var(--reveal-scale));
  transition: opacity 980ms cubic-bezier(0.22, 1, 0.36, 1), transform 980ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  --reveal-y: 0px;
  --reveal-scale: 1;
  opacity: 1;
}

[data-stagger] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1), transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-stagger].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal::after {
  display: none;
}



@keyframes loaderIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes loaderLine {
  from { width: 0; }
  to   { width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__carousel {
    min-height: 52vh;
  }

  .section-title,
  .gifts {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .nav {
    min-height: 62px;
  }

  .nav__links {
    gap: 8px;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .hero h2 {
    font-size: 4.35rem;
  }

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

  .detail-grid article,
  .detail-grid article + article {
    min-height: auto;
    border-left: 0;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .guest-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .diet-options {
    display: grid;
    gap: 12px;
  }

  .hero__cta,
  .registry {
    justify-self: start;
    width: auto;
  }
}
