:root {
  --paper: #f4eee6;
  --paper-soft: #fffaf4;
  --paper-deep: #e8ddd1;
  --ink: #29231f;
  --ink-soft: #73675f;
  --wine: #582d2d;
  --wine-soft: #744a46;
  --terracotta: #a15e47;
  --blush: #e3bfb4;
  --blush-light: #f0ddd6;
  --line: rgba(41, 35, 31, .15);
  --shadow: 0 24px 80px rgba(50, 35, 29, .14);
}

html {
  scroll-padding-top: 6.5rem;
}

body {
  background: var(--paper);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

.site-nav {
  top: max(1rem, env(safe-area-inset-top));
  width: min(1160px, calc(100% - 2rem));
  min-height: 62px;
  padding: .55rem .62rem .55rem 1.15rem;
  border: 1px solid rgba(72, 50, 42, .11);
  background: rgba(255, 250, 244, .9);
  color: var(--ink);
  box-shadow: 0 14px 45px rgba(42, 31, 26, .11);
  backdrop-filter: blur(20px) saturate(120%);
}

.site-nav.scrolled {
  border-color: rgba(72, 50, 42, .14);
  background: rgba(255, 250, 244, .96);
  color: var(--ink);
  box-shadow: 0 14px 45px rgba(42, 31, 26, .14);
}

.nav-brand {
  font-size: 1.12rem;
  letter-spacing: .1em;
}

.nav-heart {
  color: var(--terracotta);
}

.nav-links {
  gap: .05rem;
}

.nav-links a {
  padding: .62rem .74rem;
  color: var(--ink);
  font-size: .6rem;
  letter-spacing: .15em;
}

.nav-links a:hover,
.site-nav.scrolled .nav-links a:hover {
  background: rgba(88, 45, 45, .07);
}

.nav-links .nav-save {
  min-height: 46px;
  margin-left: .45rem;
  padding-inline: 1.18rem;
  display: inline-flex;
  align-items: center;
  background: var(--wine);
  color: white;
}

.nav-mobile-actions,
.mobile-menu {
  display: none;
}

.hero {
  height: 100svh;
  min-height: 620px;
  max-height: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr);
  background: var(--paper-soft);
}

.hero-media {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  height: 100%;
  background: #4a3d36;
}

.hero-media img {
  object-position: center 52%;
  filter: saturate(.8) contrast(.98);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(32, 24, 21, .13), transparent 36%), linear-gradient(180deg, transparent 64%, rgba(24, 17, 14, .4));
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 1.3rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .42);
  background: none;
  pointer-events: none;
}

.hero-photo-note {
  left: 2.3rem;
  bottom: 2.15rem;
  font-size: .57rem;
  letter-spacing: .21em;
}

.hero-copy {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  height: 100%;
  padding: clamp(6.8rem, 12vh, 8.5rem) clamp(2rem, 4vw, 4.25rem) clamp(2.25rem, 5vh, 3.5rem);
  justify-content: center;
  isolation: isolate;
}

.hero-copy::before {
  width: clamp(23rem, 38vw, 40rem);
  height: clamp(23rem, 38vw, 40rem);
  top: auto;
  right: auto;
  left: clamp(-20rem, -13vw, -8rem);
  bottom: clamp(-20rem, -18vw, -9rem);
  z-index: -1;
  border: 1px solid rgba(88, 45, 45, .08);
  background: rgba(227, 191, 180, .26);
}

.hero-copy::after {
  content: "A+B";
  right: .06em;
  bottom: -.09em;
  color: rgba(88, 45, 45, .045);
  font-size: clamp(7rem, 13vw, 13rem);
  letter-spacing: -.08em;
}

.hero-kicker {
  margin-bottom: 1.8rem;
  color: var(--wine-soft);
  letter-spacing: .25em;
}

.hero-kicker::before {
  width: 3.4rem;
}

.hero-title {
  width: min-content;
  font-size: clamp(4.25rem, 7vw, 7.4rem);
  letter-spacing: -.08em;
  line-height: .72;
}

.hero-title .hero-and {
  margin: .08em 0 .12em .48em;
  color: var(--terracotta);
  font-size: .51em;
}

.hero-title .hero-second {
  margin-left: .28em;
}

.hero-details {
  margin-top: clamp(1.45rem, 3.2vh, 2.25rem);
  padding-top: 1.05rem;
  grid-template-columns: 1fr;
  gap: .38rem;
  border-color: rgba(41, 35, 31, .16);
}

.hero-date {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  letter-spacing: .04em;
}

.hero-place {
  font-size: .76rem;
  letter-spacing: .035em;
}

.hero-actions {
  margin-top: 1.25rem;
}

.button {
  min-height: 50px;
  padding: .86rem 1.35rem;
  font-size: .61rem;
  letter-spacing: .16em;
}

.button.primary {
  box-shadow: 0 12px 28px rgba(88, 45, 45, .17);
}

.ribbon {
  padding: .9rem 0;
  border: 0;
  background: var(--wine);
}

.ribbon-track {
  animation-duration: 38s;
}

.ribbon-track span {
  padding-right: 2.8rem;
  color: rgba(255, 250, 244, .88);
  font-family: var(--sans);
  font-size: .61rem;
  font-weight: 500;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.section {
  padding: clamp(5.5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem);
}

.section-inner {
  width: min(1160px, 100%);
}

.kicker {
  margin-bottom: 1.15rem;
  letter-spacing: .25em;
}

.section-title {
  font-size: clamp(3.2rem, 6.1vw, 6.5rem);
  letter-spacing: -.06em;
  line-height: .93;
}

.story {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.story::after {
  content: "Song of Solomon 3:4";
  position: absolute;
  right: -5rem;
  bottom: 4rem;
  color: rgba(88, 45, 45, .06);
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 9rem);
  white-space: nowrap;
  pointer-events: none;
}

.story-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.story-photo-wrap {
  padding: 0 0 2.2rem 2.2rem;
}

.story-photo-wrap::before {
  width: 62%;
  height: 44%;
  border-radius: 10rem 10rem 1rem 1rem;
  background: var(--blush-light);
}

.story-photo-wrap::after {
  content: "12 · 11 · 26";
  position: absolute;
  right: -1.9rem;
  top: 50%;
  z-index: 2;
  color: var(--wine-soft);
  font-size: .57rem;
  font-weight: 600;
  letter-spacing: .23em;
  transform: rotate(90deg);
}

.story-photo {
  height: min(66vw, 720px);
  border-radius: 14rem 14rem 1rem 1rem / 7rem 7rem 1rem 1rem;
  box-shadow: var(--shadow);
}

.story-copy .section-title {
  max-width: 690px;
}

.story-copy > p:not(.kicker) {
  max-width: 35rem;
  margin-top: 1.35rem;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  line-height: 1.8;
}

.story-scripture {
  margin-top: 2.6rem;
  padding: 1.7rem 0 0 2rem;
  border-color: rgba(88, 45, 45, .2);
}

.story-scripture p {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.details {
  background: #4c2829;
}

.details::before {
  width: 42rem;
  height: 42rem;
  top: -25rem;
  right: -16rem;
}

.details::after {
  content: "Texas";
  position: absolute;
  left: -.04em;
  bottom: -.24em;
  color: rgba(255, 255, 255, .025);
  font-family: var(--script);
  font-size: clamp(10rem, 23vw, 25rem);
  line-height: 1;
  pointer-events: none;
}

.details .section-inner {
  position: relative;
  z-index: 1;
}

.details-intro {
  align-items: end;
}

.details-intro .section-title {
  max-width: 760px;
}

.details-intro > p {
  padding-bottom: .45rem;
  line-height: 1.75;
}

.details-grid {
  margin-top: clamp(3.3rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.date-panel,
.venue-panel {
  min-height: 480px;
  border-radius: 1.25rem;
}

.date-panel {
  background: rgba(29, 15, 16, .25);
}

.date-display {
  font-size: clamp(5.7rem, 12vw, 9.5rem);
}

.date-display .year {
  margin-top: .14em;
  margin-left: .38em;
  font-size: .39em;
}

.venue-panel {
  background: #251b18;
}

.venue-panel img {
  opacity: .7;
  filter: saturate(.7);
}

.venue-panel::after {
  background: linear-gradient(180deg, rgba(20, 14, 12, .05), rgba(20, 14, 12, .22) 35%, rgba(20, 14, 12, .94));
}

.venue-content h3 {
  font-size: clamp(2.8rem, 5.2vw, 5rem);
}

.countdown {
  margin-top: 1.25rem;
  border-radius: 1.15rem;
  background: rgba(35, 18, 19, .28);
}

.count-unit {
  padding: clamp(1.25rem, 2.8vw, 1.9rem);
}

.count-number {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
}

.gallery {
  background: var(--paper-soft);
}

.gallery-heading {
  align-items: end;
}

.gallery-heading .section-title {
  max-width: 740px;
}

.gallery-note {
  padding-bottom: .45rem;
  line-height: 1.75;
}

.gallery-grid {
  margin-top: clamp(3rem, 5.5vw, 4.7rem);
  grid-auto-rows: 54px;
  gap: clamp(.65rem, 1.2vw, .9rem);
}

.gallery-card {
  border-radius: .7rem;
}

.gallery-card:nth-child(1) {
  grid-column: 1 / 6;
  grid-row: span 10;
}

.gallery-card:nth-child(2) {
  grid-column: 6 / 10;
  grid-row: span 5;
}

.gallery-card:nth-child(3) {
  grid-column: 10 / 13;
  grid-row: span 6;
}

.gallery-card:nth-child(4) {
  grid-column: 6 / 10;
  grid-row: span 5;
}

.gallery-card:nth-child(5) {
  grid-column: 10 / 13;
  grid-row: span 4;
}

.guest-guide {
  position: relative;
  background: var(--paper);
}

.guide-grid {
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.guide-heading .section-title {
  font-size: clamp(3.4rem, 5.7vw, 5.9rem);
}

.guide-heading > p:not(.kicker) {
  line-height: 1.75;
}

.guide-list {
  border-color: rgba(41, 35, 31, .18);
}

.guide-item {
  padding: 2.25rem 0;
  grid-template-columns: 3.25rem 1fr;
}

.guide-number {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(161, 94, 71, .35);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.guide-item h3 {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
}

.guide-item p {
  max-width: 36rem;
  line-height: 1.75;
}

.rsvp {
  background: #ead8d2;
}

.rsvp::before {
  content: "A+B";
  position: absolute;
  left: -.08em;
  top: -.25em;
  color: rgba(88, 45, 45, .04);
  font-family: var(--serif);
  font-size: clamp(12rem, 30vw, 28rem);
  line-height: 1;
  pointer-events: none;
}

.rsvp-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.rsvp-copy .section-title {
  font-size: clamp(3.8rem, 6vw, 6.3rem);
}

.rsvp-copy > p:not(.kicker) {
  line-height: 1.75;
}

.rsvp-form {
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-radius: 1.25rem;
  background: #4c2829;
  box-shadow: 0 28px 80px rgba(88, 45, 45, .2);
}

.field input,
.field select,
.field textarea,
.guest-row input,
.guest-row select {
  min-height: 52px;
  border-radius: .6rem;
}

.attendance-toggle button {
  min-height: 50px;
}

.submit-button {
  min-height: 54px;
}

.closing {
  min-height: min(82svh, 820px);
}

.closing > img {
  object-position: center 43%;
  opacity: .64;
  filter: saturate(.75);
}

.closing::after {
  background: linear-gradient(180deg, rgba(25, 17, 14, .18), rgba(25, 17, 14, .72));
}

.closing-copy h2 {
  font-size: clamp(4.8rem, 12vw, 10rem);
}

footer {
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
}

@media (min-width: 821px) and (max-height: 760px) {
  .hero-copy {
    padding-top: 6rem;
    padding-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(3.9rem, 6.3vw, 5.8rem);
  }

  .hero-kicker {
    margin-bottom: 1.2rem;
  }

  .hero-details {
    margin-top: 1.2rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }
}

@media (max-width: 1020px) and (min-width: 821px) {
  .site-nav {
    width: calc(100% - 1.25rem);
  }

  .nav-links a {
    padding-inline: .55rem;
    font-size: .56rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, .98fr);
  }

  .hero-copy {
    padding-inline: 2rem;
  }

  .hero-title {
    font-size: clamp(4rem, 6.6vw, 5.5rem);
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .site-nav {
    top: max(.6rem, env(safe-area-inset-top));
    width: calc(100% - 1rem);
    min-height: 56px;
    padding: .42rem .45rem .42rem .9rem;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
  }

  .nav-rsvp,
  .nav-toggle {
    min-height: 44px;
    padding: .65rem .9rem;
    border: 0;
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .nav-rsvp {
    display: inline-flex;
    align-items: center;
    background: var(--wine);
    color: white;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle-lines {
    width: 15px;
    display: grid;
    gap: 4px;
  }

  .nav-toggle-lines i {
    width: 100%;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform .2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:first-child {
    transform: translateY(2.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:last-child {
    transform: translateY(-2.5px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: calc(6.4rem + env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
    display: grid;
    align-items: center;
    overflow-y: auto;
    background: rgba(244, 238, 230, .98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }

  .mobile-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu-inner {
    width: min(28rem, 100%);
    margin: auto;
    display: grid;
  }

  .mobile-menu-label {
    margin: 0 0 1.4rem;
    color: var(--terracotta);
    font-size: .61rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
  }

  .mobile-menu a {
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(2.1rem, 10vw, 3.2rem);
    line-height: 1.08;
    text-decoration: none;
  }

  .mobile-menu .mobile-menu-rsvp {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: .7rem;
    background: var(--wine);
    color: white;
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .hero {
    width: 100%;
    height: auto;
    min-height: 100svh;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(16rem, 42svh) minmax(0, 1fr);
    background: var(--paper-soft);
  }

  .hero-media {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 100%;
  }

  .hero-media img {
    object-position: center 44%;
  }

  .hero-media::before {
    background: linear-gradient(180deg, rgba(30, 21, 18, .08), transparent 58%, rgba(30, 21, 18, .42));
  }

  .hero-media::after {
    inset: .75rem;
  }

  .hero-photo-note {
    left: 1.5rem;
    bottom: 1.35rem;
    display: block;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    height: auto;
    padding: 2.4rem 1.25rem 2.25rem;
    justify-content: center;
    color: var(--ink);
  }

  .hero-copy::before {
    display: block;
    left: auto;
    right: -15rem;
    bottom: -15rem;
  }

  .hero-kicker {
    margin-bottom: 1rem;
    color: var(--wine-soft);
  }

  .hero-title {
    font-size: clamp(3.9rem, 18vw, 5.7rem);
    text-shadow: none;
  }

  .hero-title .hero-and {
    color: var(--terracotta);
  }

  .hero-details {
    margin-top: 1.2rem;
    padding-top: .85rem;
    border-color: var(--line);
  }

  .hero-place {
    color: var(--ink-soft);
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .hero-actions .button {
    border-color: var(--ink);
    color: var(--ink);
  }

  .hero-actions .button.primary {
    border-color: var(--wine);
    background: var(--wine);
    color: white;
  }

  .story-grid,
  .details-grid,
  .guide-grid,
  .rsvp-grid {
    grid-template-columns: 1fr;
  }

  .story-grid {
    gap: 3.5rem;
  }

  .story-photo-wrap {
    width: min(36rem, 100%);
    margin: 0 auto;
    padding: 0 0 1.6rem 1.6rem;
  }

  .story-photo {
    height: min(125vw, 650px);
  }

  .story-photo-wrap::after {
    right: -2rem;
  }

  .details-intro,
  .gallery-heading {
    display: block;
  }

  .details-intro > p,
  .gallery-note {
    margin-top: 1.35rem;
    padding-bottom: 0;
  }

  .details-grid {
    gap: 1rem;
  }

  .date-panel,
  .venue-panel {
    min-height: 440px;
  }

  .gallery-grid {
    margin-right: -1.25rem;
    padding-right: 1.25rem;
    gap: .75rem;
  }

  .gallery-card,
  .gallery-card:nth-child(n) {
    flex: 0 0 min(78vw, 390px);
    height: min(112vw, 550px);
  }

  .guide-grid,
  .rsvp-grid {
    gap: 3rem;
  }

  .guide-heading,
  .rsvp-copy {
    position: static;
  }

  .closing {
    min-height: 68svh;
  }
}

@media (max-width: 540px) {
  .section {
    padding-block: 5.2rem;
  }

  .hero-copy {
    padding: 2rem 1rem 1.8rem;
  }

  .hero-title {
    font-size: clamp(3.7rem, 18vw, 5rem);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .ribbon-track span {
    padding-right: 2rem;
  }

  .date-panel,
  .venue-panel {
    min-height: 400px;
  }

  .date-display {
    font-size: clamp(5rem, 28vw, 7rem);
  }

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

  .field-row,
  .guest-row {
    grid-template-columns: 1fr;
  }

  .attendance-toggle {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }
}
