@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #192b46;
  --text: #f2ead6;
  --muted: #bdcbd8;
  --gold: #dfc27e;
  --blue: #9bbfd5;
  --sans: "Avenir Next", Avenir, "Century Gothic", Futura, sans-serif;
  --serif: Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --display: "Cinzel", var(--serif);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 12%, #35516a66, transparent 60%),
    radial-gradient(ellipse at 10% 85%, #527a9426, transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.page-shell { width: min(1080px, calc(100% - 64px)); margin: 0 auto; padding: 24px 0 40px; }
.card { border: 0; box-shadow: none; }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border-radius: 20px;
  background: #192b46ed;
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
.brand:hover { color: var(--text); }
.monogram { width: 35px; height: 35px; flex: 0 0 auto; color: var(--gold); }
.brand-copy { display: grid; line-height: 1.3; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.brand-note { margin-top: 3px; color: var(--muted); font-family: var(--serif); font-size: 12px; font-style: italic; }
nav { display: flex; justify-content: center; gap: 8px; }
nav a { padding: 8px 12px; text-decoration: none; font-size: 12px; letter-spacing: .08em; }
.button {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 100px;
  background: #aac8db;
  color: #192b46;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.button:hover { background: #c7deeb; color: #192b46; transform: translateY(-2px); }
.button:active { transform: translateY(0); }

main { display: grid; gap: 24px; }
.hero { text-align: center; }
.hero-figure { min-width: 0; margin: 0; }
.hero-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1730 / 909;
  border-radius: 14px;
  box-shadow: 0 22px 70px #070f242e;
}
.hero-inner { display: grid; justify-items: center; padding: 48px 32px 44px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow, .section-label {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
h1, h2 { color: var(--text); font-family: var(--serif); font-weight: 400; }
h2 { margin: 12px 0 20px; font-size: clamp(34px, 5vw, 52px); line-height: 1.15; letter-spacing: -.02em; }
.intro { max-width: 590px; margin: 20px auto 0; color: var(--muted); font-size: clamp(16px, 2vw, 18px); }
.hero-rsvp { margin-top: 26px; }
.hero-rsvp .button, .details-rsvp .button { min-height: 48px; padding-inline: 28px; font-size: 14px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-family: var(--serif); font-size: 15px; font-style: italic; }

.details {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(120deg, #86b4d012, #86b4d004);
}
.couple-portrait { display: block; width: 100%; height: auto; border-radius: 18px; }
.details-copy { min-width: 0; padding: 20px 0; }
.details-heading h2 { margin-bottom: 28px; }
.details-grid { display: grid; gap: 24px; margin: 0; }
.details-grid > div { min-width: 0; }
.detail-day { display: block; color: var(--muted); font-size: 18px; }
.icon-label { display: inline-flex; align-items: baseline; gap: .4em; max-width: 100%; }
.detail-icon { width: 1em; height: 1em; flex: 0 0 auto; align-self: baseline; position: relative; top: .12em; color: var(--gold); }
.brand-note .detail-icon, footer .detail-icon { color: var(--blue); }
.details-rsvp { margin-top: 32px; }
.details-rsvp > p:first-child { margin: 0 0 14px; color: var(--text); font-family: var(--serif); font-size: 22px; }
dt { color: var(--blue); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
dd { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(20px, 2.5vw, 25px); line-height: 1.45; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 24px 18px 0; color: var(--muted); font-size: 11px; letter-spacing: .05em; }
footer p { margin: 0; }
footer a { padding-block: 10px; }

.engagement-gallery { padding: 48px 0 16px; }
.gallery-heading { margin-bottom: 28px; text-align: center; }
.gallery-heading h2 { margin-bottom: 12px; }
.gallery-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #86b4d012;
}
.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.gallery-photo:hover img, .gallery-photo:focus-visible img { transform: scale(1.035); }

h1, h2, h3, h4, h5, h6,
.brand-name, .brand-note,
.eyebrow, .section-label,
.intro, .form-note, dt, dd,
.details-rsvp > p:first-child,
.gallery-heading > p:last-child {
  font-family: var(--display);
  font-style: normal;
}
h1, h2, h3, h4, h5, h6 { font-weight: 400; letter-spacing: .025em; }
.eyebrow, .section-label, dt { font-size: 12px; letter-spacing: .16em; }
.brand-copy { min-width: 0; }
.brand-note { font-size: 11px; line-height: 1.6; }
.form-note { font-size: 13px; }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .engagement-gallery { padding-top: 32px; }
  .page-shell { width: calc(100% - 32px); padding-top: 12px; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px; margin-bottom: 18px; }
  .brand { min-width: 0; }
  nav { grid-column: 1 / -1; grid-row: 2; }
  .hero-inner { padding: 36px 20px; }
  .hero-art {
    width: calc(100vw - 12px);
    max-width: none;
    height: auto;
    margin-inline-start: calc(50% - 50vw + 6px);
    aspect-ratio: 1730 / 909;
    border-radius: 9px;
  }
  .details { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .couple-portrait { max-width: 420px; margin-inline: auto; }
  .details-copy { text-align: center; }
}
@media (max-width: 460px) {
  .brand-note { display: none; }
  .brand-name { font-size: 16px; }
  .monogram { width: 27px; height: 27px; }
  .button { padding: 10px 16px; gap: 8px; }
  footer { align-items: flex-start; flex-direction: column; gap: 4px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
