@font-face {
  font-family: "Lora Wedding";
  src: url("lora-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lora Wedding";
  src: url("lora-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Baskervville Wedding";
  src: url("baskervville-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #213e50;
  --navy-hover: #34566c;
  --paper: #ffffff;
  --nav-height: 64px;
  --serif: "Lora Wedding", Georgia, "Times New Roman", serif;
  --festive: "Baskervville Wedding", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--navy); color: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--festive); font-weight: 400; }
h2 { font-size: clamp(2.5rem, 4.2vw, 3.5rem); line-height: 1.18; letter-spacing: -0.02em; }
a:focus-visible { outline: 2px solid #7193ab; outline-offset: 6px; }
section[id] { scroll-margin-top: 20px; }
strong { font-weight: 600; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; height: var(--nav-height); border-bottom: 1px solid rgba(33, 62, 80, 0.12); background: var(--paper); }
.site-header nav { display: flex; height: 100%; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 46px); padding-inline: 12px; }
.site-header a { display: inline-flex; min-height: 44px; align-items: center; padding-block: 10px; font-size: 16px; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.site-header a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.wedding-page { width: 100%; margin: 0; }
.button {
  display: inline-flex;
  min-width: 182px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 27px 12px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.button:hover { background: var(--navy-hover); border-color: var(--navy-hover); }

.hero {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__photo { position: static; width: 100%; height: auto; object-fit: contain; object-position: center; }
.hero__wash { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.42); }
.hero__names {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  font-size: 8.836vw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
  text-transform: uppercase;
}
.hero__names > span {
  position: absolute;
  left: 51.5%;
  width: max-content;
  white-space: nowrap;
  transform: translateX(-50%);
}
.hero__names > span:first-child { top: 20.7%; }
.hero__names > span:last-child { top: 51.2%; }
.hero__names > .hero__amp {
  z-index: 0;
  top: 28%;
  left: 53%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.8em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
.hero__names > span:not(.hero__amp) { z-index: 1; }

.invitation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(64px, 7vw, 110px) clamp(24px, 6vw, 100px);
  scroll-margin-top: 20px;
}
.invitation__church { width: 100%; max-width: 355px; justify-self: center; }
.church-artwork {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.invitation__copy { text-align: center; }
.invitation__date { display: block; margin-bottom: 28px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.2; white-space: nowrap; }
.invitation__copy h2 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); line-height: 1.22; }
.invitation__copy .button { margin-top: 32px; }

.story { display: grid; min-height: 590px; place-items: center; padding: 95px 32px 105px; background: var(--navy); color: #fff; text-align: center; }
.story__copy { max-width: 760px; }
.story h2 { margin-bottom: 32px; }
.story p { font-size: 18px; line-height: 1.85; }
.story p + p { margin-top: 30px; }
.story__preparty { padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.25); }

.schedule { padding: 100px clamp(24px, 5vw, 80px) 110px; text-align: center; }
.schedule h2 { margin-bottom: 60px; }
.schedule__items { display: grid; max-width: 1280px; margin-inline: auto; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.schedule__item { min-width: 0; }
.schedule__illustration { display: block; width: 95px; height: 95px; margin: 0 auto 16px; }
.schedule__item time { display: block; margin-bottom: 9px; font-size: 16px; letter-spacing: 0.04em; }
.schedule__item h3 { max-width: 205px; margin: 0 auto; font-size: 25px; font-style: normal; line-height: 1.2; }
.schedule__item p { max-width: 215px; margin: 14px auto 0; font-size: 15px; line-height: 1.65; }

.details { position: relative; padding: clamp(60px, 6vw, 100px) clamp(24px, 5vw, 80px); overflow: hidden; isolation: isolate; }
.details__photo { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.details__panel { max-width: 1120px; margin-inline: auto; padding: 58px 64px 66px; background: rgba(33, 62, 80, 0.96); color: #fff; }
.details h2 { margin-bottom: 44px; text-align: center; }
.details__grid { --details-rule: rgba(255, 255, 255, 0.45); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.details__grid > article { min-width: 0; padding: 0 36px 30px; }
.details__grid > article:nth-child(odd) { padding-left: 0; }
.details__grid > article:nth-child(even) { padding-right: 0; border-left: 1px solid var(--details-rule); }
.details__grid > article:nth-child(-n+2) { border-bottom: 1px solid var(--details-rule); }
.details__grid > article:nth-child(n+3) { padding-top: 30px; padding-bottom: 0; }
.details h3 { margin-bottom: 16px; font-size: 30px; line-height: 1.2; }
.details p { font-size: 17px; line-height: 1.8; }
.details p + p { margin-top: 18px; }
.details__link { display: inline-block; margin-top: 18px; padding-block: 4px; font-size: 17px; text-underline-offset: 5px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.details__link svg { display: inline-block; width: 0.8em; height: 0.8em; margin-left: 5px; vertical-align: -0.05em; }

.rsvp { padding: 112px clamp(24px, 5vw, 80px) 75px; text-align: center; }
.rsvp__invitation { position: relative; max-width: 1000px; margin-inline: auto; padding-bottom: 28px; }
.rsvp__copy { max-width: 660px; margin: 0 auto; }
.rsvp h2 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); }
.rsvp .button { margin-top: 27px; }
.rsvp__photo { position: absolute; right: 6px; bottom: -8px; width: 112px; transform: rotate(12deg); }
.rsvp__photo img { width: 100%; height: auto; }
.footer { display: grid; min-height: 60px; place-items: center; padding: 16px; background: var(--navy); color: #fff; text-align: center; }
.footer p { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer span { margin-left: 6px; }

/* Preserve utilities used by the bundled component catalog. */
.scrollbar-thin { scrollbar-width: thin; }
.scrollbar-none { scrollbar-width: none; }
.scrollbar-stable { scrollbar-gutter: stable; }
.scroll-fade-reveal-b { mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
.tw-shimmer { animation: tw-shimmer 1.5s linear infinite; }
@keyframes tw-shimmer { to { background-position: 200% 0; } }

@media (max-width: 1100px) {
  .schedule__items { max-width: 900px; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; row-gap: 48px; }
}

@media (max-width: 800px) {
  .invitation { gap: 22px; padding: 56px 5% 65px; }
  .invitation__date { font-size: 2.15rem; margin-bottom: 22px; }
  .invitation__copy h2 { font-size: 2rem; }
  .story { min-height: 0; padding: 72px 10%; }
  .schedule { padding: 76px 24px 82px; }
  .schedule__items { gap: 18px; }
  .schedule__item h3 { font-size: 25px; }
  .schedule__item p { font-size: 15px; }
  .details { padding: 50px 6%; }
  .details__panel { padding: 40px 32px; }
  .details__grid > article:nth-child(odd) { padding-right: 24px; }
  .details__grid > article:nth-child(even) { padding-left: 24px; }
  .rsvp { padding: 85px 24px 65px; }
  .rsvp__photo { right: 0; width: 80px; bottom: -18px; }
}

@media (max-width: 700px) {
  .details__grid { grid-template-columns: 1fr; }
  .details__grid > article:nth-child(n) { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--details-rule); }
  .details__grid > article:first-child { padding-top: 0; }
  .details__grid > article:last-child { padding-bottom: 0; border-bottom: 0; }
}

@media (max-width: 560px) {
  :root { --nav-height: 56px; }
  body { font-size: 17px; }
  .site-header a { font-size: 14px; }
  .hero__wash { background: rgba(255, 255, 255, 0.44); }
  .invitation { grid-template-columns: 1fr; gap: 27px; padding: 48px 24px 58px; }
  .invitation__church { max-width: 210px; }
  .invitation__date { margin-bottom: 21px; font-size: 2.2rem; }
  .invitation__copy h2 { font-size: 2rem; }
  .invitation__copy .button { margin-top: 26px; }
  .story { padding: 64px 27px; }
  .story h2 { margin-bottom: 26px; }
  .story p { font-size: 17px; line-height: 1.8; }
  .schedule { padding: 64px 24px 70px; }
  .schedule h2 { margin-bottom: 40px; }
  .schedule__items { grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 40px; }
  .schedule__illustration { width: 83px; height: 83px; margin-bottom: 12px; }
  .schedule__item time { font-size: 15px; }
  .schedule__item h3 { font-size: 23px; }
  .schedule__item p { font-size: 15px; }
  .details { padding: 32px 18px; }
  .details__panel { padding: 38px 25px 42px; }
  .details h2 { margin-bottom: 31px; }
  .details h3 { font-size: 29px; }
  .details p { font-size: 17px; line-height: 1.8; }
  .rsvp { padding: 66px 24px 52px; }
  .rsvp__invitation { padding-bottom: 0; }
  .rsvp h2 { font-size: 2.6rem; }
  .rsvp .button { margin-top: 24px; }
  .rsvp__photo { position: static; width: 64px; margin: 28px auto 0; }
  .footer { min-height: 56px; }
  .footer p { font-size: 12px; }
}

@media (max-width: 360px) {
  .site-header nav { gap: 10px; padding-inline: 10px; }
  .site-header a { font-size: 13px; }
}

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