:root {
  --background: oklch(97.5% 0.006 240);
  --card: oklch(99% 0.004 240);
  --ink: oklch(32% 0.05 255);
  --body: oklch(27% 0.035 255);
  --muted: oklch(50% 0.03 250);
  --border: oklch(88% 0.015 240);
  --gold: oklch(70% 0.07 80);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--body);
  background: var(--background);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 5;
  flex: none;
  padding: 40px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  text-align: center;
}

.wordmark,
.kicker,
.venue,
footer {
  text-transform: uppercase;
}

.wordmark {
  margin: 0 0 32px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 4.8px;
  line-height: 16px;
}

.wordmark span { padding: 0; }

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
}

nav a {
  position: relative;
  padding: 0 0 4px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 3.5px;
  line-height: 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

nav a:hover,
nav a.active {
  border-bottom-color: var(--gold);
  color: var(--ink);
}

main { flex: 1; }

footer {
  flex: none;
  padding: 48px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 3.6px;
  line-height: 16px;
  text-align: center;
}

.page {
  width: min(768px, 100%);
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.page-heading .kicker,
.invitation-card .kicker {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 4.8px;
  line-height: 16px;
}

h1, h2, .date, .location-name, .time {
  font-family: var(--display);
}

h1, h2 { font-weight: 400; }
.date, .location-name, .time { font-weight: 300; }

.page-heading h1,
.invitation-card h1 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 60px;
  line-height: 60px;
}

.divider {
  display: flex;
  width: 100%;
  height: 24px;
  margin: 24px auto 0;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold);
}

.divider span {
  width: 64px;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 75%, transparent);
}

.divider b {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.intro {
  margin: 40px auto 0;
  max-width: 576px;
  font-size: 18px;
  line-height: 28px;
}

.italic {
  color: var(--muted);
  font-family: var(--display);
  font-size: 20px;
  font-style: italic;
  line-height: 28px;
}

.info-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 32px;
}

.info-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 32px;
}

.info-card p { margin: 12px 0 0; }

.hero {
  --hero-height: max(360px, 60vh);
  position: relative;
  padding-top: calc(var(--hero-height) - 112px);
  overflow: hidden;
  text-align: center;
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: var(--hero-height);
  background: linear-gradient(to bottom, transparent 0%, transparent 50%, var(--background) 100%);
  content: "";
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: var(--hero-height);
  object-fit: cover;
  object-position: center;
}

.invitation-card {
  position: relative;
  z-index: 2;
  width: min(624px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.invitation-card h1 {
  margin-top: 16px;
  font-size: 60px;
  line-height: 75px;
}

.invitation-card .divider { margin-top: 32px; }

.invitation-copy {
  margin: 32px 0 0;
  font-size: 18px;
  line-height: 29.25px;
}

.date {
  margin: 32px 0 24px;
  color: var(--ink);
  font-size: 30px;
  line-height: 36px;
}

.venue {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 14px;
  letter-spacing: 4.2px;
  line-height: 20px;
}

.page-schedule { width: min(672px, 100%); }
.page-schedule .intro { margin-top: 32px; }

.timeline {
  width: 100%;
  margin: 48px 0 0;
  padding: 0;
  border-left: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  list-style: none;
  text-align: left;
}

.timeline li {
  position: relative;
  padding: 0 0 40px 32px;
}

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

.timeline li::before {
  position: absolute;
  top: 12px;
  left: -5px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  content: "";
  rotate: 45deg;
}

.timeline p { margin: 0; }

.timeline .time {
  color: var(--ink);
  font-size: 30px;
  line-height: 36px;
}

.timeline li p:nth-of-type(2) {
  margin-top: 4px;
  font-size: 18px;
  line-height: 28px;
}

.page-location { width: min(896px, 100%); }
.location-name {
  margin: 40px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 32px;
}

.map-frame {
  width: 100%;
  height: 450px;
  margin-top: 32px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #eef2f5;
}

.map-frame iframe { width: 100%; height: 100%; border: 0; }

.map-credit {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.page-location .info-card {
  width: 576px;
  max-width: 100%;
  margin-top: 48px;
  margin-right: auto;
  margin-left: auto;
}

.page-location .compact,
.page-location .parking { padding: 32px; }

.page-location .info-card p {
  color: var(--muted);
  line-height: 24px;
}

.gold-link {
  color: var(--gold);
  text-underline-offset: 4px;
}

.page-etiquette .intro { margin-top: 40px; }
.page-etiquette .intro { line-height: 29.25px; }

.etiquette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
}

.etiquette-grid .info-card { padding: 32px; }
.etiquette-grid .info-card h2 { font-size: 30px; line-height: 36px; }
.align-left { text-align: left; }

.snow-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.snow-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
  line-height: 24px;
}

.snow-list li:last-child { margin-bottom: 0; }

.snow-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  content: "❄";
  font-size: 16px;
  line-height: 24px;
}

.gift-image {
  display: block;
  width: 720px;
  max-width: 100%;
  margin: 48px auto 0;
  border: 1px solid var(--border);
}

.gift-lead {
  margin: 40px auto 0;
  max-width: 576px;
  font-size: 18px;
  line-height: 29.25px;
}

.gift-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 767px) {
  .page-heading h1 { font-size: 48px; line-height: 48px; }

  .invitation-card {
    padding-right: 32px;
    padding-left: 32px;
  }

  .invitation-card h1 {
    font-size: 48px;
    line-height: 60px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
