:root {
  color-scheme: light;
  --ink: #b69a7b;
  --opening: #577494;
  --line: #e7e0d7;
  --paper: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff url("./shell-pattern.png") repeat;
  background-size: 240px auto;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 max(28px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgb(156 123 86 / 15%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}
.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}
.wordmark span,
.hero-names i,
.footer-names i {
  color: var(--ink);
  font-style: normal;
}
.topbar nav {
  display: flex;
  gap: 34px;
}
.topbar nav a,
.eyebrow,
.hero-date,
.venue-time,
.map-link,
.contacts span,
.footer p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.topbar nav a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 180ms ease;
}
.topbar nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero {
  position: relative;
  display: grid;
  min-height: min(810px, calc(100svh - 72px));
  align-content: center;
  justify-items: center;
  padding: 70px 24px 92px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0%),
    rgb(255 255 255 / 12%)
  );
}
.hero-date {
  margin: 0 0 30px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 3px 18px rgb(255 255 255 / 50%);
}
.hero-date span {
  padding-inline: 8px;
  color: var(--ink);
}
.hero-names {
  position: relative;
  width: min(100%, 900px);
  padding: 24px 42px;
  border-radius: 18px;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 0 48px 24px rgb(255 255 255 / 58%);
}
.hero-names::before,
.hero-names::after {
  position: absolute;
  left: 50%;
  width: min(460px, 76vw);
  height: 1px;
  background: var(--line);
  content: "";
  transform: translateX(-50%);
}
.hero-names::before {
  top: 0;
}
.hero-names::after {
  bottom: 0;
}
h1 {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 16px;
  margin: 0;
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 400;
  line-height: 0.95;
}
h1 span,
.couple-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
h1 i {
  font-size: 0.48em;
}
.opening-line {
  max-width: 500px;
  margin: 34px auto 0;
  padding: 14px 22px;
  border-radius: 12px;
  background: rgb(255 255 255 / 86%);
  color: var(--opening);
  font-size: 24px;
  line-height: 1.4;
  box-shadow: 0 4px 24px rgb(255 255 255 / 45%);
}
.scroll-link {
  position: absolute;
  bottom: 28px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
}
.scroll-link span {
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: rotate(45deg) translate(2px, 2px);
  }
}
.section-wrap {
  padding: 112px 24px;
}
.program {
  background: rgb(255 255 255 / 90%);
}
.section-heading {
  max-width: 620px;
  margin: 0 auto 54px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--ink);
}
h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 400;
  line-height: 1;
}
.section-heading > p:last-child {
  margin: 18px 0 0;
  font-size: 19px;
}
.venues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(580px, 100%);
  margin: 0 auto;
}
.venue {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}
.venue-photo {
  position: relative;
  width: min(100%, 180px);
  margin-inline: auto;
  overflow: hidden;
  background-color: #fff;
}
.venue-image {
  display: block;
  width: 100%;
  height: auto;
}
.venue-details {
  padding: 15px 12px 18px;
}
.venue-time {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 14px;
}
.venue h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.venue-details > p:not(.venue-time) {
  min-height: 38px;
  margin: 4px 0 9px;
  font-size: 14px;
  line-height: 1.4;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 8px rgb(68 50 31 / 14%);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
.map-link:hover {
  transform: translateY(-2px);
  background: #765f47;
  box-shadow: 0 6px 14px rgb(68 50 31 / 20%);
}
.map-link:focus-visible,
.phone-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.map-link span {
  font-size: 14px;
}
.story {
  padding: 112px 24px;
  background: rgb(255 255 255 / 96%);
  text-align: center;
}
.story-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}
.story h2 {
  font-size: clamp(38px, 6vw, 59px);
}
.story .script-name {
  font-size: 1.25em;
}
.story-line {
  margin: 32px 0 42px;
  font-size: 23px;
  line-height: 1.5;
}
.family {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}
.family-label {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 16px;
  font-style: italic;
}
.family-names {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
}
.rsvp {
  background: rgb(255 255 255 / 91%);
  text-align: center;
}
.rsvp-inner {
  max-width: 670px;
  margin: 0 auto;
}
.rsvp-note {
  max-width: 510px;
  margin: 24px auto 0;
  font-size: 20px;
  line-height: 1.45;
}
.answer-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 25px 0 30px;
}
.answer-options span {
  min-width: 112px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  font-size: 18px;
  letter-spacing: 0.08em;
}
.deadline {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
}
.deadline strong {
  font-weight: 600;
}
.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 35px;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgb(68 50 31 / 18%);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
.phone-link:hover {
  transform: translateY(-2px);
  background: #765f47;
  box-shadow: 0 7px 16px rgb(68 50 31 / 23%);
}
.phone-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.phone-link > span {
  display: grid;
  gap: 2px;
  text-align: left;
}
.phone-name {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.phone-link strong {
  font-size: 20px;
  font-weight: 500;
}
.answer-options span {
  border: 0;
  padding-inline: 0;
  color: var(--ink);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}
.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 180px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  width: min(250px, 72vw);
}
.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.site-footer p {
  margin: 0;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.035em;
}
.site-footer .footer-inquiry a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: color 180ms ease;
}
.site-footer .footer-inquiry a:hover {
  color: var(--ink);
}
.footer-inquiry svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}
.site-footer p span {
  padding-inline: 5px;
  color: var(--ink);
}
.site-footer a:not(.footer-logo) {
  color: inherit;
}
.site-footer a:not(.footer-logo):hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}
body.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.venues .venue:nth-child(2) {
  transition-delay: 130ms;
}
@media (max-width: 680px) {
  .topbar {
    grid-template-columns: auto 1fr;
    min-height: 66px;
    padding-inline: 18px;
  }
  .topbar nav {
    justify-content: flex-end;
    gap: clamp(11px, 4vw, 24px);
  }
  .topbar nav a {
    font-size: 14px;
    letter-spacing: 0.035em;
  }
  .hero {
    min-height: 650px;
    min-height: min(700px, calc(100svh - 66px));
    padding-inline: 18px;
  }
  .hero-names {
    padding: 23px 10px;
  }
  h1 {
    gap: 0 8px;
    font-size: clamp(28px, 8.5vw, 36px);
  }
  .opening-line {
    max-width: 390px;
    font-size: 21px;
  }
  .section-wrap,
  .story {
    padding: 78px 20px;
  }
  .section-heading {
    margin-bottom: 34px;
  }
  .venues {
    grid-template-columns: 1fr;
    max-width: 300px;
    gap: 14px;
  }
  .family {
    gap: 24px 12px;
  }
  .family-names {
    font-size: 18px;
  }
  .story-line {
    font-size: 21px;
  }
}
@media (max-width: 390px) {
  .topbar {
    padding-inline: 13px;
  }
  .topbar nav {
    gap: 10px;
  }
  .topbar nav a {
    font-size: 13px;
  }
  .wordmark {
    font-size: 28px;
  }
  .family {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contacts {
    gap: 8px;
  }
  .contacts strong {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  body.js-enabled .reveal,
  body.js-enabled .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
