:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --paper-warm: #f4f1e9;
  --ink: #30342f;
  --muted: #676c61;
  --mist: #dee5df;
  --sage: #7e8d68;
  --olive: #566044;
  --rose: #9d6f69;
  --clay: #a9684f;
  --line: rgba(48, 52, 47, 0.15);
  --shadow: rgba(29, 34, 30, 0.18);
  --serif: Garamond, "Palatino Linotype", "Times New Roman", serif;
  --script: "Palace Script MT", "Edwardian Script ITC", "Vladimir Script", "Segoe Script", cursive;
  --arabic: "Aldhabi", "Arabic Typesetting", "Sakkal Majalla", "Traditional Arabic", Arial, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  overflow-x: hidden;
}

body.lang-ar {
  direction: rtl;
}

body.lang-ar .language-control,
body.lang-ar .brand {
  direction: ltr;
}

body.lang-ar .section-copy,
body.lang-ar .detail-list,
body.lang-ar .timeline {
  direction: rtl;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  width: 54px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--olive);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.language-control {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.lang-button {
  min-width: 42px;
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-button:last-child {
  border-right: 0;
}

.lang-button.is-active {
  background: var(--olive);
  color: #fffdf8;
}

.hero {
  min-height: calc(100svh - 150px);
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(84px, 12vw, 140px) clamp(22px, 7vw, 96px) clamp(80px, 8vw, 120px);
  overflow: hidden;
  color: #fffdf8;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(23, 31, 27, 0.38);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 52%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: currentColor;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(82px, 12vw, 154px);
  font-weight: 400;
  line-height: 0.86;
}

.arabic-names {
  margin: 12px 0 24px;
  font-family: var(--arabic);
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.05;
}

.hero-date,
.hero-place,
.hero-note {
  margin: 0;
  font-weight: 700;
  line-height: 1.42;
}

.hero-date {
  font-size: clamp(22px, 3vw, 34px);
}

.hero-place {
  margin-top: 10px;
  font-size: clamp(16px, 2vw, 22px);
}

.hero-note {
  max-width: 520px;
  margin-top: 26px;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(16px, 1.6vw, 20px);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 5vw, 72px);
  bottom: 24px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 42px;
  margin: 12px auto 0;
  background: rgba(255, 253, 248, 0.55);
}

.section {
  position: relative;
  padding: clamp(76px, 10vw, 126px) clamp(22px, 5vw, 72px);
}

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

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

.venue-section {
  background: var(--mist);
}

.travel-section {
  background: #f7f2ef;
}

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

.intro-layout,
.venue-layout,
.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(38px, 8vw, 96px);
  align-items: center;
}

.venue-layout {
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
}

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

.section-copy.narrow {
  max-width: 760px;
}

.section-label {
  color: var(--clay);
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.02;
}

.section p {
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
}

.detail-list {
  margin: 0;
  display: grid;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-list div {
  display: grid;
  gap: 8px;
}

.detail-list dt {
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.25;
}

.venue-photo {
  margin: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow);
}

.venue-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 52% 50%;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
}

.timeline-item {
  min-height: 180px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 253, 248, 0.72);
}

.timeline-item span {
  display: block;
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.45;
}

.date-mark {
  justify-self: end;
  width: min(280px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--olive);
}

.date-mark span {
  display: block;
  font-size: clamp(84px, 12vw, 138px);
  line-height: 0.8;
}

.date-mark small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-footer {
  padding: 28px clamp(22px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 253, 248, 0.78);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.lang-ar .hero-copy,
body.lang-ar .section-copy,
body.lang-ar .detail-list,
body.lang-ar .timeline {
  font-family: var(--arabic);
}

body.lang-ar .hero h1,
body.lang-ar .arabic-names {
  font-family: var(--arabic);
}

body.lang-ar .hero h1 {
  font-size: clamp(58px, 9vw, 118px);
  line-height: 1.05;
}

body.lang-ar .arabic-names {
  display: none;
}

body.lang-ar .eyebrow,
body.lang-ar .section-label,
body.lang-ar .timeline-item span,
body.lang-ar .detail-list dt {
  letter-spacing: 0;
}

body.lang-ar .site-footer p {
  letter-spacing: 0;
}

@media (max-width: 860px) {
  .site-header {
    display: block;
    padding: 12px 18px 10px;
  }

  .brand {
    display: grid;
  }

  .nav-links {
    width: 100%;
    min-width: 0;
    margin-top: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .language-control {
    position: static;
    width: max-content;
    margin-top: 10px;
  }

  .hero {
    min-height: 500px;
    height: 58svh;
    padding-top: 56px;
    padding-bottom: 56px;
    align-items: end;
  }

  .hero::before {
    background: rgba(22, 28, 24, 0.46);
  }

  .scroll-cue {
    display: none;
  }

  .intro-layout,
  .venue-layout,
  .rsvp-layout,
  .timeline {
    grid-template-columns: 1fr;
  }

  .venue-photo {
    order: 2;
  }

  .date-mark {
    justify-self: start;
    width: min(220px, 72vw);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

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

  .brand {
    width: 48px;
    height: 42px;
  }

  .lang-button {
    min-width: 38px;
    min-height: 36px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    min-height: calc(100svh - 132px);
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: clamp(56px, 15vw, 76px);
  }

  .arabic-names {
    font-size: clamp(34px, 11vw, 48px);
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .timeline-item {
    min-height: auto;
  }
}
