
:root {
  --ink: #232323;
  --muted: #6e6a63;
  --paper: #fbfaf7;
  --linen: #f1ece4;
  --sage: #6f7f6a;
  --clay: #b4775f;
  --wine: #733b48;
  --line: rgba(35, 35, 35, 0.14);
  --shadow: 0 18px 60px rgba(35, 35, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

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

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

a {
  color: inherit;
}

.language-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.language-gate {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 6vw, 86px);
  color: #fff;
}

.language-collage,
.language-shade {
  position: absolute;
  inset: 0;
}

.language-collage {
  overflow: hidden;
  background: var(--linen);
}

.language-collage-photo {
  position: absolute;
  width: 31vw;
  min-width: 310px;
  height: 34vh;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 54px rgba(35, 35, 35, 0.18);
}

.language-collage-photo-1 {
  top: 4vh;
  left: 4vw;
  width: 34vw;
  height: 38vh;
  object-position: 22% 44%;
}

.language-collage-photo-2 {
  top: 4vh;
  right: 4vw;
  width: 34vw;
  height: 38vh;
  object-position: 50% 42%;
}

.language-collage-photo-3 {
  left: 42vw;
  bottom: 2vh;
  width: 30vw;
  height: 30vh;
  object-position: center 34%;
}

.language-collage-photo-4 {
  bottom: 7vh;
  left: 4vw;
  width: 30vw;
  height: 34vh;
  object-position: 34% center;
}

.language-collage-photo-5 {
  top: 36vh;
  left: 0;
  width: 24vw;
  height: 34vh;
  object-position: 78% center;
}

.language-collage-photo-6 {
  top: 38vh;
  right: 0;
  width: 36vw;
  height: 20vw;
  min-height: 220px;
  object-position: center;
}

.language-shade {
  background:
    radial-gradient(circle at 50% 50%, rgba(251, 250, 247, 0.28), rgba(251, 250, 247, 0.78) 54%, rgba(35, 35, 35, 0.24) 100%),
    linear-gradient(180deg, rgba(35, 35, 35, 0.06), rgba(35, 35, 35, 0.18));
}

.language-panel {
  position: relative;
  width: min(920px, 100%);
  padding: clamp(30px, 6vw, 64px);
  background: rgba(251, 250, 247, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.language-panel h1 {
  max-width: none;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(58px, 11vw, 126px);
}

.language-intro {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.language-card {
  display: grid;
  place-items: center;
  min-height: 154px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.language-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(35, 35, 35, 0.12);
}

.flag {
  display: block;
  font-size: 48px;
  line-height: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(251, 250, 247, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.mobile-nav {
  display: none;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(22px, 6vw, 86px) 72px;
  color: #fff;
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.56));
}

.hero-content {
  position: relative;
  max-width: 860px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(68px, 13vw, 156px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 86px);
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-date {
  margin-bottom: 28px;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
}

.primary-link,
.rsvp-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  padding: 0 24px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.section {
  padding: clamp(72px, 9vw, 130px) clamp(22px, 6vw, 86px);
}

.intro-grid,
.rsvp-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.intro-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.photo-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(22px, 6vw, 86px) clamp(72px, 9vw, 120px);
  background: var(--paper);
}

.photo-story img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.photo-story img:nth-child(1) {
  object-position: center 42%;
}

.photo-story img:nth-child(2) {
  object-position: center;
}

.photo-story img:nth-child(3) {
  object-position: center 45%;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 620px;
  background: var(--linen);
}

.text-only-feature {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
}

.text-only-feature .feature-text {
  max-width: 980px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.feature-text {
  align-self: center;
  padding: clamp(46px, 7vw, 96px);
}

.feature-text p:last-child {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--wine);
  font-weight: 800;
}

.timeline-item p,
.location-panel p,
.info-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.locations {
  background: #ffffff;
}

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

.single-location {
  grid-template-columns: minmax(0, 1fr);
}

.location-panel {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 310px;
  border: 1px solid var(--line);
  background: var(--paper);
}

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

.location-panel div {
  align-self: center;
  padding: 28px;
}

.location-panel a {
  display: inline-block;
  margin-top: 20px;
  color: var(--wine);
  font-weight: 800;
}

.gallery-section {
  padding: clamp(72px, 9vw, 130px) clamp(22px, 6vw, 86px);
  background: var(--sage);
  color: #fff;
}

.gallery-section .section-kicker {
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(170px, 16vw, 280px);
  gap: 12px;
}

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

.gallery img:nth-child(1),
.gallery img:nth-child(4) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery img:nth-child(2),
.gallery img:nth-child(3),
.gallery img:nth-child(5),
.gallery img:nth-child(6) {
  grid-column: span 2;
}

.rsvp-section {
  background: var(--paper);
}

.rsvp-copy {
  max-width: 650px;
}

.rsvp-copy p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  box-shadow: var(--shadow);
}

.rsvp-side {
  display: grid;
  gap: 18px;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

.checkbox-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}

.info-section {
  background: #fff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.info-grid article {
  min-height: 210px;
  background: #fff;
  padding: 30px;
}

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

.gallery-section .section-heading p:not(.section-kicker) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.light-link {
  margin-top: 10px;
  background: #fff;
  color: var(--ink);
}

.gift-section {
  background: var(--linen);
}

.gift-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}

.gift-section .section-heading p:not(.section-kicker) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.bank-intro {
  margin-top: 28px;
  color: var(--wine) !important;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.bank-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.bank-details div {
  min-height: 128px;
  background: #fff;
  padding: 24px;
}

.bank-details dt {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.bank-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gift-photo {
  margin: 0;
}

.gift-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(22px, 6vw, 86px);
  background: var(--ink);
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 74px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 64px;
    padding: 11px 16px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 8px 22px 24px;
    background: rgba(251, 250, 247, 0.98);
    color: var(--ink);
    box-shadow: 0 20px 30px rgba(35, 35, 35, 0.1);
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .mobile-nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a::after {
    display: none;
  }

  .hero {
    min-height: min(88svh, 620px);
    padding: 104px 22px 46px;
  }

  .hero-photo {
    object-position: 72% center;
  }

  h1 {
    font-size: clamp(58px, 18vw, 96px);
  }

  h2 {
    font-size: clamp(36px, 12vw, 58px);
  }

  .section,
  .gallery-section {
    padding: 66px 22px;
  }

  .language-gate {
    align-items: end;
    padding: 18px;
  }

  .language-collage-photo {
    min-width: 0;
    min-height: 0;
    box-shadow: 0 12px 30px rgba(35, 35, 35, 0.16);
  }

  .language-collage-photo-1 {
    top: 0;
    left: 0;
    width: 58vw;
    height: 33vh;
    object-position: 24% 45%;
  }

  .language-collage-photo-2 {
    top: 0;
    right: 0;
    width: 48vw;
    height: 28vh;
    object-position: 50% 42%;
  }

  .language-collage-photo-3 {
    right: 0;
    bottom: 0;
    width: 56vw;
    height: 25vh;
    object-position: center 34%;
  }

  .language-collage-photo-4 {
    bottom: 0;
    left: 0;
    width: 52vw;
    height: 27vh;
    object-position: 34% center;
  }

  .language-collage-photo-5,
  .language-collage-photo-6 {
    display: none;
  }

  .language-shade {
    background:
      linear-gradient(180deg, rgba(241, 236, 228, 0.28), rgba(241, 236, 228, 0.84) 44%, rgba(241, 236, 228, 0.94)),
      linear-gradient(90deg, rgba(35, 35, 35, 0.12), rgba(35, 35, 35, 0));
  }

  .language-panel {
    padding: 28px 20px;
  }

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

  .language-card {
    min-height: 126px;
    font-size: 16px;
  }

  .intro-grid,
  .feature-band,
  .photo-story,
  .rsvp-section,
  .location-grid,
  .gift-layout,
  .info-grid,
  .bank-details,
  .logistics-grid {
    grid-template-columns: 1fr;
  }

  .photo-story {
    padding-bottom: 66px;
  }

  .photo-story img {
    height: min(72vw, 360px);
  }

  .location-panel {
    grid-template-columns: 1fr;
  }

  .location-panel img {
    height: 280px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(180px, 44vw);
  }

  .gallery img:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gift-photo img {
    height: auto;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 560px) {
  .language-panel h1 {
    font-size: 56px;
  }

  .flag {
    font-size: 40px;
  }

  .brand span:last-child {
    max-width: 170px;
    white-space: normal;
    line-height: 1.1;
  }

  .hero {
    min-height: min(86vh, 600px);
    padding-bottom: 44px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}

