:root {
  --white: #fffefa;
  --paper: #f8f6ef;
  --sage-50: #eef3eb;
  --sage-100: #dfe8da;
  --sage-300: #b7c5ad;
  --sage-600: #6f7f66;
  --sage-800: #34402f;
  --ink: #171916;
  --muted: #66685f;
  --gold: #b88a34;
  --gold-soft: #d7bd7b;
  --line: rgba(52, 64, 47, 0.16);
  --shadow: 0 24px 60px rgba(36, 43, 31, 0.12);
  --radius: 8px;
  --leaf-bg: none;
  color-scheme: light;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.skip-link:focus {
  z-index: 100;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

body.is-auth-locked {
  min-height: 100svh;
  overflow: hidden;
}

body.is-auth-locked .skip-link,
body.is-auth-locked .site-header,
body.is-auth-locked main,
body.is-auth-locked .site-footer {
  visibility: hidden;
  pointer-events: none;
}

.auth-gate {
  display: none;
}

body.is-auth-locked .auth-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: clamp(1rem, 4vw, 3rem);
  place-items: center;
  overflow: auto;
  background:
    linear-gradient(rgba(255, 254, 250, 0.88), rgba(248, 246, 239, 0.92)),
    var(--leaf-bg),
    var(--paper);
  background-position: center;
  background-size: cover;
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  width: min(480px, 100%);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: rgba(255, 254, 250, 0.94);
  border: 1px solid rgba(184, 138, 52, 0.32);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.auth-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.auth-card__logo {
  width: 104px;
  height: auto;
  margin-bottom: 0;
}

.lang-toggle-wrap {
  display: inline-flex;
}

.auth-card__title {
  font-size: clamp(2.3rem, 8vw, 4.2rem);
}

.auth-card__text {
  margin: 1rem 0 1.4rem;
  color: var(--muted);
}

.auth-card.is-loading .section-kicker,
.auth-card.is-loading .auth-card__title,
.auth-card.is-loading .auth-card__text,
.auth-card.is-loading .auth-card__form {
  display: none;
}

.auth-card__loading {
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-height: 154px;
  padding: 1.2rem 0 0.2rem;
  color: var(--muted);
  text-align: center;
}

.auth-card__loading[hidden] {
  display: none;
}

.auth-card__loading p {
  margin: 0;
}

.auth-card__spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(52, 64, 47, 0.14);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: auth-spin 900ms linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-card__form {
  display: grid;
  gap: 0.65rem;
}

.auth-card__form label {
  color: var(--sage-800);
  font-weight: 700;
}

.auth-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.auth-card__row input {
  min-width: 0;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-card__row button {
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  background: var(--sage-800);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.auth-card__row button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-card__error {
  min-height: 1.5rem;
  margin: 0;
  color: #8a2c22;
  font-size: 0.95rem;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 254, 250, 0.88);
  border-bottom: 1px solid rgba(52, 64, 47, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 88px;
}

.brand__logo {
  width: 86px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.8vw, 1.45rem);
  margin-left: auto;
  color: var(--sage-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sage-800);
  background: rgba(255, 254, 250, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle--header {
  margin-left: clamp(0.6rem, 1.5vw, 1.2rem);
}

.lang-toggle__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.55rem;
  color: var(--muted);
  border-radius: 999px;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.lang-toggle__option--active {
  color: var(--white);
  background: var(--sage-800);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--sage-800);
}

.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

.hero__media {
  overflow: hidden;
  background: var(--sage-50);
}

.hero__media img {
  width: 100%;
  height: auto;
}

.parking-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  max-width: 640px;
  padding: clamp(1.2rem, 3vw, 3rem);
  color: var(--ink);
  background: rgba(255, 254, 250, 0.82);
  border-left: 1px solid rgba(184, 138, 52, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.hero-details {
  min-height: min(760px, 92svh);
  display: flex;
  align-items: center;
}

.hero-details .section__inner {
  display: flex;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--sage-800);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  font-size: clamp(4rem, 11vw, 9rem);
}

.hero__names {
  line-height: 0;
}

.hero__names-image {
  width: min(100%, 620px);
  height: auto;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h3 {
  margin: 0 0 0.45rem;
  color: var(--sage-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
}

.hero__intro {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.6rem, 5vw, 3rem);
  background: var(--line);
  border: 1px solid var(--line);
}

.hero__facts article {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: rgba(255, 254, 250, 0.88);
}

.hero__facts span,
.hero__facts small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero__facts strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.2;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem);
  background: var(--white);
}

.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section--intro {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--sage-50);
}

.intro-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 1fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: end;
}

.intro-card p:last-child {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.split-section {
  padding-bottom: 0;
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.split-grid p,
.section-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.parking-card {
  overflow: hidden;
  background: rgba(255, 254, 250, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.parking-card > div:last-child {
  padding: 1.3rem;
}

.parking-card__image {
  height: 260px;
}

.image-placeholder {
  display: grid;
  width: 100%;
  min-height: 100%;
  place-items: center;
  color: rgba(52, 64, 47, 0.68);
  background:
    linear-gradient(135deg, rgba(223, 232, 218, 0.86), rgba(255, 254, 250, 0.88)),
    repeating-linear-gradient(
      -45deg,
      rgba(184, 138, 52, 0.12) 0,
      rgba(184, 138, 52, 0.12) 1px,
      transparent 1px,
      transparent 16px
    );
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.image-placeholder--hero {
  min-height: 100%;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.map-wrap {
  width: min(1120px, calc(100% - 2rem));
  height: clamp(320px, 45vw, 520px);
  margin: clamp(2rem, 6vw, 4rem) auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.parallax-band {
  background:
    linear-gradient(rgba(248, 246, 239, 0.86), rgba(248, 246, 239, 0.9)),
    var(--leaf-bg),
    var(--paper);
  background-attachment: scroll, fixed, scroll;
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(76px, 0.18fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.dress-section {
  background: linear-gradient(180deg, var(--white), var(--sage-50));
}

.dress-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 1fr);
  gap: clamp(1.6rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: rgba(255, 254, 250, 0.92);
  border: 1px solid rgba(184, 138, 52, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dress-panel .section-lead {
  margin: 0;
  color: var(--ink);
}

.hotel-grid,
.photo-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.info-card,
.photo-card,
.contact-card {
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  background: rgba(255, 254, 250, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-section {
  background: linear-gradient(180deg, var(--sage-50), var(--white));
}

.photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.muted,
.info-card p,
.photo-card p,
.contact-card p {
  color: var(--muted);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: rgba(184, 138, 52, 0.28);
  border: 1px solid rgba(184, 138, 52, 0.28);
}

.countdown article {
  min-width: 0;
  padding: 0.85rem 0.7rem;
  text-align: center;
  background: rgba(255, 254, 250, 0.84);
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  color: var(--sage-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1;
}

.countdown span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.countdown__note {
  margin: 0.7rem 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.contact-section {
  background: var(--white);
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card__role {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.contact-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.contact-card__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  color: var(--sage-800);
  text-decoration: none;
  background: var(--sage-50);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.text-link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.5rem;
  color: var(--sage-800);
  font-weight: 700;
  text-decoration-color: rgba(184, 138, 52, 0.55);
  text-underline-offset: 0.24em;
}

.button-link {
  min-width: 132px;
  padding: 0.72rem 1rem;
  color: var(--white);
  text-decoration: none;
  background: var(--sage-800);
  border-radius: 999px;
}

.button-link--disabled {
  color: var(--sage-800);
  background: var(--sage-100);
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 88px;
  opacity: 0.86;
}

.site-footer p {
  margin: 0;
}

.site-footer__credit {
  font-size: 0.9rem;
}

.site-footer__credit a {
  color: var(--muted);
  text-decoration-color: rgba(184, 138, 52, 0.55);
  text-underline-offset: 0.24em;
}

@media (max-width: 1040px) {
  .site-header {
    min-height: 70px;
  }

  .brand__logo {
    width: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    visibility: hidden;
    background: rgba(255, 254, 250, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.8rem;
  }

  .intro-card,
  .split-grid,
  .dress-panel,
  .hotel-grid,
  .photo-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    width: min(100%, 620px);
  }

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

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(3.5rem, 22vw, 5.6rem);
  }

  h2 {
    font-size: clamp(2rem, 13vw, 3.1rem);
  }

  .section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .map-wrap {
    width: calc(100% - 2rem);
  }

  .hero__content {
    padding: 0.9rem;
  }

  .auth-card__row {
    grid-template-columns: 1fr;
  }
}

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

  .hero,
  .parallax-band {
    background-attachment: scroll;
  }
}
