:root {
  color-scheme: light;
  --ink: #211913;
  --muted: #706457;
  --paper: #fbf7ef;
  --rose: #9d4f57;
  --gold: #c8a45d;
  --bright-gold: #f0d58c;
  --leaf: #46543c;
  --mist: #e7eee9;
  --night: #07090d;
  --blue-black: #0e1722;
  --line: rgba(33, 25, 19, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 50% 50%, rgba(240, 213, 140, 0.18), transparent 34%),
    linear-gradient(135deg, #05080d, #101925 55%, #05080d);
  opacity: 0;
  pointer-events: none;
  transition: opacity 850ms ease;
}

body.page-is-leaving::before {
  opacity: 1;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-height: 38px;
  padding: 0 16px;
  color: #dffcff;
  background:
    linear-gradient(180deg, rgba(23, 41, 48, 0.98), rgba(12, 22, 30, 0.98));
  border: 1px solid rgba(19, 190, 216, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(4, 14, 18, 0.75),
    0 0 0 1px rgba(166, 119, 43, 0.72),
    0 10px 24px rgba(0, 0, 0, 0.32);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    filter 160ms ease;
}

.music-toggle--active {
  color: #fff8df;
  border-color: rgba(240, 213, 140, 0.86);
}

.music-toggle:active {
  filter: brightness(1.12);
  transform: translateY(2px) scale(0.97);
  box-shadow:
    inset 0 0 0 1px rgba(4, 14, 18, 0.75),
    inset 0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(166, 119, 43, 0.72),
    0 5px 14px rgba(0, 0, 0, 0.36);
}

.music-player {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 140px;
  border: 0;
  opacity: 0.01;
  pointer-events: none;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 4vw, 54px);
  background: rgba(2, 4, 8, 0.9);
  border-bottom: 1px solid rgba(240, 213, 140, 0.18);
  backdrop-filter: blur(16px);
}

.site-header--welcome {
  justify-content: flex-start;
}

.brand {
  color: #f4ead0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand--play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  min-height: 74px;
  padding: 0 42px 0 94px;
  background:
    linear-gradient(180deg, rgba(32, 39, 43, 0.98), rgba(12, 18, 24, 0.98));
  border: 3px solid #5d4624;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.42),
    inset 0 0 0 2px rgba(6, 11, 16, 0.92);
}

.brand--play::before {
  content: "";
  position: absolute;
  inset: 15px 24px 15px 96px;
  z-index: 1;
  background: linear-gradient(90deg, #152129, #1f262b 72%, #141a20);
  border: 4px solid #12aebe;
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 50%, calc(100% - 25px) 100%, 0 100%);
  box-shadow:
    0 0 0 1px rgba(1, 28, 37, 0.9),
    0 0 12px rgba(18, 174, 190, 0.18);
  pointer-events: none;
}

.brand--play::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid #12aebe;
  transform: translateY(-50%);
}

.brand--play span:last-child {
  position: relative;
  z-index: 2;
}

.brand__logo-wrap {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 4px;
  background:
    radial-gradient(circle at 50% 50%, rgba(20, 190, 204, 0.35), transparent 58%),
    linear-gradient(145deg, #f4d77f, #8c5d21);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #05101a,
    0 0 0 5px #b98639,
    0 0 18px rgba(20, 196, 218, 0.22);
  transform: translateY(-50%);
  overflow: hidden;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 34px);
}

nav a {
  color: rgba(255, 250, 238, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #fffdf5;
}

.mobile-menu-toggle {
  display: none;
}

.invite-screen[hidden] {
  display: none;
}

.invite-screen--active {
  animation: page-enter 700ms ease both;
}

.panel {
  min-height: 100svh;
  padding: 104px clamp(20px, 5vw, 76px) 56px;
}

.welcome.panel {
  padding-top: 56px;
}

.welcome {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fffaf0;
  background: #05080d;
}

.welcome-photo {
  position: absolute;
  inset: -24px;
  background:
    linear-gradient(rgba(4, 7, 11, 0.08), rgba(4, 7, 11, 0.42)),
    url("assets/opening-ring.jpeg");
  background-position: 64% 42%;
  background-size: cover;
  animation: welcome-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes welcome-drift {
  from {
    transform: scale(1.03) translate3d(-8px, -4px, 0);
  }

  to {
    transform: scale(1.08) translate3d(12px, 8px, 0);
  }
}

.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 41%, rgba(255, 246, 207, 0.24), transparent 14%),
    radial-gradient(circle at 68% 41%, transparent 0 20%, rgba(6, 9, 13, 0.18) 36%, rgba(6, 9, 13, 0.48) 78%),
    linear-gradient(90deg, rgba(5, 9, 14, 0.58), transparent 38%, transparent 73%, rgba(5, 9, 14, 0.26));
}

.welcome-sparkles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 21% 30%, rgba(240, 213, 140, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 77% 24%, rgba(19, 190, 216, 0.32) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 68%, rgba(240, 213, 140, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 33% 78%, rgba(255, 246, 207, 0.32) 0 1px, transparent 2px);
  opacity: 0.55;
  animation: sparkle-float 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes sparkle-float {
  from {
    transform: translateY(0);
    opacity: 0.35;
  }

  to {
    transform: translateY(-12px);
    opacity: 0.72;
  }
}

.welcome-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.42)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 90px
    );
  pointer-events: none;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(1040px, 100%);
  max-width: 1040px;
  padding: clamp(26px, 5vw, 48px) clamp(22px, 6vw, 74px);
  text-align: center;
  background:
    linear-gradient(rgba(6, 11, 17, 0.42), rgba(6, 11, 17, 0.26));
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
}

.welcome-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #6c4a20, #f1d184 24%, #7a5525 42%, #d3a85a 62%, #f5dc94 80%, #6a491f);
  clip-path: polygon(
    22px 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% calc(100% - 22px),
    calc(100% - 22px) 100%,
    22px 100%,
    0 calc(100% - 22px),
    0 22px,
    22px 0,
    23px 2px,
    2px 23px,
    2px calc(100% - 23px),
    23px calc(100% - 2px),
    calc(100% - 23px) calc(100% - 2px),
    calc(100% - 2px) calc(100% - 23px),
    calc(100% - 2px) 23px,
    calc(100% - 23px) 2px,
    23px 2px
  );
  box-shadow:
    0 0 0 1px rgba(12, 8, 5, 0.9),
    0 20px 64px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(199, 159, 83, 0.14);
  pointer-events: none;
}

.welcome-copy::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(19, 190, 216, 0.28);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow: inset 0 0 22px rgba(19, 190, 216, 0.05);
  pointer-events: none;
}

.welcome-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--bright-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

h1 {
  position: relative;
  max-width: 13ch;
  color: #fffdf8;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.6rem, 9.2vw, 8.4rem);
  font-weight: 400;
  line-height: 1.02;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}

.name-reveal {
  display: inline-block;
  padding: 0.16em 0.34em 0.22em;
  margin: -0.16em -0.34em -0.22em;
  opacity: 0;
  filter: blur(2px);
  transform: translateY(8px);
  animation: name-flow 6.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  -webkit-mask-image: linear-gradient(90deg, #000 0 52%, rgba(0, 0, 0, 0.78) 64%, transparent 78%);
  mask-image: linear-gradient(90deg, #000 0 52%, rgba(0, 0, 0, 0.78) 64%, transparent 78%);
  -webkit-mask-position: 118% 0;
  mask-position: 118% 0;
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
}

@keyframes name-flow {
  0% {
    opacity: 0.2;
    filter: blur(2px);
    transform: translateY(8px);
    -webkit-mask-position: 118% 0;
    mask-position: 118% 0;
  }

  92% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }

  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

h2 {
  font-size: clamp(3.2rem, 9vw, 7rem);
}

h3 {
  font-size: 2.25rem;
}

.subtitle {
  margin: 28px 0 28px;
  color: var(--bright-gold);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 700;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.primary-action,
button {
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: var(--leaf);
  border: 0;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.music-toggle,
.ready-check__button,
.ceremony-countdown__button,
.rsvp-submit,
.submit-modal__card button {
  user-select: none;
  touch-action: manipulation;
}

.primary-action {
  display: inline-flex;
  align-items: center;
}

.ready-check {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(560px, 100%);
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(rgba(13, 22, 31, 0.9), rgba(6, 10, 15, 0.92)),
    linear-gradient(135deg, rgba(240, 213, 140, 0.12), transparent);
  border: 1px solid rgba(240, 213, 140, 0.45);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ready-check__frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(240, 213, 140, 0.18);
  pointer-events: none;
}

.ready-check__kicker {
  margin: 0 0 16px;
  color: var(--bright-gold);
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.65rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
}

.ready-check__loader {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 4px 0 10px;
  color: var(--bright-gold);
  transition:
    width 700ms ease,
    height 700ms ease,
    margin 700ms ease,
    transform 700ms ease;
}

.ready-check__loader::before,
.ready-check__loader::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ready-check__loader::before {
  background:
    conic-gradient(from -90deg, #12c1cf 0turn, #f0d58c 0.2turn, rgba(240, 213, 140, 0.15) 0.2turn 1turn);
  animation: ready-sweep 1.05s linear infinite;
  box-shadow:
    0 0 28px rgba(16, 189, 202, 0.16),
    inset 0 0 16px rgba(240, 213, 140, 0.08);
}

.ready-check__loader::after {
  inset: 10px;
  background:
    radial-gradient(circle, rgba(13, 22, 31, 0.96), rgba(6, 10, 15, 0.98));
  border: 1px solid rgba(240, 213, 140, 0.35);
  transition: inset 700ms ease;
}

.ready-check__portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: 50% 46%;
  border: 2px solid rgba(240, 213, 140, 0.68);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(8, 13, 19, 0.86),
    0 0 18px rgba(240, 213, 140, 0.24),
    0 0 34px rgba(18, 193, 207, 0.12);
  animation: portrait-pulse 1.6s ease-in-out infinite alternate;
  transition:
    width 700ms ease,
    height 700ms ease,
    filter 700ms ease;
}

@keyframes ready-sweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes portrait-pulse {
  from {
    transform: scale(0.96);
    filter: brightness(0.95);
  }

  to {
    transform: scale(1.03);
    filter: brightness(1.18);
  }
}

.ready-check--can-accept .ready-check__loader {
  width: 58px;
  height: 58px;
  margin: 0 0 14px;
  transform: translateY(-2px);
}

.ready-check--can-accept .ready-check__loader::before {
  animation-duration: 1.8s;
  opacity: 0.78;
}

.ready-check--can-accept .ready-check__loader::after {
  inset: 7px;
}

.ready-check--can-accept .ready-check__portrait {
  width: 40px;
  height: 40px;
  animation: none;
  filter: brightness(1.08);
}

.ready-check__button {
  position: relative;
  overflow: hidden;
  width: min(360px, 100%);
  min-height: 58px;
  color: #fffdf5;
  background:
    linear-gradient(180deg, #65724a, #3f4c36);
  border: 1px solid rgba(240, 213, 140, 0.6);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 650ms ease,
    transform 650ms ease,
    background 200ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.ready-check--can-accept .ready-check__button {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ready-check__button:hover {
  background:
    linear-gradient(180deg, #768357, #48573d);
}

.ready-check--can-accept .ready-check__button:active {
  filter: brightness(1.13);
  transform: translateY(3px) scale(0.985);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.42),
    inset 0 8px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ready-check__button:disabled {
  cursor: default;
}

.ready-check__status {
  min-height: 24px;
  margin: 14px 0 0;
  color: rgba(255, 250, 238, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 350ms ease;
}

.ready-check--accepted {
  border-color: rgba(114, 206, 154, 0.78);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 0 44px rgba(114, 206, 154, 0.22);
}

.ready-check--accepted .ready-check__button {
  background: linear-gradient(180deg, #2f8d62, #1d6948);
  border-color: rgba(170, 243, 202, 0.72);
}

.details {
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.16), rgba(5, 8, 13, 0.42) 40%, rgba(5, 8, 13, 0.9) 100%),
    url("assets/save-date-bg.jpeg");
  background-position: 104% 34%;
  background-size: auto 132%;
}

.accepted-banner {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 11;
  padding: 7px 18px;
  color: #fff8df;
  background:
    linear-gradient(180deg, rgba(20, 49, 39, 0.96), rgba(12, 31, 25, 0.96));
  border: 1px solid rgba(240, 213, 140, 0.7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.save-date-page {
  display: grid;
  grid-template-columns: minmax(270px, 0.62fr) minmax(620px, 760px);
  gap: clamp(12px, 2vw, 28px);
  place-items: center;
  justify-content: end;
  min-height: 100svh;
  color: #fff8df;
}

.save-date-card {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(760px, 100%);
  min-height: min(700px, calc(100svh - 150px));
  padding: clamp(72px, 6vw, 90px) clamp(54px, 5vw, 78px) clamp(44px, 4.4vw, 60px);
  overflow: visible;
  text-align: center;
  background:
    linear-gradient(rgba(8, 14, 20, 0.88), rgba(9, 13, 18, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(240, 213, 140, 0.12), transparent 55%);
  clip-path: none;
  animation: page-enter 900ms ease both;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.56),
    0 0 70px rgba(240, 213, 140, 0.08);
}

.save-date-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  background:
    linear-gradient(90deg, transparent 0 13%, #8b5c21 13% 13.3%, #f3d88e 13.3% 13.8%, transparent 13.8% 86.2%, #f3d88e 86.2% 86.7%, #8b5c21 86.7% 87%, transparent 87%) top / 100% 3px no-repeat,
    linear-gradient(180deg, #5d3810, #f0d48a 24%, #fff0b8 52%, #a96e28 78%, #3b2209) left / 3px 100% no-repeat,
    linear-gradient(180deg, #5d3810, #f0d48a 24%, #fff0b8 52%, #a96e28 78%, #3b2209) right / 3px 100% no-repeat,
    linear-gradient(90deg, transparent 0 6%, #6c4114 6%, #e0bb6d 16%, #fff0b6 50%, #e0bb6d 84%, #6c4114 94%, transparent 94%) bottom / 100% 3px no-repeat;
  filter: drop-shadow(0 0 6px rgba(240, 213, 140, 0.1));
  pointer-events: none;
}

.save-date-card::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 112px;
  height: 42px;
  background:
    radial-gradient(circle at 50% 35%, #fff4bd 0 5px, #d6a64b 6px 12px, #5f3710 13px 15px, transparent 16px),
    linear-gradient(90deg, transparent 0 8%, #754716 20%, #f6df97 50%, #754716 80%, transparent 92%);
  clip-path: polygon(50% 0, 62% 33%, 100% 44%, 67% 56%, 58% 100%, 50% 72%, 42% 100%, 33% 56%, 0 44%, 38% 33%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
  transform: translateX(-50%);
  pointer-events: none;
}

.save-date-card__photo,
.save-date-card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.save-date-card__photo {
  background: url("assets/save-date-card.jpeg") center 42% / cover;
  opacity: 0.12;
  filter: saturate(0.9) contrast(1.05);
}

.save-date-card__shade {
  background:
    radial-gradient(circle at 50% 38%, rgba(5, 8, 13, 0.1), rgba(5, 8, 13, 0.82) 62%),
    linear-gradient(90deg, rgba(5, 8, 13, 0.72), rgba(5, 8, 13, 0.36), rgba(5, 8, 13, 0.72));
}

.save-date-card > * {
  position: relative;
  z-index: 1;
}

.save-date-card h1 {
  display: grid;
  gap: 4px;
  max-width: none;
  margin: 20px auto 24px;
  font-size: clamp(2.22rem, 4.4vw, 3.4rem);
  line-height: 0.98;
}

.save-date-card h1 span:nth-child(2) {
  color: var(--bright-gold);
  font-size: 0.72em;
  line-height: 0.72;
}

.invite-line {
  margin: 4px 0 0;
  color: rgba(255, 248, 223, 0.84);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.18rem, 2.6vw, 1.62rem);
}

.invite-copy {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 248, 223, 0.86);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.5;
}

.save-date-divider {
  width: min(500px, 82%);
  height: 2px;
  margin: 32px auto 28px;
  background:
    linear-gradient(90deg, transparent, rgba(19, 190, 216, 0.7), rgba(240, 213, 140, 0.9), rgba(19, 190, 216, 0.7), transparent);
}

.save-date-info {
  display: grid;
  gap: 12px;
  color: rgba(255, 248, 223, 0.92);
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.save-date-datetime {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(82px, 0.72fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 0 18px;
  border-bottom: 1px solid rgba(240, 213, 140, 0.46);
  color: rgba(255, 248, 223, 0.96);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.9rem, 1.4vw, 1.08rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.save-date-datetime p {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0 8px;
  overflow: hidden;
}

.save-date-datetime p + p {
  border-left: 1px solid rgba(240, 213, 140, 0.48);
}

.save-date-datetime p:nth-child(2) strong {
  color: var(--bright-gold);
  font-size: clamp(2.75rem, 4.4vw, 3.75rem);
  line-height: 0.92;
}

.save-date-datetime span {
  display: block;
  color: rgba(19, 190, 216, 0.9);
  font-size: 0.76em;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.save-date-datetime strong {
  display: block;
  color: rgba(255, 248, 223, 0.96);
  font-family: "Cormorant Garamond", serif;
  max-width: 100%;
  font-size: clamp(1.18rem, 2vw, 1.58rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.save-date-datetime p:first-child strong {
  font-size: clamp(1.62rem, 2.6vw, 2.18rem);
  letter-spacing: 0.08em;
}

.save-date-datetime p:nth-child(2) span {
  margin-top: 6px;
  color: rgba(19, 190, 216, 0.95);
  line-height: 1;
}

.ceremony-countdown p {
  display: block;
  margin-bottom: 7px;
  color: rgba(19, 190, 216, 0.88);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.save-date-info p,
.ceremony-countdown p {
  margin: 0;
}

.save-date-venue {
  color: var(--bright-gold);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.52rem, 3.4vw, 2.15rem);
  line-height: 1.05;
  margin-top: 4px;
  text-transform: uppercase;
}

.ceremony-countdown {
  --queue-arc: 65deg;
  --queue-progress: 18;
  position: relative;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  transform: translateX(-118px);
  display: grid;
  place-items: center;
  width: min(420px, 90vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(7, 18, 24, 0.58) 0 63%, transparent 64%),
    radial-gradient(circle, transparent 0 73%, rgba(191, 145, 58, 0.5) 74% 75%, transparent 76%);
  box-shadow:
    0 0 0 1px rgba(240, 213, 140, 0.26),
    0 22px 60px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(19, 199, 214, 0.14);
}

.ceremony-countdown::before {
  content: "";
  position: absolute;
  inset: 8px;
  background:
    radial-gradient(circle, transparent 0 80%, rgba(43, 54, 58, 0.84) 81% 84%, transparent 85%);
  border-radius: 50%;
  pointer-events: none;
}

.ceremony-countdown__progress {
  position: absolute;
  inset: 8px;
  z-index: 3;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  overflow: visible;
  pointer-events: none;
  transform: rotate(113deg);
}

.ceremony-countdown__progress-track,
.ceremony-countdown__progress-bar {
  fill: none;
  stroke-linecap: butt;
}

.ceremony-countdown__progress-track {
  stroke: rgba(43, 54, 58, 0.2);
  stroke-width: 1.15;
}

.ceremony-countdown__progress-bar {
  stroke: #23f1ff;
  stroke-width: 1.7;
  stroke-dasharray: var(--queue-progress) 100;
  filter:
    drop-shadow(0 0 2px rgba(221, 255, 255, 0.96))
    drop-shadow(0 0 7px rgba(35, 241, 255, 0.92))
    drop-shadow(0 0 14px rgba(35, 190, 220, 0.58));
}

.ceremony-countdown::after {
  content: "";
  position: absolute;
  inset: 36px;
  border: 2px solid rgba(240, 213, 140, 0.76);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(92, 58, 22, 0.8),
    inset 0 0 0 10px rgba(4, 10, 14, 0.54),
    inset 0 0 30px rgba(19, 199, 214, 0.1);
}

.ceremony-countdown__outer {
  content: "";
  position: absolute;
  inset: 58px;
  background:
    linear-gradient(rgba(7, 24, 28, 0.28), rgba(2, 8, 12, 0.44)),
    url("assets/save-date-card.jpeg") 45% 46% / cover;
  border: 1px solid rgba(19, 190, 216, 0.18);
  border-radius: 50%;
  filter: saturate(1.16) contrast(1.08) brightness(1.14);
  box-shadow:
    inset 0 0 80px rgba(3, 7, 10, 0.8),
    inset 0 0 0 1px rgba(240, 213, 140, 0.22);
}

.ceremony-countdown__ring {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: calc(100% - 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(rgba(4, 13, 18, 0.18), rgba(3, 8, 12, 0.34));
}

.ceremony-countdown__core {
  position: relative;
  z-index: 2;
  width: min(300px, 64vw);
  text-align: center;
}

.ceremony-countdown__core p {
  margin-bottom: 20px;
  color: #fff8df;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2.3vw, 1.48rem);
  letter-spacing: 0.08em;
}

.ceremony-countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.ceremony-countdown__grid div {
  padding: 7px 2px 5px;
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(240, 213, 140, 0.22);
  border-bottom: 1px solid rgba(19, 190, 216, 0.16);
}

.ceremony-countdown__grid strong {
  display: block;
  color: var(--bright-gold);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.18rem, 2.7vw, 1.66rem);
  line-height: 1;
}

.ceremony-countdown__grid span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 248, 223, 0.76);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ceremony-countdown__button {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 7;
  display: inline-grid;
  place-items: center;
  min-width: 168px;
  min-height: 48px;
  padding: 0 38px;
  color: #dffcff;
  background:
    linear-gradient(180deg, rgba(23, 41, 48, 0.98), rgba(12, 22, 30, 0.98));
  border: 1px solid rgba(19, 190, 216, 0.96);
  border-radius: 2px;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 2px rgba(4, 14, 18, 0.75),
    0 0 0 2px rgba(166, 119, 43, 0.9),
    0 -8px 0 6px rgba(5, 12, 16, 0.72),
    0 10px 24px rgba(0, 0, 0, 0.46),
    0 0 20px rgba(18, 191, 215, 0.2);
  transition:
    color 180ms ease,
    filter 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.ceremony-countdown__button:hover,
.ceremony-countdown__button:focus-visible {
  color: #fff8df;
  filter: brightness(1.14);
  transform: translateX(-50%) translateY(-1px);
}

.ceremony-countdown__button:active {
  color: #fff8df;
  filter: brightness(1.18);
  transform: translateX(-50%) translateY(3px) scale(0.985);
  box-shadow:
    inset 0 0 0 2px rgba(4, 14, 18, 0.75),
    inset 0 9px 20px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(166, 119, 43, 0.9),
    0 -5px 0 6px rgba(5, 12, 16, 0.72),
    0 5px 14px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(18, 191, 215, 0.34);
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.event-card {
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.event-time {
  margin: 0 0 26px;
  color: var(--rose);
  font-weight: 800;
}

.event-location {
  margin: 20px 0 8px;
  color: var(--leaf);
  font-weight: 800;
}

.event-card p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.rsvp {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: var(--mist);
}

.rsvp-page {
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 620px);
  color: #fff8df;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.78), rgba(5, 8, 13, 0.54)),
    url("assets/rsvp-ring-bg.jpeg") center / cover;
}

.rsvp-copy p:last-child {
  max-width: 560px;
  color: rgba(255, 248, 223, 0.82);
  font-size: 1.1rem;
  line-height: 1.75;
}

.rsvp-copy h2 {
  max-width: 9ch;
  color: #fffdf8;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.2rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.96;
}

.rsvp-summary {
  display: grid;
  gap: 10px;
  max-width: 430px;
  margin-top: 28px;
  padding: 20px;
  background: rgba(4, 12, 17, 0.62);
  border: 1px solid rgba(240, 213, 140, 0.34);
  box-shadow: inset 0 0 0 1px rgba(19, 190, 216, 0.08);
}

.rsvp-summary p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: rgba(255, 248, 223, 0.88);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.12rem;
}

.rsvp-summary span {
  color: rgba(19, 190, 216, 0.88);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(rgba(8, 14, 20, 0.92), rgba(9, 13, 18, 0.94));
  border: 1px solid rgba(240, 213, 140, 0.42);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(19, 190, 216, 0.1);
}

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

.rsvp-submitted-panel {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: clamp(30px, 5vw, 52px);
  color: #fff8df;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 213, 140, 0.12), transparent 58%),
    linear-gradient(rgba(8, 14, 20, 0.92), rgba(9, 13, 18, 0.94));
  border: 1px solid rgba(240, 213, 140, 0.42);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(19, 190, 216, 0.1);
  text-align: center;
}

.rsvp-submitted-panel[hidden] {
  display: none;
}

.rsvp-submitted-panel .eyebrow {
  margin-bottom: 16px;
}

.rsvp-submitted-panel h2 {
  color: #fffdf8;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1;
}

.rsvp-submitted-panel p:last-child {
  margin: 18px 0 0;
  color: rgba(255, 248, 223, 0.82);
  line-height: 1.55;
}

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

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 248, 223, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: rgba(255, 248, 223, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.choice-card {
  position: relative;
  min-height: 58px;
  place-content: center;
  padding: 12px 14px;
  color: #fff8df;
  background: rgba(5, 13, 18, 0.72);
  border: 1px solid rgba(240, 213, 140, 0.24);
  text-align: center;
  cursor: pointer;
}

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

.choice-card:has(input:checked) {
  border-color: rgba(19, 190, 216, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(19, 190, 216, 0.32),
    0 0 18px rgba(19, 190, 216, 0.14);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #fff8df;
  background: rgba(5, 13, 18, 0.74);
  border: 1px solid rgba(240, 213, 140, 0.22);
  border-radius: 0;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(19, 190, 216, 0.82);
  outline: 2px solid rgba(19, 190, 216, 0.2);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.guest-detail-field {
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.guest-detail-field--hidden {
  display: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 248, 223, 0.66);
  font-size: 0.82rem;
}

.rsvp-submit {
  width: 100%;
  color: #dffcff;
  background:
    linear-gradient(180deg, rgba(23, 41, 48, 0.98), rgba(12, 22, 30, 0.98));
  border: 1px solid rgba(19, 190, 216, 0.96);
  box-shadow:
    inset 0 0 0 2px rgba(4, 14, 18, 0.75),
    0 0 0 2px rgba(166, 119, 43, 0.82),
    0 10px 24px rgba(0, 0, 0, 0.36);
  transition:
    filter 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.rsvp-submit:hover,
.rsvp-submit:focus-visible {
  filter: brightness(1.12);
}

.rsvp-submit:active {
  filter: brightness(1.18);
  transform: translateY(3px) scale(0.99);
  box-shadow:
    inset 0 0 0 2px rgba(4, 14, 18, 0.75),
    inset 0 9px 20px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(166, 119, 43, 0.82),
    0 5px 14px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(18, 191, 215, 0.18);
}

.rsvp-submit:disabled {
  cursor: wait;
  opacity: 0.78;
  pointer-events: none;
  animation: submit-pulse 1.15s ease-in-out infinite;
}

@keyframes submit-pulse {
  0%,
  100% {
    filter: brightness(0.94);
    box-shadow:
      inset 0 0 0 2px rgba(4, 14, 18, 0.75),
      0 0 0 2px rgba(166, 119, 43, 0.68),
      0 8px 20px rgba(0, 0, 0, 0.32);
  }

  50% {
    filter: brightness(1.14);
    box-shadow:
      inset 0 0 0 2px rgba(4, 14, 18, 0.75),
      0 0 0 2px rgba(19, 190, 216, 0.72),
      0 8px 20px rgba(0, 0, 0, 0.32),
      0 0 24px rgba(19, 190, 216, 0.26);
  }
}

.submit-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 10, 0.74);
  backdrop-filter: blur(10px);
}

.submit-modal[hidden] {
  display: none;
}

.submit-modal__card {
  width: min(420px, 100%);
  padding: 18px 18px 24px;
  color: #fff8df;
  background:
    linear-gradient(rgba(8, 14, 20, 0.94), rgba(9, 13, 18, 0.96));
  border: 1px solid rgba(240, 213, 140, 0.54);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(19, 190, 216, 0.12);
  text-align: center;
}

.submit-modal__card img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center 40%;
  border: 1px solid rgba(240, 213, 140, 0.26);
}

.submit-modal__card .eyebrow {
  margin: 22px 0 16px;
}

.submit-modal__card h2 {
  color: #fffdf8;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.1rem, 9vw, 5.1rem);
  font-weight: 400;
  line-height: 1;
}

.submit-modal__card p:last-of-type {
  margin: 16px auto 20px;
  color: rgba(255, 248, 223, 0.82);
  line-height: 1.55;
}

.calendar-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

.calendar-actions[hidden] {
  display: none;
}

.calendar-actions__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  color: #fff8df;
  background:
    linear-gradient(180deg, rgba(35, 48, 42, 0.98), rgba(15, 27, 29, 0.98));
  border: 1px solid rgba(240, 213, 140, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(4, 14, 18, 0.75),
    0 0 0 1px rgba(19, 190, 216, 0.32);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    filter 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.calendar-actions__button:hover,
.calendar-actions__button:focus-visible {
  filter: brightness(1.12);
}

.calendar-actions__button:active {
  filter: brightness(1.18);
  transform: translateY(2px) scale(0.99);
  box-shadow:
    inset 0 0 0 1px rgba(4, 14, 18, 0.75),
    inset 0 8px 18px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(19, 190, 216, 0.48);
}

.calendar-icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  opacity: 0.94;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.submit-modal__card button {
  width: 100%;
  color: #dffcff;
  background:
    linear-gradient(180deg, rgba(23, 41, 48, 0.98), rgba(12, 22, 30, 0.98));
  border: 1px solid rgba(19, 190, 216, 0.96);
  box-shadow:
    inset 0 0 0 2px rgba(4, 14, 18, 0.75),
    0 0 0 2px rgba(166, 119, 43, 0.82);
  transition:
    filter 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.submit-modal__card button:hover,
.submit-modal__card button:focus-visible {
  filter: brightness(1.12);
}

.submit-modal__card button:active {
  filter: brightness(1.18);
  transform: translateY(2px) scale(0.99);
  box-shadow:
    inset 0 0 0 2px rgba(4, 14, 18, 0.75),
    inset 0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(166, 119, 43, 0.82),
    0 0 20px rgba(18, 191, 215, 0.18);
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    padding: 14px 18px;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    display: grid;
    width: 160px;
    margin-left: auto;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    min-width: 76px;
    min-height: 34px;
    margin-left: auto;
    padding: 0 14px;
    place-items: center;
    color: #dffcff;
    background:
      linear-gradient(180deg, rgba(23, 41, 48, 0.98), rgba(12, 22, 30, 0.98));
    border: 1px solid rgba(19, 190, 216, 0.82);
    box-shadow:
      inset 0 0 0 1px rgba(4, 14, 18, 0.75),
      0 0 0 1px rgba(166, 119, 43, 0.72);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .site-header nav a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    color: #fff8df;
    background: rgba(5, 12, 16, 0.96);
    border: 1px solid rgba(240, 213, 140, 0.36);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition:
      background 160ms ease,
      color 160ms ease;
  }

  .site-header nav a + a {
    margin-top: -1px;
  }

  .site-header--menu-open nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .accepted-banner {
    top: 18px;
    max-width: 170px;
    padding: 5px 10px;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-align: center;
    transform: translate(-50%, 0);
  }

  .site-header--welcome {
    align-items: center;
    flex-direction: row;
  }

  .panel {
    padding-top: 132px;
  }

  .welcome.panel {
    padding-top: 56px;
  }

  .save-date-page,
  .event-grid,
  .rsvp,
  .save-date-info {
    grid-template-columns: 1fr;
  }

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

  .save-date-card,
  .ceremony-countdown {
    grid-column: 1;
  }

  .ceremony-countdown {
    grid-row: 1;
    justify-self: center;
    transform: none;
  }

  .save-date-card {
    grid-row: 2;
    justify-self: center;
  }

  .event-card {
    min-height: auto;
  }

  .save-date-info__wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .music-toggle {
    right: 12px;
    bottom: 12px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.6rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-header nav {
    width: 160px;
    justify-content: stretch;
  }

  nav a {
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 6.1rem);
  }

  .ready-check {
    padding: 22px 16px;
  }

  .brand--play {
    min-height: 38px;
    padding-right: 20px;
  }

  .save-date-card {
    padding: 30px 18px;
  }

  .save-date-card h1 {
    font-size: clamp(2.8rem, 14vw, 4.7rem);
  }

  .submit-modal__card .eyebrow {
    margin: 20px 0 18px;
    font-size: 0.74rem;
  }

  .submit-modal__card h2 {
    font-size: clamp(3.05rem, 15vw, 4.5rem);
    line-height: 1.05;
  }

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

  .save-date-datetime {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .save-date-datetime p,
  .save-date-datetime p:first-child,
  .save-date-datetime p:last-child {
    min-height: auto;
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }

  .save-date-datetime p + p {
    border-left: 0;
    border-top: 1px solid rgba(240, 213, 140, 0.36);
    padding-top: 10px;
  }

  .ceremony-countdown {
    width: min(310px, 92vw);
  }

  .ceremony-countdown__outer {
    inset: 42px;
  }

  .ceremony-countdown__ring {
    width: calc(100% - 84px);
  }

  .ceremony-countdown__core {
    width: 100%;
    max-width: 190px;
  }

  .ceremony-countdown__core p {
    margin-bottom: 12px;
    font-size: clamp(0.92rem, 4.4vw, 1.08rem);
    letter-spacing: 0.04em;
    line-height: 1.08;
  }

  .ceremony-countdown__grid {
    gap: 3px;
  }

  .ceremony-countdown__grid div {
    padding: 5px 1px 4px;
  }

  .ceremony-countdown__grid strong {
    font-size: clamp(0.98rem, 4.6vw, 1.2rem);
  }

  .ceremony-countdown__grid span {
    margin-top: 3px;
    font-size: 0.46rem;
    letter-spacing: 0.08em;
  }

  .ceremony-countdown__button {
    bottom: 18px;
    min-width: 136px;
    min-height: 40px;
    padding: 0 24px;
    font-size: 0.82rem;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .panel {
    padding-top: 86px;
  }

  .welcome.panel {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(4.2rem, 8.8vw, 7.4rem);
  }

  .subtitle {
    margin: 20px 0;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .welcome-copy {
    padding: 24px 48px;
  }

  .ready-check {
    width: min(560px, 88vw);
    padding: 20px 28px;
  }

  .ready-check__kicker {
    font-size: 3.25rem;
  }
}
