@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-italic-400.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --green: #234f36;
  --green-deep: #173b29;
  --green-soft: #8a9e78;
  --sage: #c0d0bd;
  --paper: #f7f2e8;
  --paper-bright: #fffaf1;
  --ink: #302b26;
  --ink-soft: #665e55;
  --taupe: #c8baa6;
  --brown: #4a3f35;
  --sand: #e2dacc;
  --line: rgba(74, 63, 53, 0.23);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --shadow: 0 30px 70px rgba(27, 45, 33, 0.16);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--green-deep);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--green);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.is-dialog-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid #d8c49b;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--paper);
  background: var(--green-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(247, 242, 232, .72);
}

.lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(.98rem, 2vw, 1.08rem);
}

.paper-section {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at 25% 5%, rgba(255, 255, 255, .6), transparent 31%),
    linear-gradient(100deg, rgba(185, 166, 134, .045) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 5px 5px, auto;
}

.green-section {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 12%, rgba(192, 208, 189, .11), transparent 26%),
    radial-gradient(circle at 10% 88%, rgba(200, 186, 166, .07), transparent 27%),
    var(--green);
}

.paper-edge {
  position: absolute;
  z-index: 3;
  left: 0;
  width: 100%;
  height: 46px;
  pointer-events: none;
  background: var(--paper);
  -webkit-mask: url("assets/paper-tear.svg?v=2") center / 100% 100% no-repeat;
  mask: url("assets/paper-tear.svg?v=2") center / 100% 100% no-repeat;
}

.paper-edge--top {
  top: -42px;
  filter: drop-shadow(0 -1px 0 rgba(82, 67, 48, .16));
}

.paper-edge--bottom {
  bottom: -42px;
  transform: scaleY(-1);
  filter: drop-shadow(0 -1px 0 rgba(82, 67, 48, .16));
}

.paper-edge--green {
  background: var(--green-deep);
}

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--green-deep);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: 50% 30%;
  animation: hero-settle 1.5s var(--ease) both;
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(16, 31, 22, .38) 0%, rgba(19, 40, 27, .04) 34%, rgba(15, 28, 20, .78) 100%),
    linear-gradient(90deg, rgba(22, 36, 26, .18), transparent 60%);
}

.hero__nav {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: grid;
  width: min(100% - 32px, 1180px);
  min-height: 78px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 250, 241, .24);
  transform: translateX(-50%);
}

.monogram {
  justify-self: start;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
}

.monogram span {
  margin-inline: 4px;
  font-style: italic;
}

.nav-date {
  justify-self: center;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
}

.nav-rsvp {
  justify-self: end;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid rgba(255, 250, 241, .66);
  border-radius: 999px;
  color: var(--paper-bright);
  background: rgba(255, 255, 255, .06);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color 200ms ease, background 200ms ease;
}

.hero__content {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: clamp(96px, 13vh, 140px);
  left: 20px;
  width: min(780px, calc(100% - 40px));
  margin-inline: auto;
  text-align: center;
}

.hero__content .eyebrow {
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 21vw, 9rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .72;
  text-wrap: balance;
  text-shadow: 0 4px 35px rgba(10, 22, 15, .3);
}

.hero h1 i {
  display: inline-block;
  margin: 0 .03em;
  font-weight: 400;
}

.hero__date {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5.8vw, 2rem);
  letter-spacing: .02em;
  line-height: 1;
}

.hero__time {
  margin: 9px 0 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  animation: nudge-down 1.8s ease-in-out infinite;
}

.invitation {
  padding: clamp(98px, 14vw, 180px) 0 clamp(116px, 16vw, 200px);
}

.invitation__grid {
  display: grid;
  gap: 64px;
}

.invitation h2,
.section-heading h2,
.rsvp__inner h2,
.wishes h2,
.dialog-heading h2,
.form-success h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 12.2vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .88;
  text-wrap: balance;
}

.invitation h2 em,
.section-heading h2 em,
.rsvp__inner h2 em,
.wishes h2 em,
.dialog-heading h2 em,
.form-success h2 em {
  color: var(--green);
  font-weight: 400;
}

.date-lockup {
  display: grid;
  width: min(100%, 560px);
  margin-top: 48px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 4.4rem);
  line-height: 1;
}

.date-lockup__word {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .44em;
  font-style: italic;
}

.date-lockup__word::before,
.date-lockup__word::after {
  width: 100%;
  height: 1px;
  content: "";
  background: var(--line);
}

.photo-stack {
  position: relative;
  width: min(86%, 440px);
  margin-inline: auto;
  padding-bottom: 52px;
}

.photo-stack figure {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-stack__main {
  aspect-ratio: 4 / 5;
  border-radius: 210px 210px 12px 12px;
}

.photo-stack__main img,
.photo-stack__small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-stack__main img {
  object-position: 50% 42%;
}

.photo-stack__small {
  position: absolute;
  right: -9%;
  bottom: 0;
  width: 42%;
  aspect-ratio: 1;
  border: 8px solid var(--paper);
  border-radius: 50%;
}

.photo-stack__small img {
  object-position: 50% 45%;
}

.countdown {
  padding: clamp(110px, 16vw, 170px) 0 clamp(106px, 16vw, 160px);
  text-align: center;
}

.countdown h2,
.program h2 {
  margin: 0;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: clamp(3.35rem, 13vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .9;
}

.countdown__grid {
  display: grid;
  max-width: 790px;
  margin: 54px auto 0;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid rgba(247, 242, 232, .26);
}

.countdown__grid div {
  position: relative;
  padding: 22px 6px 24px;
}

.countdown__grid div:not(:last-child)::after {
  position: absolute;
  top: 28%;
  right: 0;
  width: 1px;
  height: 44%;
  content: "";
  background: rgba(247, 242, 232, .22);
}

.countdown__grid strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 4.5rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__grid span {
  display: block;
  margin-top: 9px;
  color: rgba(247, 242, 232, .65);
  font-size: clamp(.58rem, 2.2vw, .72rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.venue {
  padding: clamp(110px, 16vw, 180px) 0 clamp(116px, 16vw, 190px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .lead {
  margin-inline: auto;
}

.venue-card {
  overflow: hidden;
  border: 1px solid rgba(74, 63, 53, .12);
  border-radius: 2px;
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.venue-card__image {
  position: relative;
  min-height: 285px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.venue-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-card__label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  color: var(--green-deep);
  border-radius: 999px;
  background: rgba(255, 250, 241, .92);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.venue-card__body {
  padding: 34px 26px 32px;
  text-align: center;
}

.line-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 20px;
  color: var(--green);
}

.venue-card__body > p:first-of-type {
  max-width: 430px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  line-height: 1.05;
}

.venue-card__note {
  max-width: 430px;
  margin: 14px auto 25px;
  color: var(--ink-soft);
  font-size: .82rem;
}

.outline-button,
.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms var(--ease);
}

.outline-button {
  color: var(--green);
  border: 1px dashed rgba(35, 79, 54, .55);
  background: transparent;
}

.primary-button {
  color: var(--paper-bright);
  border: 1px solid var(--green);
  background: var(--green);
}

.outline-button svg,
.primary-button svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--ease);
}

.outline-button:hover,
.outline-button:focus-visible {
  color: var(--paper-bright);
  border-color: var(--green);
  background: var(--green);
}

.primary-button:hover,
.primary-button:focus-visible {
  border-color: var(--green-deep);
  background: var(--green-deep);
}

.outline-button:hover svg,
.primary-button:hover svg {
  transform: translateX(3px);
}

.program {
  padding: clamp(110px, 15vw, 170px) 0 clamp(118px, 16vw, 180px);
}

.section-heading--light .eyebrow {
  color: rgba(247, 242, 232, .66);
}

.timeline {
  max-width: 820px;
  margin: 60px auto 0;
  padding: 0;
  list-style: none;
}

.timeline__item {
  display: grid;
  min-height: 135px;
  grid-template-columns: 58px 52px 1fr;
  gap: 12px;
}

.timeline__item time {
  padding-top: 10px;
  color: var(--sand);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timeline__mark {
  --timeline-line-length: 91px;
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(247, 242, 232, .4);
  border-radius: 50%;
}

.timeline__mark::after {
  position: absolute;
  z-index: 0;
  top: calc(100% - 1px);
  left: 50%;
  width: 1px;
  height: var(--timeline-line-length);
  content: "";
  background: linear-gradient(180deg, rgba(247, 242, 232, .38), rgba(247, 242, 232, .17));
  transform: translateX(-50%);
}

.timeline__mark::before {
  position: absolute;
  z-index: 1;
  top: calc(100% - 1px);
  left: 50%;
  width: 2px;
  height: 28px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 250, 241, .84), transparent);
  box-shadow: 0 0 8px rgba(255, 250, 241, .3);
  opacity: 0;
  transform: translate(-50%, -10px);
  animation: timeline-glimmer 4.6s ease-in-out infinite;
}

.timeline__item:nth-child(2) .timeline__mark::before {
  animation-delay: .7s;
}

.timeline__item:nth-child(3) .timeline__mark::before {
  animation-delay: 1.4s;
}

.timeline__item:last-child .timeline__mark::before,
.timeline__item:last-child .timeline__mark::after {
  display: none;
}

.timeline__mark svg {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
}

.timeline__item h3 {
  margin: 5px 0 4px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 500;
  line-height: 1;
}

.timeline__item p {
  max-width: 500px;
  margin: 0;
  color: rgba(247, 242, 232, .65);
  font-size: .79rem;
  line-height: 1.6;
}

.dress-code {
  padding: clamp(110px, 16vw, 180px) 0 clamp(120px, 16vw, 190px);
}

.palette {
  display: flex;
  margin: 42px auto 58px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.palette span {
  width: clamp(39px, 10vw, 58px);
  aspect-ratio: 1;
  border: 5px solid rgba(255, 250, 241, .78);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 3px 15px rgba(74, 63, 53, .13);
}

.looks-grid {
  display: grid;
  gap: 28px;
}

.look-card {
  overflow: hidden;
  background: var(--paper-bright);
  box-shadow: 0 24px 60px rgba(62, 54, 46, .12);
}

.look-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.look-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.look-card__caption {
  padding: 24px;
}

.look-card__caption span {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
}

.look-card__caption p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.wishes {
  padding: clamp(112px, 16vw, 180px) 0;
}

.wishes__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.wishes__image {
  width: min(86%, 420px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 232, .25);
  border-radius: 220px 220px 8px 8px;
}

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

.wishes h2 {
  color: var(--paper-bright);
}

.wishes h2 em {
  color: var(--sand);
}

.wishes__copy > p:last-child {
  max-width: 540px;
  margin: 26px 0 0;
  color: rgba(247, 242, 232, .68);
}

.rsvp {
  padding: clamp(115px, 17vw, 190px) 0 clamp(120px, 18vw, 200px);
  text-align: center;
}

.rsvp__inner {
  max-width: 760px;
}

.rsvp__inner .lead {
  max-width: 500px;
  margin-inline: auto;
}

.rsvp__inner .primary-button {
  margin-top: 36px;
}

.rsvp__hint {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: .68rem;
}

.footer {
  display: flex;
  min-height: 190px;
  padding: 62px 20px 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--paper);
  background: var(--green-deep);
  text-align: center;
}

.footer p {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
}

.footer p span {
  font-style: italic;
}

.footer time {
  color: rgba(247, 242, 232, .6);
  font-size: .65rem;
  letter-spacing: .18em;
}

.rsvp-dialog {
  width: min(100% - 24px, 1040px);
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 40px 120px rgba(9, 25, 16, .38);
}

.rsvp-dialog::backdrop {
  background: rgba(10, 26, 17, .72);
  backdrop-filter: blur(8px);
}

.rsvp-dialog[open] {
  animation: dialog-in 260ms var(--ease) both;
}

.rsvp-dialog.is-closing {
  animation: dialog-out 180ms ease-in both;
}

.rsvp-dialog__panel {
  position: relative;
  max-height: calc(100dvh - 20px);
  padding: clamp(24px, 3vw, 34px) clamp(20px, 5vw, 58px) 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 95% 0, rgba(138, 158, 120, .17), transparent 28%),
    var(--paper);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--green-deep);
  border: 1px solid rgba(35, 79, 54, .22);
  border-radius: 50%;
  background: rgba(255, 250, 241, .72);
}

.dialog-close svg {
  width: 21px;
  height: 21px;
}

.dialog-heading {
  padding-right: 38px;
}

.dialog-heading h2,
.form-success h2 {
  font-size: clamp(3rem, 10vw, 4.7rem);
}

.dialog-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.rsvp-form {
  margin-top: 16px;
}

.form-field {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.form-field label:not(.choice-pill),
.form-field legend {
  display: block;
  margin: 0 0 10px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 500;
  line-height: 1.16;
}

.form-field label span,
.form-field legend span {
  color: #8d493c;
}

.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(74, 63, 53, .2);
  border-radius: 3px;
  color: var(--ink);
  background: rgba(255, 250, 241, .74);
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

.form-field input[type="text"]:focus,
.form-field textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 79, 54, .12);
}

.form-field [aria-invalid="true"] {
  border-color: #9b4f42 !important;
}

.field-help {
  margin: -3px 0 13px;
  color: var(--ink-soft);
  font-size: .72rem;
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #8f3f35;
  font-size: .72rem;
  line-height: 1.4;
}

.field-error:empty,
.form-status:empty {
  display: none;
}

.choice-row,
.checkbox-grid {
  display: grid;
  gap: 9px;
}

.choice-pill,
.checkbox-grid label {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  cursor: pointer;
}

.choice-pill input,
.checkbox-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-pill span,
.checkbox-grid label span {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 10px 13px;
  color: var(--ink);
  border: 1px solid rgba(74, 63, 53, .18);
  border-radius: 999px;
  background: rgba(255, 250, 241, .68);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.choice-pill input:checked + span,
.checkbox-grid input:checked + span {
  color: var(--paper-bright);
  border-color: var(--green);
  background: var(--green);
}

.choice-pill input:focus-visible + span,
.checkbox-grid input:focus-visible + span {
  outline: 3px solid #d8c49b;
  outline-offset: 3px;
}

.choice-pill input:disabled + span,
.checkbox-grid input:disabled + span {
  cursor: not-allowed;
  opacity: .42;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.form-submit {
  width: 100%;
  min-height: 56px;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: .65;
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #8f3f35;
  text-align: center;
  font-size: .76rem;
}

.privacy-note {
  margin: 3px 0 0;
  color: var(--ink-soft);
  text-align: center;
  font-size: .66rem;
}

.form-success {
  padding: 56px 0 30px;
  text-align: center;
}

.form-success > svg {
  width: 70px;
  height: 70px;
  margin: 0 auto 28px;
  color: var(--green);
}

.form-success > svg circle {
  fill: rgba(192, 208, 189, .24);
}

.form-success > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.form-success .outline-button {
  margin-top: 16px;
}

[hidden] {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

@keyframes hero-settle {
  from { opacity: .68; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes nudge-down {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@keyframes timeline-glimmer {
  0%, 12% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  28% {
    opacity: .72;
  }
  72% {
    opacity: .42;
  }
  88%, 100% {
    opacity: 0;
    transform: translate(-50%, calc(var(--timeline-line-length) - 20px));
  }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes dialog-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(12px) scale(.99); }
}

@media (min-width: 560px) {
  .section-shell {
    width: min(100% - 64px, 1120px);
  }

  .hero__nav {
    width: min(100% - 64px, 1180px);
  }

  .hero__content {
    width: min(780px, calc(100% - 64px));
  }

  .choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .rsvp-dialog__panel {
    overflow: hidden;
  }

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

  .rsvp-form .form-field {
    margin: 0;
  }

  .rsvp-form [data-alcohol-field],
  .rsvp-form .form-submit,
  .rsvp-form .form-status,
  .rsvp-form .privacy-note {
    grid-column: 1 / -1;
  }

  .rsvp-form .checkbox-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero__image {
    object-position: 50% 8%;
  }

  .hero__content {
    bottom: 100px;
  }

  .invitation__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
    align-items: center;
    gap: 80px;
  }

  .photo-stack {
    width: 100%;
  }

  .venue-card {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
  }

  .venue-card__image {
    min-height: 460px;
    aspect-ratio: auto;
  }

  .venue-card__body {
    display: flex;
    padding: 52px 36px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .timeline__item {
    min-height: 150px;
    grid-template-columns: 90px 68px 1fr;
    gap: 18px;
  }

  .timeline__item time {
    font-size: 1.85rem;
  }

  .timeline__mark {
    --timeline-line-length: 99px;
    width: 52px;
    height: 52px;
  }

  .timeline__mark::after {
    height: var(--timeline-line-length);
  }

  .looks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wishes__grid {
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1fr);
    gap: 86px;
  }

  .wishes__image {
    width: 100%;
  }
}

@media (min-width: 1080px) {
  .hero__content {
    left: 7.5vw;
    right: auto;
    bottom: 13vh;
    margin: 0;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(6.8rem, 9.6vw, 9.5rem);
  }

  .scroll-cue {
    right: 7.5vw;
    left: auto;
    transform: none;
  }

  .section-heading h2,
  .invitation h2,
  .rsvp__inner h2,
  .wishes h2 {
    font-size: 5.5rem;
  }
}

@media (min-width: 1600px) {
  .hero__image {
    object-position: 50% 14%;
  }

  .hero__content {
    left: 5vw;
    bottom: clamp(170px, 22vh, 220px);
  }
}

@media (max-width: 430px) {
  .hero__nav {
    grid-template-columns: 1fr auto;
  }

  .nav-date {
    display: none;
  }

  .hero__content {
    bottom: 103px;
  }

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

  .date-lockup {
    gap: 8px;
  }

  .date-lockup__word {
    gap: 8px;
  }

  .timeline__item {
    grid-template-columns: 54px 47px 1fr;
    gap: 7px;
  }

  .timeline__item p {
    font-size: .72rem;
  }

  .rsvp-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
  }

  .rsvp-dialog__panel {
    max-height: calc(100dvh - 12px);
  }
}

@media (hover: hover) {
  .nav-rsvp:hover {
    color: var(--green-deep);
    background: var(--paper-bright);
  }
}

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

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

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