:root {
  --bg: #fbfaf9;
  --soft: #f6f4f1;
  --ink: #141414;
  --muted: #666666;
  --line: #e7e2dc;
  --dark: #151515;
  --white: #ffffff;
  --display: "Playfair Display", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

img,
svg {
  display: block;
}

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

.locked {
  overflow: hidden;
}

.site[aria-hidden="true"] {
  display: none;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  transition: opacity 650ms ease, visibility 650ms ease;
}

.gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-rail {
  width: 108px;
  min-height: 100svh;
  padding: 8px 0 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gate-monogram {
  color: #070707;
  font-family: var(--display);
  font-size: 35px;
  line-height: 1.04;
}

.gate-monogram span {
  display: block;
}

.gate-monogram .amp {
  color: #b8b8b8;
  font-style: italic;
  font-size: 33px;
}

.gate-date {
  margin: 12px 0 0;
  color: #555;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.gate-line {
  width: 32px;
  height: 1px;
  margin-top: 96px;
  background: #bfbab5;
}

.gate-note {
  width: 58px;
  margin: 52px 0 0;
  color: #5f5f5f;
  font-family: var(--body);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
}

.gate-form {
  margin-top: auto;
  width: 76px;
}

.gate-password {
  width: 190px;
  height: 0;
  opacity: 0;
  padding: 0 0;
  border: 0;
  border-bottom: 1px solid #242424;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  outline: none;
  pointer-events: none;
  transform: translateY(8px);
  transition: height 240ms ease, opacity 240ms ease, transform 240ms ease, margin 240ms ease;
}

.gate-form.revealed .gate-password {
  height: 30px;
  opacity: 1;
  margin-bottom: 14px;
  pointer-events: auto;
  transform: translateY(0);
}

.gate-password::placeholder {
  color: #9a9692;
}

.gate-submit {
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.gate-error {
  width: 190px;
  min-height: 28px;
  margin: 10px 0 0;
  color: #7d1f1f;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.35;
}

.site {
  min-height: 100svh;
  background: var(--bg);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.site-header.solid,
.site-header.menu-open {
  color: var(--ink);
  background: rgba(251, 250, 249, 0.95);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 1px 16px rgba(20, 20, 20, 0.03);
  backdrop-filter: blur(16px);
}

.brand {
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 4px;
  line-height: 1;
}

.brand span {
  color: currentColor;
  opacity: 0.65;
  font-style: italic;
}

.desktop-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav button,
.footer-nav button {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 180ms ease;
}

.desktop-nav button:hover,
.footer-nav button:hover,
.back-top:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 1px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  z-index: 55;
  display: none;
  padding: 18px 24px 26px;
  background: rgba(251, 250, 249, 0.98);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.mobile-menu.open {
  display: grid;
  gap: 16px;
}

.mobile-menu button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-align: left;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 680px;
  height: 100svh;
  overflow: hidden;
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 51%;
  width: min(900px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  animation: heroFade 1100ms ease 220ms forwards;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translate(-50%, -46%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 96px;
  font-weight: 400;
  line-height: 1;
}

.hero h1 span,
.closing h2 span {
  opacity: 0.68;
  font-style: italic;
}

.hairline {
  display: block;
  width: 48px;
  height: 1px;
  margin: 24px auto;
  background: rgba(20, 20, 20, 0.11);
}

.light-line {
  background: rgba(255, 255, 255, 0.18);
}

.date-line {
  margin: 0;
  color: rgba(20, 20, 20, 0.55);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.date-line.light,
.hero .date-line {
  color: rgba(255, 255, 255, 0.5);
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
  margin: 16px auto 38px;
}

.countdown div {
  min-width: 54px;
  text-align: center;
}

.countdown span {
  display: block;
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.05;
}

.countdown small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.63);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.countdown i {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--display);
  font-style: normal;
  font-size: 20px;
}

.hero-actions,
.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 13px 30px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.6px;
  line-height: 1;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 36px;
  height: 36px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
}

.scroll-cue svg {
  width: 22px;
  height: 22px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section,
.soft-section {
  padding: 144px 24px;
}

.soft-section {
  background: var(--soft);
}

.wide {
  max-width: 1024px;
  margin: 0 auto;
}

.medium {
  max-width: 896px;
  margin: 0 auto;
}

.narrow {
  max-width: 672px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

.quote,
.section-intro {
  margin: 0 auto;
  color: rgba(20, 20, 20, 0.7);
  font-family: var(--body);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.small-label {
  margin: 34px 0 28px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3.7px;
  text-transform: uppercase;
}

.small-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.small-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-heading {
  margin-bottom: 110px;
}

.section-heading h2,
.location h2,
.gifts h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.section-heading .section-intro {
  max-width: 576px;
  margin-top: 58px;
  color: var(--muted);
  font-size: 18px;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 640px;
}

.timeline-item.reverse .timeline-photo {
  order: 2;
}

.timeline-item.reverse .timeline-copy {
  order: 1;
}

.timeline-photo {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.timeline-copy {
  max-width: 480px;
}

.timeline-copy .year {
  display: block;
  color: rgba(20, 20, 20, 0.09);
  font-family: var(--display);
  font-size: 72px;
  line-height: 1;
}

.timeline-copy h3 {
  margin: 8px 0 0;
  color: rgba(20, 20, 20, 0.88);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}

.mini-line {
  display: block;
  width: 32px;
  height: 1px;
  margin: 18px 0 22px;
  background: var(--line);
}

.timeline-copy p {
  margin: 0;
  color: var(--muted);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
}

.dark-section {
  background: var(--dark);
  color: var(--bg);
}

.dark-section .eyebrow,
.dark-section .date-line {
  color: rgba(251, 250, 249, 0.45);
}

.dark-section h2,
.dark-section h3 {
  color: var(--bg);
}

.light-copy {
  max-width: 512px;
  color: rgba(251, 250, 249, 0.68);
}

.location .section-intro {
  margin-top: 62px;
}

.pin {
  width: 24px;
  height: 24px;
  margin: 66px auto 18px;
  fill: none;
  stroke: rgba(251, 250, 249, 0.45);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
}

.address {
  margin: 0 0 22px;
  color: rgba(251, 250, 249, 0.62);
  font-family: var(--body);
  font-size: 16px;
}

.map {
  width: 100%;
  height: 280px;
  margin: 48px 0 28px;
  border: 0;
  filter: grayscale(1) contrast(0.9) brightness(1.12);
}

.schedule .section-heading {
  margin-bottom: 74px;
}

.schedule-list {
  max-width: 768px;
  margin: 0 auto;
}

.schedule-item {
  min-height: 105px;
  display: grid;
  grid-template-columns: 110px 84px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(20, 20, 20, 0.07);
}

.schedule-item .time {
  color: rgba(20, 20, 20, 0.28);
  font-family: var(--display);
  font-size: 30px;
}

.icon-circle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 50%;
  color: rgba(20, 20, 20, 0.26);
  font-family: var(--body);
  font-size: 18px;
}

.schedule-item p {
  margin: 0;
  color: rgba(20, 20, 20, 0.68);
  font-family: var(--body);
  font-size: 19px;
}

.form-wrap {
  max-width: 576px;
  margin: 0 auto;
}

.rsvp .section-heading {
  margin-bottom: 56px;
}

.deadline {
  margin: 18px 0 0;
  color: rgba(102, 102, 102, 0.72);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.4px;
}

.rsvp-form {
  display: grid;
  gap: 22px;
}

.rsvp-form label,
.rsvp-form legend {
  color: rgba(20, 20, 20, 0.62);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(20, 20, 20, 0.07);
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: 0;
  outline: none;
}

.rsvp-form input {
  height: 48px;
  padding: 0 13px;
}

.rsvp-form textarea {
  min-height: 80px;
  padding: 12px 13px;
  resize: vertical;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: rgba(102, 102, 102, 0.55);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rsvp-form fieldset {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
}

.rsvp-form legend {
  width: 100%;
  margin-bottom: 12px;
  text-align: center;
}

.presence-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.presence {
  min-height: 43px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.presence.active {
  border-color: rgba(20, 20, 20, 0.7);
  background: var(--white);
}

.submit-rsvp {
  width: 100%;
  margin-top: 2px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-family: var(--body);
  font-size: 17px;
  text-align: center;
}

.gifts .section-intro {
  margin-top: 62px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 86px;
}

.gift-card {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 28px;
  border: 1px solid rgba(251, 250, 249, 0.08);
  color: var(--bg);
}

.gift-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
}

.gift-card p {
  min-height: 32px;
  margin: 0 0 24px;
  color: rgba(251, 250, 249, 0.48);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1.5;
}

.gift-card a {
  width: 100%;
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border: 1px solid rgba(251, 250, 249, 0.2);
  color: rgba(251, 250, 249, 0.9);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery-wrap {
  max-width: 1152px;
  margin: 0 auto;
}

.gallery .section-heading {
  margin-bottom: 42px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-grid figure {
  height: 320px;
  margin: 0;
  overflow: hidden;
}

.photo-grid .wide-photo {
  grid-column: span 2;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 700ms ease, transform 700ms ease;
}

.photo-grid figure:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.closing {
  padding-top: 160px;
  padding-bottom: 160px;
}

.closing .quote {
  max-width: 576px;
  font-size: 18px;
}

.closing .second {
  margin-top: 24px;
}

.closing h2 {
  margin: 42px 0 10px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 1px;
}

.site-footer {
  padding: 64px 24px;
  background: var(--ink);
  color: var(--bg);
}

.footer-brand {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 5px;
}

.footer-date {
  margin: 0 0 36px;
  color: rgba(251, 250, 249, 0.4);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
}

.footer-nav {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 68px;
}

.footer-nav button {
  color: rgba(251, 250, 249, 0.52);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(251, 250, 249, 0.42);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.back-top svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.made {
  margin: 38px 0 0;
  color: rgba(251, 250, 249, 0.2);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 1px;
}

@media (max-width: 1020px) {
  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav button {
    font-size: 10px;
    letter-spacing: 2px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .site-header {
    color: var(--ink);
    background: rgba(251, 250, 249, 0.94);
    border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  }

  .hero h1 {
    font-size: 64px;
  }

  .timeline-item,
  .timeline-item.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    margin-bottom: 84px;
  }

  .timeline-item.reverse .timeline-photo,
  .timeline-item.reverse .timeline-copy {
    order: initial;
  }

  .timeline-photo,
  .timeline-copy {
    max-width: none;
  }

  .gift-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid .wide-photo {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .gate-rail {
    width: 100px;
    padding-left: 22px;
  }

  .site-header {
    height: 62px;
    padding: 0 18px;
  }

  .mobile-menu {
    top: 62px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    top: 52%;
    width: min(342px, calc(100% - 36px));
  }

  .hero h1 {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: 52px;
    line-height: 1.12;
  }

  .countdown {
    gap: 10px;
    margin-bottom: 30px;
  }

  .countdown div {
    min-width: 48px;
  }

  .countdown span {
    font-size: 30px;
  }

  .countdown small {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    letter-spacing: 2px;
  }

  .section,
  .soft-section {
    padding: 96px 20px;
  }

  .section-heading {
    margin-bottom: 72px;
  }

  .section-heading h2,
  .location h2,
  .gifts h2 {
    font-size: 40px;
    line-height: 1.1;
  }

  .section-heading .section-intro,
  .section-intro,
  .quote {
    font-size: 17px;
  }

  .timeline-copy .year {
    font-size: 58px;
  }

  .timeline-copy h3 {
    font-size: 25px;
  }

  .schedule-item {
    grid-template-columns: 84px 54px 1fr;
  }

  .schedule-item .time {
    font-size: 25px;
  }

  .schedule-item p {
    font-size: 17px;
  }

  .form-grid,
  .presence-options {
    grid-template-columns: 1fr;
  }

  .map {
    height: 240px;
  }

  .photo-grid figure {
    height: 260px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 46px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown div {
    min-width: 42px;
  }

  .countdown span {
    font-size: 27px;
  }
}
