:root {
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --ink: #27312d;
  --muted: #6f746f;
  --sage: #7f9185;
  --sage-dark: #43534a;
  --rose: #cfa9a0;
  --gold: #b79b67;
  --line: rgba(39, 49, 45, 0.15);
  --shadow: 0 20px 60px rgba(39, 49, 45, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1180px;
  --header-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--rose);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

.center {
  text-align: center;
}

.section {
  padding: 110px 0;
}

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

.section-dark {
  background:
    radial-gradient(circle at top right, rgba(207, 169, 160, 0.13), transparent 34%),
    var(--sage-dark);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .lead,
.section-dark .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 54px;
}

.section-heading.center {
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 8px 30px rgba(39, 49, 45, 0.07);
  backdrop-filter: blur(18px);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  color: white;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 200ms ease;
}

.site-header.scrolled .brand {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: white;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 160ms ease;
}

.site-header.scrolled .site-nav a {
  color: var(--ink);
}

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

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

.site-nav .nav-rsvp {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 10px 17px;
}

.site-header.scrolled .site-nav .nav-rsvp {
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: white;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease;
}

.site-header.scrolled .nav-toggle span {
  background: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(37, 49, 43, 0.62), rgba(37, 49, 43, 0.35)),
    url("assets/hero-placeholder.svg") center / cover no-repeat;
  color: white;
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: -180px;
  right: -90px;
  width: 480px;
  height: 480px;
}

.hero::after {
  bottom: -260px;
  left: -160px;
  width: 620px;
  height: 620px;
}

.hero-overlay {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 74px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 52px);
  margin-bottom: 24px;
  font-size: clamp(4rem, 12vw, 8.7rem);
  letter-spacing: -0.04em;
}

.hero-ampersand {
  color: var(--rose);
  font-size: 0.62em;
  font-style: italic;
}

.hero-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  background: var(--rose);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #dab8b0;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: white;
  color: var(--ink);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

/* Welcome */

.welcome {
  overflow: hidden;
}

.welcome .lead {
  margin-bottom: 48px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown-item {
  position: relative;
  padding: 28px 10px;
}

.countdown-item:not(:last-child)::after {
  position: absolute;
  top: 22%;
  right: 0;
  width: 1px;
  height: 56%;
  background: var(--line);
  content: "";
}

.countdown-item strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1;
}

.countdown-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Story */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.photo-frame {
  position: relative;
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.photo-frame::before {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: -1;
  width: 54%;
  height: 54%;
  border: 1px solid var(--gold);
  content: "";
}

.photo-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  text-align: center;
}

.story-copy p:not(.eyebrow) {
  color: var(--muted);
}

.signature {
  margin-top: 34px;
  font-family: var(--serif);
}

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

.signature strong {
  font-size: 1.8rem;
  font-weight: 600;
}

/* Details */

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

.detail-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 36px;
  background: var(--paper);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.detail-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 26px;
  color: rgba(39, 49, 45, 0.08);
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
}

.card-kicker {
  position: relative;
  margin-bottom: 54px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-card p {
  color: var(--muted);
}

.small-note {
  font-size: 0.84rem;
}

.text-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link.light {
  color: white;
}

.schedule {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  margin-top: 90px;
  border-top: 1px solid var(--line);
  padding-top: 60px;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 90px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 40px;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 8px;
  left: 85px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
  content: "";
}

.timeline time {
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Travel */

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

.travel-card {
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  padding: 34px;
  background: rgba(255, 255, 255, 0.045);
}

.travel-card p {
  color: rgba(255, 255, 255, 0.72);
}

.travel-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(50px, 9vw, 120px);
}

.faq-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.faq-intro p:last-child {
  color: var(--muted);
}

.faq-intro a {
  color: var(--sage-dark);
}

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

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  position: relative;
  padding: 24px 42px 24px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.accordion details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion details p {
  max-width: 650px;
  margin-bottom: 24px;
  color: var(--muted);
}

/* Registry */

.registry-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.registry-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--paper);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.registry-card:hover,
.registry-card:focus-visible {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.registry-card span {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.registry-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* RSVP and footer */

.rsvp-banner {
  padding: 100px 0;
  background:
    linear-gradient(rgba(39, 49, 45, 0.72), rgba(39, 49, 45, 0.72)),
    url("assets/venue-placeholder.svg") center / cover no-repeat;
  color: white;
}

.rsvp-banner h2 {
  margin-inline: auto;
  max-width: 800px;
}

.site-footer {
  padding: 58px 0;
  background: #202824;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.footer-monogram {
  margin-bottom: 14px;
  color: white;
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 700;
}

.footer-content p {
  margin-bottom: 8px;
}

.footer-small {
  font-size: 0.78rem;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 36px 30px;
    background: var(--paper);
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

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

  .site-nav a,
  .site-header.scrolled .site-nav a {
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    padding: 17px 2px;
    font-size: 0.95rem;
  }

  .site-nav .nav-rsvp,
  .site-header.scrolled .site-nav .nav-rsvp {
    margin-top: 20px;
    border: 1px solid var(--ink);
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .split-layout,
  .faq-layout,
  .schedule {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .travel-grid {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .travel-card {
    min-height: auto;
  }

  .schedule {
    gap: 30px;
  }

  .faq-intro {
    position: static;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section {
    padding: 78px 0;
  }

  .hero h1 {
    flex-direction: column;
    gap: 0;
    font-size: clamp(4rem, 24vw, 6rem);
  }

  .hero-ampersand {
    margin: -10px 0;
  }

  .hero-date {
    flex-direction: column;
    gap: 4px;
  }

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

  .scroll-cue {
    display: none;
  }

  .countdown-item {
    padding: 20px 4px;
  }

  .countdown-item strong {
    font-size: 2rem;
  }

  .countdown-item span {
    font-size: 0.56rem;
  }

  .photo-frame {
    transform: none;
  }

  .detail-card,
  .travel-card {
    padding: 28px;
  }

  .timeline::before {
    left: 78px;
  }

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

  .timeline-item::before {
    left: 73px;
  }

  .registry-links {
    grid-template-columns: 1fr;
  }

  .accordion summary {
    font-size: 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
