@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Manrope:wght@400;500;600&display=swap");

:root {
  --ink: #26362f;
  --muted: #788079;
  --paper: #fffdf7;
  --paper-deep: #f4efe4;
  --accent: #d8633d;
  --line: rgba(38, 54, 47, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #d8dfd5;
  font-family: var(--sans);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.invitation-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(390px, 35vw, 610px) minmax(0, 1fr);
  width: 100%;
  height: 100svh;
  background-image:
    linear-gradient(90deg, rgba(246, 238, 220, 0.12), rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 75%, rgba(220, 235, 227, 0.12)),
    url("colorful-assortment-delicate-wildflowers-blooms-across-bright-white-background.jpg");
  background-size: cover;
  background-position: center bottom;
}

.side-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.side-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.06), rgba(255, 253, 247, 0.22));
}

.side-panel--right::after {
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.22), rgba(255, 253, 247, 0.06));
}

.side-panel__label {
  position: absolute;
  z-index: 1;
  top: 50%;
  margin: 0;
  color: rgba(38, 54, 47, 0.72);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-style: italic;
  letter-spacing: 0.08em;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.side-panel--left .side-panel__label {
  left: clamp(20px, 4vw, 70px);
  transform: translateY(-50%) rotate(180deg);
}

.side-panel--right .side-panel__label {
  right: clamp(20px, 4vw, 70px);
  transform: translateY(-50%);
}

.side-panel__number {
  position: absolute;
  z-index: 1;
  top: clamp(22px, 4vw, 64px);
  color: rgba(38, 54, 47, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
}

.side-panel--left .side-panel__number {
  left: clamp(20px, 4vw, 70px);
}

.side-panel--right .side-panel__number {
  right: clamp(20px, 4vw, 70px);
}

.information-panel {
  position: relative;
  z-index: 2;
  height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 253, 247, 0.955), rgba(255, 253, 247, 0.98)),
    radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1.5px);
  background-size: auto, 8px 8px;
  box-shadow: 0 0 45px rgba(35, 50, 43, 0.15);
}

.scrollable-invitation {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  touch-action: pan-y;
}

.scrollable-invitation::-webkit-scrollbar {
  display: none;
}

.scroll-progress {
  position: fixed;
  z-index: 6;
  top: 0;
  width: clamp(390px, 35vw, 610px);
  height: 3px;
  background: rgba(38, 54, 47, 0.07);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 80ms linear;
}

.section-nav {
  position: fixed;
  z-index: 5;
  top: 50%;
  margin-left: clamp(356px, 32.8vw, 570px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}

.section-nav__link {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  text-decoration: none;
}

.section-nav__link > span:first-child {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(38, 54, 47, 0.25);
  transition: width 180ms ease, height 180ms ease, background 180ms ease;
}

.section-nav__link:hover > span:first-child,
.section-nav__link.is-active > span:first-child {
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.invitation-section {
  position: relative;
  display: flex;
  min-height: 88svh;
  padding: clamp(68px, 9vh, 108px) clamp(42px, 5vw, 82px);
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 20px;
  scroll-snap-align: start;
}

.invitation-section + .invitation-section {
  border-top: 1px solid var(--line);
}

.hero {
  min-height: 100svh;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.6;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6.3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.72;
}

h1 > span {
  display: block;
}

h1 .ampersand {
  margin: 0.18em 0;
  color: var(--accent);
  font-size: 0.5em;
  font-style: italic;
}

.ornament {
  display: flex;
  width: 180px;
  margin: 42px auto 30px;
  align-items: center;
  gap: 16px;
  color: var(--accent);
  font-size: 0.58rem;
}

.ornament span {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.intro {
  max-width: 340px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
}

.date {
  margin: 36px 0 40px;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.2em;
}

.text-link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.section-next {
  width: fit-content;
  margin-top: 42px;
}

.section-number {
  position: absolute;
  top: 32px;
  right: clamp(42px, 5vw, 82px);
  margin: 0;
  color: rgba(38, 54, 47, 0.35);
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
}

h2 {
  max-width: 430px;
  margin: 0 0 44px;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.2vw, 4rem);
  font-weight: 400;
  line-height: 0.96;
}

h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
}

.detail-list {
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row p,
.timeline p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.detail-row__label {
  padding-top: 4px;
  font-size: 0.61rem !important;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 62px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 36px;
  padding: 0 0 30px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  position: absolute;
  top: 7px;
  left: 59px;
  width: 7px;
  height: 7px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(216, 99, 61, 0.25);
}

.timeline time {
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.section-copy {
  max-width: 430px;
  margin: -14px 0 36px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.65;
}

.info-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.info-card:last-child {
  border-bottom: 1px solid var(--line);
}

.info-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--accent);
  font-family: var(--serif);
}

.info-card .eyebrow {
  margin-bottom: 5px;
  font-size: 0.54rem;
}

.meal-options {
  margin: 0 0 34px;
  border-top: 1px solid var(--line);
}

.meal-option {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.meal-option__copy {
  display: flex;
  flex-direction: column;
}

.meal-option__number {
  padding-top: 5px;
  color: var(--accent);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meal-option__copy strong {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.meal-option__copy small {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.6;
}

.food-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.55;
}

.rsvp {
  min-height: 92svh;
  align-items: center;
  text-align: center;
}

.reply-checklist {
  width: 100%;
  max-width: 390px;
  margin: 0 auto 34px;
  border-top: 1px solid var(--line);
  padding: 0;
  list-style: none;
  text-align: left;
}

.reply-checklist li {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 15px 10px 15px 29px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.reply-checklist li::before {
  position: absolute;
  top: 17px;
  left: 7px;
  color: var(--accent);
  content: "♥";
  font-size: 0.52rem;
}

.email-address {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  text-decoration: none;
}

.rsvp .section-next {
  margin-top: 46px;
}

.rsvp h2,
.rsvp .section-copy {
  margin-right: auto;
  margin-left: auto;
}

.closing-mark {
  margin-top: 52px;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.16em;
}

.closing-mark span {
  color: var(--accent);
  font-style: italic;
}

footer {
  display: flex;
  padding: 25px 32px;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer a {
  text-decoration: none;
}

.mobile-floral-band {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .invitation-shell {
    grid-template-columns: minmax(14px, 1fr) minmax(340px, 82vw) minmax(14px, 1fr);
  }

  .side-panel__label,
  .side-panel__number {
    display: none;
  }

  .scroll-progress {
    width: 82vw;
  }

  .section-nav {
    display: none;
  }
}

@media (max-width: 540px) {
  .invitation-shell {
    display: block;
    background-position: center bottom;
  }

  .side-panel {
    display: none;
  }

  .information-panel {
    width: 100%;
    background: linear-gradient(rgba(255, 253, 247, 0.87), rgba(255, 253, 247, 0.92));
    box-shadow: none;
  }

  .scrollable-invitation {
    scroll-snap-type: none;
  }

  .mobile-floral-band {
    display: block;
    width: 100%;
    height: clamp(122px, 35vw, 150px);
    flex: none;
    pointer-events: none;
    background-image: url("colorful-assortment-delicate-wildflowers-blooms-across-bright-white-background.jpg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
  }

  .mobile-floral-band--top {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
  }

  .mobile-floral-band--bottom {
    height: clamp(108px, 31vw, 136px);
    background-position: center bottom;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 100%);
  }

  .scroll-progress {
    width: 100%;
  }

  .invitation-section {
    min-height: auto;
    padding: 86px 34px;
  }

  .hero {
    min-height: calc(100svh - clamp(122px, 35vw, 150px));
    padding-top: 66px;
  }

  h1 {
    font-size: clamp(3.8rem, 20vw, 5rem);
  }

  h2 {
    font-size: 3rem;
  }

  .section-number {
    right: 34px;
  }

  .rsvp {
    min-height: 85svh;
  }

  footer {
    padding: 22px 24px 26px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
