:root {
  --paper: #f5f0e9;
  --paper-light: #fbf8f3;
  --ink: #211d1b;
  --muted: #756d67;
  --wine: #8f1f2d;
  --wine-dark: #5d1720;
  --rose: #dca2ad;
  --blue: #74b7d8;
  --line: rgba(33, 29, 27, 0.2);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", Arial, sans-serif;
  --content: 1160px;
  --page: 1200px;
  --side: max(24px, calc((100vw - var(--content)) / 2));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  border: 1px solid rgba(33, 29, 27, 0.12);
  content: "";
  pointer-events: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 var(--side);
  transform: translateX(-50%);
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease, border-color 250ms ease, height 250ms ease;
}

.site-header.is-scrolled {
  height: 62px;
  border-color: var(--line);
  background: rgba(245, 240, 233, 0.92);
  backdrop-filter: blur(14px);
}

.monogram {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  justify-self: start;
  border: 1px solid rgba(33, 29, 27, 0.55);
  border-radius: 50%;
  padding: 0 5px;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.monogram i {
  position: absolute;
  width: 1px;
  height: 24px;
  background: var(--wine);
  transform: rotate(28deg);
}

.site-header nav {
  display: flex;
  gap: 34px;
}

.site-header nav a,
.header-rsvp {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

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

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

.header-rsvp {
  justify-self: end;
  border-bottom: 1px solid var(--ink);
}

.section {
  position: relative;
  padding: clamp(100px, 12vw, 170px) var(--side);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(64px, 8vw, 116px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.78;
}

h2 em {
  color: var(--wine);
  font-weight: 400;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0 28px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  background: var(--wine);
  color: #fff;
}

.button-primary:hover {
  background: var(--wine-dark);
}

.watercolor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(420px, 0.92fr) minmax(470px, 1.08fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
  padding: 106px var(--side) 70px;
  overflow: hidden;
}

.watercolor-hero {
  top: -13%;
  left: -8%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle at 55% 55%, rgba(220, 162, 173, 0.3), rgba(220, 162, 173, 0.08) 48%, transparent 70%);
  filter: blur(10px);
  transform: rotate(-20deg) scaleY(0.8);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0 0 30px;
  font-family: var(--display);
  font-size: clamp(82px, 8.5vw, 136px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.64;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  margin-left: clamp(24px, 5vw, 78px);
  color: var(--wine);
  font-style: italic;
}

.hero h1 i {
  display: block;
  width: max-content;
  margin: 12px 0 4px 40%;
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 400;
  line-height: 1;
}

.hero-note {
  margin: 0 0 22px;
  color: var(--wine);
  font-family: var(--display);
  font-size: 27px;
  font-style: italic;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: 31px;
  letter-spacing: 0.04em;
}

.hero-date i {
  width: 22px;
  height: 1px;
  background: var(--wine);
}

.hero-visual {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
}

.hero-frame {
  position: relative;
  aspect-ratio: 0.73;
  border-radius: 50% 50% 3px 3px / 31% 31% 3px 3px;
  overflow: hidden;
}

.hero-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(39, 18, 17, 0.18));
  content: "";
}

.hero-frame img {
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.hero-visual::before {
  inset: 34px -28px -25px 28px;
  border: 1px solid rgba(143, 31, 45, 0.38);
  border-radius: 50% 50% 3px 3px / 31% 31% 3px 3px;
}

.hero-visual::after {
  right: -100px;
  bottom: -65px;
  width: 270px;
  height: 190px;
  border-radius: 48% 52% 57% 43%;
  background: rgba(116, 183, 216, 0.19);
  filter: blur(3px);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(90deg) translateX(-42px);
  transform-origin: center;
}

.scroll-cue i {
  width: 35px;
  height: 1px;
  background: currentColor;
}

.welcome {
  display: grid;
  min-height: 760px;
  place-items: center;
  background: var(--paper-light);
  text-align: center;
}

.watercolor-welcome {
  top: 17%;
  left: 50%;
  width: min(620px, 78vw);
  height: 480px;
  background: radial-gradient(ellipse, rgba(220, 162, 173, 0.19), rgba(220, 162, 173, 0.08) 46%, transparent 72%);
  filter: blur(4px);
  transform: translateX(-50%) rotate(7deg);
}

.section-number {
  position: absolute;
  top: 70px;
  left: var(--side);
  margin: 0;
  color: var(--wine);
  font-family: var(--display);
  font-size: 18px;
}

.welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 830px;
}

.welcome .lead {
  max-width: 650px;
  margin: 48px auto 32px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.9;
}

.flourish {
  color: var(--wine);
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.12em;
}

.flourish i {
  font-weight: 400;
}

.story {
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.75fr);
  background: var(--paper);
}

.story-image {
  min-height: 760px;
  overflow: hidden;
}

.story-image picture {
  display: block;
  height: 100%;
}

.story-image img {
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.76) contrast(0.96);
}

.story-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(45px, 6vw, 90px);
}

.story-copy span {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.story-copy span::after {
  width: 44px;
  height: 1px;
  background: var(--wine);
  content: "";
}

.story-copy p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(39px, 4vw, 58px);
  line-height: 1.02;
}

.story-copy em {
  color: var(--wine);
  font-weight: 400;
}

.details {
  display: grid;
  grid-template-columns: 0.9fr 0.55fr 1fr;
  gap: clamp(38px, 6vw, 90px);
  align-items: center;
}

.details-heading h2 {
  font-size: clamp(68px, 7.2vw, 104px);
}

.date-card {
  display: grid;
  min-height: 310px;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  border-top: 1px solid var(--wine);
  border-bottom: 1px solid var(--wine);
  padding: 34px 0 32px;
  color: var(--wine);
  text-align: center;
}

.date-card span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.date-card strong {
  display: grid;
  align-self: stretch;
  place-items: center;
  font-family: var(--display);
  font-size: 130px;
  font-weight: 400;
  line-height: 1;
}

.venue-card {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 15px 0 15px 48px;
}

.venue-mark {
  position: absolute;
  z-index: -1;
  top: -80px;
  right: -18px;
  color: rgba(143, 31, 45, 0.07);
  font-family: var(--display);
  font-size: 150px;
}

.venue-card > div + div {
  margin-top: 34px;
}

.card-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.venue-card time,
.venue-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 58px;
  font-weight: 400;
  line-height: 0.9;
}

.venue-card h3 {
  color: var(--wine);
  font-size: 72px;
}

.venue-card address {
  max-width: 290px;
  margin-top: 14px;
  font-size: 18px;
  font-style: normal;
}

.button-outline {
  width: 100%;
  margin-top: 30px;
  border-color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: #fff;
}

.section-dark {
  background: var(--wine-dark);
  color: var(--paper-light);
}

.watercolor-schedule {
  right: -10%;
  bottom: -22%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(220, 162, 173, 0.22), rgba(220, 162, 173, 0.06) 52%, transparent 70%);
}

.schedule {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(60px, 10vw, 160px);
}

.schedule-heading {
  position: relative;
}

.schedule-heading h2 {
  position: sticky;
  top: 120px;
  color: var(--paper-light);
  font-size: clamp(68px, 7vw, 100px);
}

.schedule-heading h2 em {
  color: var(--rose);
}

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

.timeline::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 153px;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
  content: "";
}

.timeline li {
  position: relative;
  display: grid;
  min-height: 155px;
  grid-template-columns: 130px 20px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline time {
  padding-top: 1px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.timeline li > i {
  position: relative;
  z-index: 2;
  width: 9px;
  height: 9px;
  margin: 6px auto 0;
  border: 2px solid var(--wine-dark);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 5px var(--wine-dark);
}

.timeline li div span {
  color: var(--rose);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.timeline h3 {
  margin: 4px 0 7px;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.timeline p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 17px;
}

.dress-code {
  display: grid;
  min-height: 650px;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--paper-light);
}

.dress-ornament {
  position: absolute;
  top: -170px;
  right: -70px;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(143, 31, 45, 0.2);
  border-radius: 50%;
}

.dress-ornament::before,
.dress-ornament::after {
  position: absolute;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.dress-ornament::before {
  inset: 28px;
}

.dress-ornament::after {
  inset: 56px;
}

.dress-copy {
  max-width: 570px;
}

.dress-style {
  margin: 34px 0 22px;
  color: var(--wine);
  font-family: var(--display);
  font-size: 38px;
  font-style: italic;
}

.dress-copy > p:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 19px;
}

.palette {
  display: grid;
  width: 100%;
  max-width: 410px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  justify-self: end;
}

.palette span {
  width: 100%;
  max-width: 88px;
  aspect-ratio: 1;
  border: 5px solid var(--paper-light);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(33, 29, 27, 0.13);
}

.wishes {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(55px, 9vw, 130px);
  align-items: center;
}

.wishes-photo {
  position: relative;
  max-width: 500px;
}

.wishes-photo::before {
  position: absolute;
  z-index: -1;
  inset: -28px 32px 28px -28px;
  border: 1px solid rgba(143, 31, 45, 0.35);
  content: "";
}

.wishes-photo img {
  aspect-ratio: 0.76;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.8);
}

.wishes-copy h2 {
  margin-bottom: 58px;
}

.wish {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 23px 0;
}

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

.wish > span {
  padding-top: 5px;
  color: var(--wine);
  font-family: var(--display);
  font-size: 17px;
}

.wish h3 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.wish p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.countdown {
  background: var(--rose);
  text-align: center;
}

.countdown::before,
.countdown::after {
  position: absolute;
  border: 1px solid rgba(93, 23, 32, 0.21);
  border-radius: 50%;
  content: "";
}

.countdown::before {
  top: -290px;
  left: -130px;
  width: 520px;
  height: 520px;
}

.countdown::after {
  right: -120px;
  bottom: -300px;
  width: 560px;
  height: 560px;
}

.countdown-heading,
.timer,
.countdown-message {
  position: relative;
  z-index: 2;
}

.countdown h2 {
  color: var(--wine-dark);
}

.timer {
  display: grid;
  max-width: 810px;
  grid-template-columns: repeat(4, 1fr);
  margin: 65px auto 0;
}

.timer div {
  border-right: 1px solid rgba(93, 23, 32, 0.25);
}

.timer div:last-child {
  border-right: 0;
}

.timer strong,
.timer span {
  display: block;
}

.timer strong {
  color: var(--wine-dark);
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 400;
  line-height: 0.9;
}

.timer span {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.countdown-message {
  margin: 38px 0 0;
  color: var(--wine-dark);
  font-family: var(--display);
  font-size: 26px;
  font-style: italic;
}

.rsvp {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(60px, 9vw, 140px);
  align-items: start;
  background: var(--paper-light);
}

.watercolor-form {
  bottom: -18%;
  left: -10%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(116, 183, 216, 0.17), rgba(116, 183, 216, 0.05) 52%, transparent 70%);
}

.rsvp-heading {
  position: relative;
  z-index: 2;
}

.rsvp-heading h2 {
  font-size: clamp(68px, 7.5vw, 108px);
}

.rsvp-heading > p:last-child {
  max-width: 430px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.form-shell {
  position: relative;
  z-index: 2;
  min-height: 620px;
  border: 1px solid rgba(33, 29, 27, 0.42);
  padding: clamp(28px, 4.5vw, 58px);
  background: rgba(251, 248, 243, 0.86);
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px 18px;
}

.rsvp-form[hidden],
.form-success[hidden] {
  display: none;
}

.field-full {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.field[hidden] {
  display: none;
}

.field label,
.field legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field label span {
  color: var(--muted);
  font-size: 10px;
}

.field input:not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 11px 2px;
  background: transparent;
  outline: 0;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a79f98;
}

.field input:not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 1px 0 var(--wine);
}

.field textarea {
  min-height: 85px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 6px) 51%, calc(100% - 1px) 51%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

.field-error {
  display: block;
  min-height: 17px;
  padding-top: 3px;
  color: var(--wine);
  font-size: 11px;
}

.field.has-error input:not([type="radio"]),
.field.has-error select,
.field.has-error textarea {
  border-color: var(--wine);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 8px;
  font-size: 13px !important;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.choice input:checked + span {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.button-submit {
  width: 100%;
  justify-content: space-between;
  background: var(--wine);
  color: #fff;
}

.button-submit span:last-child {
  font-family: var(--display);
  font-size: 22px;
}

.button-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-note {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.form-success {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 30px;
  border: 1px solid var(--wine);
  border-radius: 50%;
  color: var(--wine);
  font-family: var(--display);
  font-size: 21px;
}

.form-success h3 {
  margin: 0 0 18px;
  color: var(--wine);
  font-family: var(--display);
  font-size: 80px;
  font-weight: 400;
  line-height: 0.9;
}

.form-success > p:not(.eyebrow) {
  max-width: 420px;
  margin: 0 0 28px;
}

.text-button,
.back-top {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 3px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.finale {
  position: relative;
  display: grid;
  min-height: 760px;
  place-items: center;
  padding: 110px 24px;
  background: var(--wine-dark);
  color: var(--paper-light);
  overflow: hidden;
  text-align: center;
}

.finale::before,
.finale::after {
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(251, 248, 243, 0.12);
  border-radius: 50%;
  content: "";
}

.finale::before {
  top: -270px;
  left: -110px;
}

.finale::after {
  right: -100px;
  bottom: -280px;
}

.finale-inner {
  position: relative;
  z-index: 2;
}

.final-monogram {
  display: grid;
  width: 105px;
  height: 105px;
  grid-template-columns: auto auto auto;
  place-items: center;
  margin: 0 auto 40px;
  border: 1px solid rgba(251, 248, 243, 0.5);
  border-radius: 50%;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 24px;
}

.final-monogram i {
  color: var(--rose);
  font-weight: 400;
}

.finale-inner > p:first-of-type {
  margin: 0 0 25px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.finale h2 {
  color: var(--paper-light);
  font-size: clamp(68px, 9vw, 126px);
}

.finale h2 em {
  color: var(--rose);
}

.finale-inner > p:last-of-type {
  margin: 45px 0 35px;
  font-family: var(--display);
  font-size: 28px;
  font-style: italic;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 19px var(--side);
  background: #191514;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main,
footer {
  width: 100%;
  margin-inline: auto;
}

main {
  background: var(--paper);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(74px, 10.5vw, 105px);
  }

  .details {
    grid-template-columns: 1fr 0.65fr;
  }

  .details-heading {
    grid-column: 1 / -1;
  }

  .venue-card {
    padding-left: 35px;
  }

  .schedule {
    gap: 70px;
  }

  .timeline::before {
    left: 133px;
  }

  .timeline li {
    grid-template-columns: 110px 20px 1fr;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 60px;
  }

  body {
    font-size: 18px;
  }

  .site-header,
  .site-header.is-scrolled {
    height: 60px;
    grid-template-columns: 1fr 1fr;
    padding-inline: 20px;
  }

  .site-header nav {
    display: none;
  }

  .section {
    padding: 96px 22px;
  }

  .hero {
    min-height: 970px;
    grid-template-columns: 1fr;
    gap: 43px;
    align-content: start;
    padding: 91px 22px 72px;
  }

  .watercolor-hero {
    top: -2%;
    left: -35%;
    width: 120vw;
    height: 90vw;
  }

  .hero-copy {
    z-index: 3;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: clamp(72px, 22vw, 94px);
  }

  .hero h1 span:last-child {
    margin-left: 25px;
  }

  .hero h1 i {
    margin-left: 53%;
  }

  .hero-note {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .hero-date {
    margin-bottom: 24px;
    font-size: 27px;
  }

  .hero .button-primary {
    width: 100%;
  }

  .hero-visual {
    width: calc(100% - 30px);
    max-width: 420px;
    justify-self: center;
  }

  .hero-frame {
    aspect-ratio: 0.79;
  }

  .hero-visual::before {
    inset: 20px -16px -16px 16px;
  }

  .scroll-cue {
    display: none;
  }

  h2 {
    font-size: clamp(61px, 19vw, 82px);
  }

  .welcome {
    min-height: 690px;
  }

  .section-number {
    top: 45px;
    left: 22px;
  }

  .welcome h2 {
    font-size: clamp(61px, 19vw, 82px);
  }

  .welcome .lead {
    margin-top: 38px;
    font-size: 15px;
    line-height: 1.85;
  }

  .story {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 600px;
  }

  .story-image img {
    object-position: 52% center;
  }

  .story-copy {
    min-height: 320px;
    padding: 58px 28px 65px;
  }

  .story-copy span {
    margin-bottom: 30px;
  }

  .story-copy p {
    font-size: clamp(39px, 12vw, 51px);
  }

  .details {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .details-heading {
    grid-column: auto;
  }

  .date-card {
    min-height: 260px;
  }

  .date-card strong {
    font-size: 115px;
  }

  .venue-card {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 43px 0 0;
  }

  .venue-card time {
    font-size: 54px;
  }

  .schedule {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .schedule-heading h2 {
    position: static;
  }

  .timeline::before {
    left: 103px;
  }

  .timeline li {
    min-height: 170px;
    grid-template-columns: 82px 16px 1fr;
    gap: 12px;
  }

  .timeline time {
    font-size: 23px;
  }

  .timeline h3 {
    font-size: 31px;
  }

  .timeline p {
    font-size: 15px;
  }

  .dress-code {
    min-height: 750px;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .dress-ornament {
    top: -210px;
    right: -230px;
  }

  .palette {
    max-width: 330px;
    justify-self: center;
  }

  .palette span {
    width: 100%;
  }

  .wishes {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .wishes-photo {
    width: calc(100% - 22px);
    justify-self: end;
  }

  .wishes-photo::before {
    inset: -18px 20px 18px -18px;
  }

  .wishes-copy h2 {
    margin-bottom: 45px;
  }

  .wish {
    grid-template-columns: 31px 1fr;
    gap: 12px;
  }

  .timer {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
    margin-top: 52px;
  }

  .timer div:nth-child(2) {
    border-right: 0;
  }

  .timer strong {
    font-size: 66px;
  }

  .rsvp {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .rsvp-heading > p:last-child {
    margin-top: 30px;
  }

  .form-shell {
    min-height: 0;
    padding: 29px 20px;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .field-full {
    grid-column: auto;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .form-note {
    margin-top: -7px;
  }

  .form-success {
    min-height: 500px;
  }

  .finale {
    min-height: 700px;
    padding-inline: 22px;
  }

  .finale-inner > p:last-of-type {
    font-size: 24px;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 920px;
  }

  .hero h1 {
    font-size: 68px;
  }

  .hero-frame {
    aspect-ratio: 0.82;
  }

  .timeline::before {
    left: 91px;
  }

  .timeline li {
    grid-template-columns: 70px 16px 1fr;
  }

  .timeline time {
    font-size: 17px;
  }

  .palette span {
    width: 100%;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
