:root {
  --paper: #f9f8f2;
  --cream: #fffaf0;
  --ink: #3f403c;
  --muted: #6f706a;
  --line: #d8d1c4;
  --sage: #65755f;
  --sage-dark: #425640;
  --mist: #d6ddd2;
  --dusty-blue: #6f8799;
  --dusty-blue-dark: #526b7e;
  --pale-blue: #dce8ee;
  --rose: #a16d68;
  --clay: #8b6f5f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(63, 64, 60, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(249, 248, 242, 0.92);
  border-bottom: 1px solid rgba(216, 209, 196, 0.78);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px 5vw;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.brand,
h1,
h2,
h3,
.footer-names {
  font-family: "Cormorant Infant", Garamond, Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.brand {
  font-size: 1.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
}

.desktop-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  border-color: var(--sage);
}

.menu-toggle {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  position: absolute;
  width: 18px;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.mobile-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  left: 0;
  padding: 18px 5vw 24px;
  position: absolute;
  right: 0;
  top: 73px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 14px;
}

.hero {
  align-items: center;
  background: var(--paper);
  display: grid;
  isolation: isolate;
  min-height: 84svh;
  overflow: hidden;
  padding: 110px 5vw 70px;
  position: relative;
}

.hero::after {
  display: none;
}

.hero-collage {
  border: 1px solid rgba(216, 209, 196, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(5, minmax(0, 1fr));
  inset: clamp(18px, 4vw, 48px) auto;
  left: 50%;
  max-width: 1180px;
  overflow: hidden;
  position: absolute;
  transform: translateX(-50%);
  width: min(90vw, 1180px);
  z-index: 0;
}

.hero-collage img {
  filter: none;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-collage img:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  object-position: 30% 30%;
}

.hero-collage img:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 4 / 6;
  object-position: center 27%;
}

.hero-collage img:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 3 / 6;
  object-position: 40% center;
}

.hero-collage img:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  object-position: center 24%;
}

.hero-content {
  background: rgba(255, 253, 247, 0.36);
  backdrop-filter: blur(8px) saturate(1.03);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(63, 64, 60, 0.12);
  color: var(--ink);
  margin: 0 auto;
  max-width: 380px;
  padding: clamp(12px, 1.6vw, 18px);
  position: relative;
  text-align: center;
  text-shadow: none;
  transform: translateY(-12%);
  width: min(62vw, 380px);
  z-index: 1;
}

.eyebrow {
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--dusty-blue-dark);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

h1 {
  font-size: 5.7rem;
  margin: 0;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.5rem);
}

.hero-date {
  font-size: 1.1rem;
  margin: 10px 0 0;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  min-width: 150px;
  padding: 12px 22px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--dusty-blue);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--dusty-blue-dark);
}

.quick-info {
  align-items: center;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  padding: 30px 5vw;
}

.quick-info h2 {
  font-size: 2.15rem;
  margin: 0;
}

.countdown {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
}

.countdown div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 88px;
  padding: 13px 10px;
  text-align: center;
}

.countdown strong {
  display: block;
  font-family: "Cormorant Infant", Garamond, Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  margin-top: 8px;
  text-transform: uppercase;
}

.section {
  padding: 92px 5vw;
  position: relative;
}

.section-heading {
  margin: 0 auto 44px;
  max-width: 760px;
  text-align: center;
}

.section-heading h2 {
  font-size: 3.7rem;
  margin: 0 0 18px;
}

.section-heading p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.details-section {
  overflow: hidden;
}

.decor {
  left: 0;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
  width: 100%;
}

.decor-top {
  top: 0;
}

.decor-bottom {
  bottom: 0;
}

.details-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
  position: relative;
  z-index: 1;
}

.detail-card,
.hotel-card,
.rsvp-panel {
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-card {
  min-height: 300px;
  padding: 30px;
}

.card-kicker {
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.detail-card h3,
.hotel-card h3 {
  font-size: 2rem;
  margin: 0 0 18px;
}

address {
  font-style: normal;
}

.text-link {
  border-bottom: 2px solid var(--sage);
  color: var(--sage-dark);
  display: inline-block;
  font-weight: 700;
  margin-top: 12px;
  text-decoration: none;
}

.travel-section {
  background: var(--pale-blue);
}

.travel-layout {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  margin: 0 auto;
  max-width: 1120px;
}

.travel-copy {
  margin: 0;
  text-align: left;
}

.hotel-card {
  background: rgba(244, 249, 252, 0.96);
  border-color: rgba(111, 135, 153, 0.32);
  padding: 34px;
}

.code-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.code-list div {
  align-items: center;
  border-top: 1px solid rgba(101, 117, 95, 0.24);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 12px;
}

.code-list dt {
  color: var(--muted);
}

.code-list dd {
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.hotel-policies {
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.65;
  margin: -4px 0 24px;
}

.hotel-policies p {
  margin: 0;
}

.hotel-policies strong {
  color: var(--ink);
}

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

.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--cream);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
  width: 100%;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.06);
  transform: scale(1.035);
}

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

.rsvp-panel {
  margin: 0 auto;
  max-width: 820px;
  padding: 46px;
  text-align: center;
}

.rsvp-panel h2 {
  font-size: 3rem;
  margin: 0 0 18px;
}

.rsvp-panel p:last-child {
  color: var(--muted);
  margin: 0;
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  display: grid;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.site-footer img {
  aspect-ratio: 16 / 7;
  filter: saturate(0.9) brightness(0.72);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.footer-copy {
  align-self: center;
  justify-self: center;
  padding: 40px 5vw;
  position: absolute;
}

.footer-names {
  font-size: 3.4rem;
  margin: 0 0 10px;
}

.footer-copy p:last-child {
  margin: 0;
}

.lightbox {
  align-items: center;
  background: rgba(24, 26, 22, 0.92);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 70px 74px;
  position: fixed;
  z-index: 50;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  max-height: 82svh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  align-items: center;
  background: var(--cream);
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 1.8rem;
  height: 48px;
  justify-content: center;
  position: fixed;
  width: 48px;
}

.lightbox-close {
  right: 24px;
  top: 24px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  h1 {
    font-size: 4.1rem;
  }

  .quick-info,
  .travel-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-card {
    min-height: 0;
  }

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

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

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

  .brand {
    font-size: 1.45rem;
  }

  .mobile-nav {
    top: 67px;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 18px 5vw;
  }

  .hero-collage {
    height: 90vw;
    aspect-ratio: 1;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    inset: auto;
    left: auto;
    position: relative;
    transform: none;
    width: 100%;
  }

  .hero-collage img {
    min-height: 0;
    min-width: 0;
  }

  .hero-collage img:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    object-position: center;
  }

  .hero-collage img:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    object-position: center;
  }

  .hero-collage img:nth-child(3) {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    object-position: center;
  }

  .hero-collage img:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    object-position: center;
  }

  .hero-content {
    align-content: center;
    aspect-ratio: 1;
    background: rgba(255, 253, 247, 0.9);
    display: grid;
    left: 50%;
    padding: 6px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc((90vw - 8px) / 3);
  }

  h1 {
    font-size: 3.15rem;
  }

  .hero-content h1 {
    font-size: clamp(1.3rem, 5.8vw, 1.65rem);
    line-height: 0.95;
  }

  .hero-date {
    font-size: 0.72rem;
    line-height: 1.25;
    margin-top: 5px;
  }

  .button {
    width: 100%;
  }

  .quick-info {
    padding: 26px 6vw;
  }

  .quick-info h2,
  .detail-card h3,
  .hotel-card h3 {
    font-size: 1.8rem;
  }

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

  .countdown div {
    min-height: 78px;
  }

  .section {
    padding: 70px 6vw;
  }

  .section-heading h2,
  .rsvp-panel h2 {
    font-size: 2.45rem;
  }

  .detail-card,
  .hotel-card,
  .rsvp-panel {
    padding: 26px;
  }

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

  .site-footer img {
    aspect-ratio: 1 / 1;
  }

  .footer-names {
    font-size: 2.35rem;
  }

  .lightbox {
    padding: 68px 16px;
  }

  .lightbox-close,
  .lightbox-nav {
    height: 42px;
    width: 42px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
