:root {
  --alabaster: #f7f4ee;
  --paper: #fffdf9;
  --ink: #1d2831;
  --body: #34373a;
  --muted: #656864;
  --stone: #c9c0b4;
  --stone-light: #e4ddd3;
  --champagne: #735b32;
  --blush: #f1e5e1;
  --rose: #854541;
  --plum: #756270;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --content: 1240px;
  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  background: var(--alabaster);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background: var(--alabaster);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
summary,
a {
  touch-action: manipulation;
}

::selection {
  background: var(--champagne);
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.kicker {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 220ms var(--ease), background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(29, 40, 49, 0.12);
}

.button-primary:hover {
  background: #2b3b47;
}

.button-light {
  border-color: var(--rose);
  background: var(--rose);
  color: var(--paper);
  box-shadow: 0 14px 34px rgba(114, 63, 61, 0.18);
}

.text-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 250ms var(--ease);
}

.text-link:hover::after {
  transform: scaleX(1);
}

/* Header */

.site-header {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) max(38px, env(safe-area-inset-right)) 12px max(38px, env(safe-area-inset-left));
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: min-height 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  min-height: 66px;
  border-color: rgba(201, 192, 180, 0.65);
  background: rgba(247, 244, 238, 0.94);
  box-shadow: 0 10px 36px rgba(29, 40, 49, 0.05);
  backdrop-filter: blur(16px);
}

.site-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-brand i {
  padding: 0 4px;
  color: var(--champagne);
  font-weight: 400;
}

.brand-short {
  display: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--champagne);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Invitation hero */

.invitation-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.22fr) minmax(390px, 0.78fr);
  padding: 18px;
  background: var(--alabaster);
}

.hero-copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 120px clamp(50px, 7vw, 128px) 100px;
}

.hero-copy h1 {
  margin-top: 28px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(4.7rem, 9vw, 9.4rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.73;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 i {
  display: block;
  width: max-content;
  margin: 0.18em auto 0.12em 0.48em;
  color: var(--champagne);
  font-size: 0.48em;
  font-weight: 400;
  line-height: 0.9;
}

.hero-invitation {
  max-width: 520px;
  margin-top: 38px;
  color: #5f6363;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.34;
}

.hero-date {
  display: flex;
  width: min(100%, 580px);
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-date span {
  width: 44px;
  height: 1px;
  background: var(--stone);
}

.hero-date strong {
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.hero-portrait {
  position: relative;
  min-width: 0;
  min-height: calc(100svh - 36px);
  overflow: hidden;
  border-radius: 3px;
  background: #241f1c;
}

.hero-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(12, 17, 19, 0.58));
  content: "";
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.hero-portrait figcaption {
  position: absolute;
  z-index: 2;
  right: 38px;
  bottom: 34px;
  left: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: var(--paper);
}

.hero-portrait figcaption span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-portrait figcaption strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: clamp(50px, 7vw, 128px);
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll b {
  color: var(--champagne);
  font-size: 17px;
}

.hero-enter {
  animation: hero-in 700ms var(--ease) both;
}

.hero-copy .hero-enter:nth-child(2) {
  animation-delay: 80ms;
}

.hero-copy .hero-enter:nth-child(3) {
  animation-delay: 150ms;
}

.hero-copy .hero-enter:nth-child(4) {
  animation-delay: 210ms;
}

.hero-copy .hero-enter:nth-child(5),
.hero-portrait.hero-enter {
  animation-delay: 280ms;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Welcome */

.welcome-note {
  width: min(930px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(110px, 13vw, 190px) 0 clamp(100px, 12vw, 170px);
  text-align: center;
}

.welcome-note h2,
.section-intro h2 {
  margin-top: 20px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.welcome-facts {
  display: grid;
  margin-top: 70px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--stone-light);
  border-bottom: 1px solid var(--stone-light);
}

.welcome-facts span {
  padding: 26px 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.welcome-facts span + span {
  border-left: 1px solid var(--stone-light);
}

.welcome-facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--champagne);
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
}

/* Celebrations */

.celebrations {
  padding: clamp(100px, 10vw, 150px) 24px;
  background: var(--paper);
}

.section-intro {
  width: min(720px, 100%);
  margin: 0 auto clamp(72px, 9vw, 120px);
  text-align: center;
}

.section-intro > p:last-child {
  max-width: 520px;
  margin: 26px auto 0;
  color: var(--muted);
  line-height: 1.75;
}

.event-story {
  display: grid;
  width: min(var(--content), 100%);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.72fr);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 94px) 0;
  border-top: 1px solid var(--stone-light);
}

.event-story:nth-of-type(4) {
  border-bottom: 1px solid var(--stone-light);
}

.event-story-reverse {
  grid-template-columns: minmax(350px, 0.72fr) minmax(0, 1.08fr);
}

.event-story-reverse .event-image {
  order: 2;
}

.event-story-reverse .event-story-copy {
  order: 1;
}

.event-image {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-light);
}

.event-image::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 253, 249, 0.65);
  content: "";
  pointer-events: none;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease), opacity 650ms ease;
}

.event-image-portrait img {
  object-position: 50% 42%;
}

.event-story:hover .event-image img {
  transform: scale(1.018);
}

.event-story-copy {
  min-width: 0;
}

.event-date-mark {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 44px;
  color: var(--ink);
}

.event-date-mark strong {
  font-family: var(--display);
  font-size: 62px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.8;
}

.event-date-mark span {
  padding-left: 13px;
  border-left: 1px solid var(--stone);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.event-story h3 {
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.9rem, 5vw, 5.1rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.event-place {
  margin-top: 26px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.event-place + p {
  max-width: 500px;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 32px;
}

/* Guest information */

.guest-information {
  padding: clamp(110px, 11vw, 170px) 24px;
  background: var(--alabaster);
}

.guest-grid {
  width: min(920px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--stone);
}

.guest-grid details {
  border-bottom: 1px solid var(--stone);
}

.guest-grid summary {
  display: grid;
  min-height: 86px;
  cursor: pointer;
  align-items: center;
  gap: 20px;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 400;
  list-style: none;
}

.guest-grid summary::-webkit-details-marker {
  display: none;
}

.guest-grid summary > span {
  color: var(--champagne);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.guest-grid summary b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--stone);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  transition: transform 220ms var(--ease), background-color 220ms ease;
}

.guest-grid details[open] summary b {
  background: var(--paper);
  transform: rotate(45deg);
}

.guest-grid details > div {
  max-width: 700px;
  padding: 0 40px 32px 56px;
}

.guest-grid details p {
  color: var(--muted);
  line-height: 1.75;
}

.guest-grid details .text-link {
  margin-top: 12px;
}

.venue-shortcuts {
  display: grid;
  width: min(var(--content), 100%);
  margin: 82px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.venue-shortcuts a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 132px;
  justify-content: center;
  flex-direction: column;
  padding: 26px 54px 26px 28px;
  transition: background-color 220ms ease;
}

.venue-shortcuts a + a {
  border-left: 1px solid var(--stone);
}

.venue-shortcuts a:hover {
  background: var(--paper);
}

.venue-shortcuts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.venue-shortcuts strong {
  margin-top: 9px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
}

.venue-shortcuts b {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--champagne);
  font-size: 18px;
  transform: translateY(-50%);
}

/* RSVP */

.rsvp-section {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 12vw, 180px) 24px;
  background: var(--blush);
  color: var(--ink);
}

.rsvp-section::before,
.rsvp-section::after {
  position: absolute;
  width: min(48vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(169, 139, 88, 0.22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.rsvp-section::before {
  top: -65%;
  left: -18%;
}

.rsvp-section::after {
  right: -20%;
  bottom: -80%;
}

.rsvp-inner {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.rsvp-inner h2 {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.rsvp-inner > p:not(.kicker) {
  max-width: 620px;
  margin: 32px auto 0;
  color: #555b59;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.45;
}

.rsvp-inner > strong {
  display: block;
  margin-top: 18px;
  color: var(--rose);
  font-size: 13px;
}

.rsvp-inner .button {
  min-width: min(320px, 100%);
  margin-top: 36px;
}

.rsvp-inner small {
  display: block;
  margin-top: 24px;
  color: #5f625f;
  font-size: 11px;
}

.rsvp-inner small a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */

.site-footer {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 38px max(38px, env(safe-area-inset-right)) 38px max(38px, env(safe-area-inset-left));
  background: var(--paper);
  color: var(--ink);
}

.site-footer p {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}

.site-footer p i {
  color: var(--champagne);
  font-weight: 400;
}

.site-footer span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Reveal enhancement */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .image-reveal img {
  opacity: 0.92;
  transform: scale(1.015);
}

.js .reveal.is-visible .image-reveal img {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 1080px) {
  .invitation-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  }

  .hero-copy {
    padding-right: 55px;
    padding-left: 55px;
  }

  .hero-copy h1 {
    font-size: clamp(4.3rem, 8.6vw, 7.4rem);
  }

  .event-story,
  .event-story-reverse {
    gap: 52px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  }

  .event-story-reverse {
    grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1fr);
  }

}

@media (max-width: 820px) {
  .site-header {
    padding-right: 22px;
    padding-left: 22px;
  }

  .site-header nav a:not(.share-invite) {
    display: none;
  }

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .invitation-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hero-copy {
    min-height: 72svh;
    padding: 120px 24px 74px;
    text-align: center;
  }

  .hero-copy .kicker,
  .hero-copy h1,
  .hero-invitation,
  .hero-date,
  .hero-actions {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-copy h1 {
    margin-top: 22px;
    font-size: clamp(4rem, 17vw, 7rem);
  }

  .hero-copy h1 i {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-invitation {
    margin-top: 30px;
    font-size: 1.35rem;
  }

  .hero-date {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-date span {
    width: 24px;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 28px;
  }

  .hero-portrait {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .hero-portrait img {
    object-position: 50% 43%;
  }

  .hero-scroll {
    display: none;
  }

  .welcome-facts {
    grid-template-columns: 1fr;
  }

  .welcome-facts span + span {
    border-top: 1px solid var(--stone-light);
    border-left: 0;
  }

  .event-story,
  .event-story-reverse {
    gap: 42px;
    grid-template-columns: 1fr;
  }

  .event-story-reverse .event-image,
  .event-story-reverse .event-story-copy {
    order: initial;
  }

  .event-image {
    aspect-ratio: 4 / 3;
  }

  .event-story-copy {
    padding: 0 8px 20px;
  }


  .venue-shortcuts {
    grid-template-columns: 1fr;
  }

  .venue-shortcuts a + a {
    border-top: 1px solid var(--stone);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .site-header.is-scrolled {
    min-height: 60px;
  }

  .site-brand {
    font-size: 20px;
  }

  .site-header nav a {
    font-size: 11px;
  }

  .hero-copy {
    min-height: 680px;
    padding-top: 94px;
  }

  .hero-copy h1 {
    font-size: clamp(3.7rem, 18.5vw, 5.8rem);
    line-height: 0.78;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-date {
    max-width: 300px;
  }

  .hero-date span {
    display: none;
  }

  .hero-date strong {
    width: 100%;
  }

  .hero-portrait figcaption {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .hero-portrait figcaption strong {
    font-size: 22px;
  }

  .welcome-note {
    width: min(100% - 36px, 930px);
    padding: 100px 0;
  }

  .welcome-note h2,
  .section-intro h2 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .celebrations,
  .guest-information {
    padding-right: 18px;
    padding-left: 18px;
  }

  .event-story {
    padding: 48px 0;
  }

  .event-story h3 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .event-date-mark {
    margin-bottom: 34px;
  }

  .event-links {
    align-items: stretch;
    flex-direction: column;
  }

  .event-links .button,
  .event-links .text-link {
    width: 100%;
    justify-content: center;
  }

  .event-links .text-link::after {
    right: 28%;
    left: 28%;
  }

  .guest-grid summary {
    min-height: 78px;
    gap: 12px;
    grid-template-columns: 28px minmax(0, 1fr) 30px;
    font-size: 1.35rem;
  }

  .guest-grid details > div {
    padding: 0 8px 28px 40px;
  }

  .venue-shortcuts {
    margin-top: 60px;
  }

  .rsvp-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-footer {
    min-height: 190px;
    align-items: flex-start;
    flex-direction: column;
    padding: 38px 22px;
  }

  .site-footer .text-link {
    margin-top: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .image-reveal img {
    opacity: 1;
    transform: none;
  }
}
