:root {
  --ivory: #fbf8f2;
  --sand: #f3eadc;
  --sky: #e2eff3;
  --foam: #e2f1ee;
  --seafoam: #a9d6cc;
  --sea: #2f6b80;
  --deep: #1e3d52;
  --coral: #dd7a60;
  --coral-deep: #c4644b;
  --coral-soft: #f8ddd3;
  --ink: #26363f;
  --muted: #5d6c73;
  --line: #e7dfd1;
  --wrap: 70rem;
  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --text: Lora, Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.1; color: var(--deep); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.link {
  color: var(--sea);
  font-weight: 600;
  text-decoration-color: var(--seafoam);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.link:hover { color: var(--coral-deep); text-decoration-color: var(--coral); }

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.9rem;
}

.monogram {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--deep);
  text-decoration: none;
}

.monogram span {
  font-family: var(--script);
  font-size: 1.6rem;
  letter-spacing: 0;
  color: var(--coral);
}

.links { display: flex; gap: clamp(0.9rem, 3vw, 2.2rem); }

.links a {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  text-decoration: none;
}

.links a:hover { color: var(--coral); }

.nav { gap: 1rem; }

@media (max-width: 30rem) {
  .monogram { font-size: 1.25rem; }
  .monogram span { font-size: 1.35rem; }
  .links { gap: 0.85rem; }
  .links a { font-size: 0.9rem; letter-spacing: 0.08em; }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #eef5f4 45%, var(--ivory) 100%);
  padding-block: clamp(2.5rem, 7vw, 5rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy { text-align: center; }

.script-line, .kicker {
  margin: 0 0 0.4rem;
  font-family: var(--script);
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
  line-height: 1.2;
  color: var(--coral);
}

.hero h1 {
  font-weight: 400;
  font-size: clamp(3.6rem, 2rem + 6.5vw, 6.8rem);
  letter-spacing: 0.01em;
  line-height: 1;
}

.amp {
  display: block;
  margin: 0.02em 0 0.08em;
  font-family: var(--script);
  font-size: 1.2em;
  line-height: 0.75;
  color: var(--coral);
}

.date {
  margin: 1.4rem 0 0.2rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  color: var(--sea);
}

.place {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep);
}

.lead {
  max-width: 26rem;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-style: italic;
}

.button {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 22px -10px var(--coral-deep);
  transition: background 0.2s, transform 0.2s;
}

.button:hover { background: var(--sea); transform: translateY(-1px); }

/* The photo in a soft arch, with seafoam glow behind it. */
.arch {
  position: relative;
  justify-self: center;
  width: min(100%, 27rem);
}

.arch::before {
  content: "";
  position: absolute;
  inset: 8% -10% -4% -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--seafoam) 70%, transparent), transparent);
  z-index: 0;
}

.arch picture {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.6rem;
  border-radius: 999px 999px 1.6rem 1.6rem;
  background: #fff;
  box-shadow: 0 24px 50px -28px rgb(30 61 82 / 0.55);
}

.arch img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 999px 999px 1.1rem 1.1rem;
}

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .arch { width: min(84%, 22rem); }
}

/* Waves between sections */
.wave {
  display: block;
  width: 100%;
  height: clamp(36px, 6vw, 88px);
  margin-top: -1px;
}

.wave path { fill: var(--ivory); }
.wave .wave-back { fill: var(--seafoam); opacity: 0.45; }
.wave .fill-sand { fill: var(--sand); }
.wave .fill-foam { fill: var(--foam); }
.wave .fill-sea { fill: var(--sea); opacity: 0.55; }
.wave .fill-deep { fill: var(--deep); }
.wave.flip { background: var(--ivory); }
.wave.deep-wave { background: var(--foam); }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sand { background: var(--sand); }
.foam { background: var(--foam); }

.section-head {
  max-width: 40rem;
  margin: 0 auto clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
}

.section-head h2 {
  font-weight: 400;
  font-size: clamp(2.6rem, 1.7rem + 3.2vw, 3.9rem);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.75rem;
  margin: 0.9rem auto 0;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 12'%3E%3Cpath d='M1 6c7-6 14-6 21 0s14 6 21 0 14-6 21 0 14 6 21 0' fill='none' stroke='%23dd7a60' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.intro { margin-top: 1.1rem; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
}

.card {
  padding: 2.1rem 1.8rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 40px -32px rgb(30 61 82 / 0.5);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sand .icon { background: var(--foam); color: var(--sea); }

.card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.big {
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--sea);
}

.muted { color: var(--muted); }

.registry {
  max-width: 36rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  max-width: 58rem;
  margin: 0 auto;
}

.faq div {
  padding: 1.3rem 1.4rem;
  border-left: 3px solid var(--seafoam);
  border-radius: 0 1rem 1rem 0;
  background: color-mix(in srgb, #fff 70%, transparent);
}

.faq dt {
  margin-bottom: 0.3rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--deep);
}

.faq dd { margin: 0; color: var(--muted); }

/* RSVP and footer, in deep sea blue */
.deep {
  background: linear-gradient(180deg, var(--deep) 0%, #183245 100%);
  color: var(--ivory);
}

.deep .section-head { margin-bottom: 0; }
.deep h2 { color: var(--ivory); }
.deep .kicker { color: var(--seafoam); }
.deep .intro { color: color-mix(in srgb, var(--ivory) 82%, transparent); }

.soon {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.6rem 1.8rem;
  border: 1.5px solid var(--seafoam);
  border-radius: 999px;
  color: var(--seafoam);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer {
  padding: 1rem 1.25rem 3rem;
  background: #183245;
  color: var(--sand);
  text-align: center;
}

.footer p { margin: 0; }

.script-sign {
  font-family: var(--script);
  font-size: 1.9rem;
  color: var(--seafoam);
}

.footer .names {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--ivory);
}

.footer .small {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sand) 75%, transparent);
}

/* Gate page */
.gate-body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.25rem 1.25rem 7rem;
  background: linear-gradient(180deg, var(--sky) 0%, var(--ivory) 55%, var(--sand) 100%);
  position: relative;
  overflow-x: hidden;
}

.gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  padding: 2.6rem 2rem 2.2rem;
  border-radius: 1.8rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 60px -36px rgb(30 61 82 / 0.55);
}

.gate-card .script-line { font-size: 2.3rem; }

.gate-card h1 {
  margin-bottom: 1.6rem;
  font-weight: 400;
  font-size: clamp(2.8rem, 2.2rem + 3vw, 3.6rem);
}

.gate-card h1 .amp { display: inline; margin: 0 0.08em; font-size: 1.25em; line-height: 1; vertical-align: -0.08em; }

.gate-card label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.gate-card input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  text-align: center;
}

.gate-card input:focus { outline: none; border-color: var(--seafoam); box-shadow: 0 0 0 4px var(--foam); }

.gate-card button {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.gate-card button:hover { background: var(--sea); }

.gate-card .error { margin: 1rem 0 0; color: var(--coral-deep); }

.gate-waves {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 7rem;
}

.gate-waves .w1 { fill: var(--seafoam); opacity: 0.5; }
.gate-waves .w2 { fill: var(--sea); opacity: 0.55; }
.gate-waves .w3 { fill: var(--deep); }
