:root {
  color-scheme: light;
  --primary: #641713;
  --primary-deep: #3f0d0b;
  --paper: #f3eadf;
  --ink: #35221d;
  --accent: #bd9076;
  --line: #d6b7a3;
  --white: #fffaf4;
  --muted: #775e55;
  --shadow: 0 26px 80px rgb(46 19 15 / 16%);
  --serif: "Iowan Old Style", "Palatino Linotype", "Noto Serif TC", "Songti TC", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: min(1120px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

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

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

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

a {
  color: inherit;
}

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

::selection {
  background: var(--accent);
  color: var(--primary-deep);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-deep);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - 1120px) / 2));
  color: var(--paper);
  transition: background-color 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgb(243 234 223 / 13%);
  background: color-mix(in srgb, var(--primary-deep) 91%, transparent);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-brand__mark {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(243 234 223 / 42%);
  border-radius: 50% 50% 44% 56%;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0;
}

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

.site-nav a {
  position: relative;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-decoration: none;
}

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

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

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(180deg, rgb(34 5 4 / 8%), rgb(34 5 4 / 26%)),
    var(--primary);
  color: var(--paper);
  isolation: isolate;
}

.hero.has-image::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--hero-image) center / cover no-repeat;
  content: "";
  filter: saturate(.66) contrast(.94);
}

.hero.has-image::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: color-mix(in srgb, var(--primary) 71%, transparent);
  content: "";
  mix-blend-mode: multiply;
}

.window-pattern {
  position: absolute;
  width: clamp(180px, 22vw, 360px);
  aspect-ratio: 1;
  opacity: .19;
  pointer-events: none;
}

.window-pattern::before,
.window-pattern::after {
  position: absolute;
  inset: 13%;
  border: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.window-pattern::after {
  inset: 30%;
  border-radius: 50%;
  transform: rotate(0);
}

.window-pattern span,
.window-pattern span::before,
.window-pattern span::after {
  position: absolute;
  border: 1px solid currentColor;
  content: "";
  inset: 0 42%;
  border-radius: 999px;
}

.window-pattern span::before {
  inset: 0;
  transform: rotate(60deg);
}

.window-pattern span::after {
  inset: 0;
  transform: rotate(-60deg);
}

.window-pattern--one {
  top: -64px;
  left: -58px;
}

.window-pattern--two {
  right: -72px;
  bottom: -64px;
  transform: rotate(22deg);
}

.hero__inner {
  display: grid;
  width: var(--content);
  min-height: 100svh;
  padding: 120px 0 70px;
  grid-template-rows: 1fr auto;
  text-align: center;
}

.hero__center {
  display: grid;
  align-content: center;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero__names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 70px);
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.1;
}

.hero__names span:first-child {
  text-align: right;
}

.hero__names span:last-child {
  text-align: left;
}

.hero__seal {
  display: grid;
  width: clamp(64px, 7vw, 92px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(243 234 223 / 48%);
  border-radius: 48% 52% 58% 42%;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0;
  transform: rotate(-4deg);
}

.hero__date {
  margin: 32px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
}

.hero__calendar-date {
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-size: 13px;
  letter-spacing: .18em;
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  gap: 10px;
  color: inherit;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .22em;
  text-decoration: none;
}

.hero__scroll::after {
  width: 1px;
  height: 44px;
  background: currentColor;
  content: "";
  opacity: .52;
  transform-origin: top;
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(.25); opacity: .24; }
  50% { transform: scaleY(1); opacity: .7; }
}

.page-section {
  position: relative;
  padding: clamp(96px, 12vw, 168px) 0;
  overflow: clip;
}

.page-section--paper {
  background: var(--paper);
  color: var(--ink);
}

.page-section--wine {
  background: var(--primary);
  color: var(--paper);
}

.page-section--deep {
  background: var(--primary-deep);
  color: var(--paper);
}

.section-inner {
  width: var(--content);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(54px, 8vw, 90px);
  text-align: center;
}

.section-head .eyebrow {
  color: var(--accent);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.36;
  white-space: pre-line;
}

.section-head p:not(.eyebrow) {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--muted);
  letter-spacing: .06em;
}

.page-section--wine .section-head p:not(.eyebrow),
.page-section--deep .section-head p:not(.eyebrow) {
  color: color-mix(in srgb, var(--paper) 76%, transparent);
}

.story-layout {
  display: grid;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.story-copy .section-head {
  margin: 0;
  text-align: left;
}

.story-copy .section-head p:not(.eyebrow) {
  margin-right: 0;
  margin-left: 0;
}

.profiles {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  grid-template-columns: 1fr 1fr;
}

.profile-card {
  position: relative;
  margin: 0;
}

.profile-card:nth-child(2) {
  margin-top: 90px;
}

.profile-card__image {
  overflow: hidden;
  aspect-ratio: .8;
  border-radius: 180px 180px 24px 24px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.profile-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}

.profile-card:hover img {
  transform: scale(1.025);
}

.profile-card figcaption {
  position: relative;
  width: calc(100% - 24px);
  margin: -38px auto 0;
  padding: 22px 22px 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 0 12px 34px rgb(46 19 15 / 10%);
  backdrop-filter: blur(10px);
}

.profile-card__role {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
}

.profile-card h3 {
  margin: 0;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: .12em;
}

.profile-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.invitation-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 124px) clamp(28px, 9vw, 120px);
  border: 1px solid rgb(243 234 223 / 32%);
  border-radius: 260px 260px 28px 28px;
  text-align: center;
}

.invitation-card::before {
  position: absolute;
  top: -28px;
  left: 50%;
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(243 234 223 / 36%);
  border-radius: 50%;
  background: var(--primary-deep);
  content: "囍";
  font-size: 20px;
  transform: translateX(-50%);
}

.invitation-card h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.42;
  white-space: pre-line;
}

.invitation-card p {
  max-width: 600px;
  margin: 32px auto 0;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  letter-spacing: .08em;
}

.timeline {
  position: relative;
  display: grid;
  margin-top: 70px;
  grid-template-columns: repeat(var(--timeline-count, 4), 1fr);
}

.timeline::before {
  position: absolute;
  top: 34px;
  right: calc(100% / var(--timeline-count, 4) / 2);
  left: calc(100% / var(--timeline-count, 4) / 2);
  height: 1px;
  background: rgb(243 234 223 / 34%);
  content: "";
}

.timeline-item {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  text-align: center;
}

.timeline-item__time {
  display: grid;
  width: 68px;
  aspect-ratio: 1;
  margin: 0 auto 26px;
  place-items: center;
  border: 1px solid rgb(243 234 223 / 38%);
  border-radius: 48% 52% 44% 56%;
  background: var(--primary);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.timeline-item h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .1em;
}

.timeline-item p {
  margin: 9px 0 0;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
}

.venue-layout {
  display: grid;
  align-items: stretch;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.venue-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  overflow: hidden;
  place-items: center;
  border-radius: 240px 240px 24px 24px;
  background:
    radial-gradient(circle at 28% 28%, rgb(255 255 255 / 40%), transparent 28%),
    linear-gradient(145deg, var(--line), var(--accent));
  color: var(--primary-deep);
}

.venue-visual::before,
.venue-visual::after {
  position: absolute;
  border: 1px solid currentColor;
  content: "";
  opacity: .2;
  inset: 14%;
  transform: rotate(45deg);
}

.venue-visual::after {
  inset: 30%;
  border-radius: 50%;
  transform: none;
}

.venue-visual__mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 146px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(63 13 11 / 38%);
  border-radius: 50%;
  font-size: 40px;
}

.venue-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 4vw, 54px) 0;
}

.venue-copy h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.3;
}

.venue-copy__address {
  margin: 18px 0 34px;
  color: var(--muted);
  letter-spacing: .07em;
}

.venue-facts {
  display: grid;
  gap: 0;
  margin: 0 0 36px;
}

.venue-facts div {
  display: grid;
  padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  gap: 14px;
  grid-template-columns: 78px 1fr;
}

.venue-facts div:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}

.venue-facts dt {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.venue-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

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

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

.button--ghost {
  background: transparent;
}

.page-section--wine .button--ghost,
.page-section--deep .button--ghost {
  color: var(--paper);
}

.dress-layout {
  display: grid;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
}

.dress-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.36;
}

.dress-copy p:not(.eyebrow) {
  max-width: 480px;
  margin: 26px 0 0;
  color: color-mix(in srgb, var(--paper) 76%, transparent);
}

.swatches {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.swatch {
  display: grid;
  min-height: 220px;
  align-content: end;
  padding: 22px;
  border: 1px solid rgb(243 234 223 / 16%);
  border-radius: 50% 50% 18px 18px;
  background: var(--swatch);
  color: var(--swatch-text, var(--ink));
  box-shadow: 0 18px 48px rgb(22 3 2 / 14%);
}

.swatch:nth-child(even) {
  transform: translateY(34px);
}

.swatch span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
}

.gallery-grid {
  display: grid;
  align-items: start;
  gap: clamp(14px, 2.2vw, 30px);
  grid-template-columns: repeat(3, 1fr);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 160px 160px 16px 16px;
  background: var(--line);
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.gallery-card:nth-child(2) {
  margin-top: 80px;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: .78;
  object-fit: cover;
  transition: filter 500ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgb(32 7 6 / 70%));
  content: "";
}

.gallery-card span {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: var(--white);
  font-size: 14px;
  letter-spacing: .08em;
  text-align: left;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.countdown {
  display: grid;
  max-width: 840px;
  margin: 0 auto;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.countdown-unit {
  position: relative;
  display: grid;
  min-height: 180px;
  place-content: center;
  border: 1px solid rgb(243 234 223 / 26%);
  border-radius: 100px 100px 18px 18px;
  text-align: center;
}

.countdown-unit strong {
  font-family: var(--sans);
  font-size: clamp(38px, 7vw, 70px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
}

.countdown-unit span {
  margin-top: 15px;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  font-size: 11px;
  letter-spacing: .2em;
}

.rsvp-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 7vw, 72px);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 220px 220px 24px 24px;
  background: color-mix(in srgb, var(--white) 62%, transparent);
  box-shadow: var(--shadow);
}

.rsvp-form {
  display: grid;
  gap: 26px;
}

.form-field,
.form-fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field > span,
.form-fieldset legend {
  padding: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: 8px;
  outline: 0;
  background: rgb(255 250 244 / 72%);
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.radio-group {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.radio-card {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .08em;
}

.radio-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--paper);
}

.radio-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.conditional-fields {
  display: grid;
  gap: 26px;
}

.conditional-fields[hidden] {
  display: none;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 28px;
  margin: 0;
  color: var(--primary);
  font-size: 14px;
  text-align: center;
}

.form-status[data-state="success"] {
  color: #2b6542;
}

.form-status[data-state="error"] {
  color: #9d2b22;
}

.form-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.rsvp-form .button {
  justify-self: center;
  min-width: 180px;
}

.site-footer {
  display: grid;
  min-height: 420px;
  padding: 80px 24px calc(60px + env(safe-area-inset-bottom));
  place-items: center;
  background: var(--primary-deep);
  color: var(--paper);
  text-align: center;
}

.site-footer__seal {
  display: grid;
  width: 70px;
  aspect-ratio: 1;
  margin: 0 auto 26px;
  place-items: center;
  border: 1px solid rgb(243 234 223 / 36%);
  border-radius: 50%;
  font-size: 24px;
}

.site-footer p {
  margin: 0;
  letter-spacing: .12em;
}

.site-footer small {
  display: block;
  margin-top: 20px;
  color: color-mix(in srgb, var(--paper) 56%, transparent);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.back-to-top {
  display: inline-flex;
  margin-top: 34px;
  color: inherit;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-decoration: none;
}

.entry-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: clamp(36px, 7vw, 64px);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 180px 180px 20px 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px rgb(18 3 2 / 38%);
  text-align: center;
}

.entry-dialog::backdrop,
.lightbox::backdrop {
  background: rgb(25 5 4 / 78%);
  backdrop-filter: blur(10px);
}

.entry-dialog h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  letter-spacing: .08em;
}

.entry-dialog > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
}

.entry-dialog__ornament {
  width: 58px;
  aspect-ratio: 1;
  margin: 0 auto 28px;
  border: 1px solid var(--primary);
  border-radius: 50% 50% 42% 58%;
  transform: rotate(45deg);
}

.entry-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.music-control {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 25;
  display: grid;
  width: 64px;
  min-height: 64px;
  padding: 9px;
  place-content: center;
  border: 1px solid rgb(243 234 223 / 34%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-deep) 90%, transparent);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 8px 28px rgb(20 4 3 / 30%);
  backdrop-filter: blur(12px);
}

.music-control__bars {
  display: flex;
  height: 13px;
  align-items: end;
  justify-content: center;
  gap: 2px;
}

.music-control__bars i {
  display: block;
  width: 2px;
  height: 5px;
  background: currentColor;
}

.music-control.is-playing .music-control__bars i {
  animation: audio-bar 820ms ease-in-out infinite alternate;
}

.music-control.is-playing .music-control__bars i:nth-child(2) {
  animation-delay: 150ms;
}

.music-control.is-playing .music-control__bars i:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes audio-bar {
  to { height: 13px; }
}

.music-control__label {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .15em;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 46px;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  align-items: center;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
}

.lightbox figure {
  display: grid;
  max-width: min(880px, 100%);
  max-height: calc(100dvh - 92px);
  margin: 0 auto;
  place-items: center;
}

.lightbox img {
  max-height: calc(100dvh - 150px);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 40%);
}

.lightbox figcaption {
  margin-top: 16px;
  letter-spacing: .1em;
  text-align: center;
}

.icon-button {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 50%;
  background: rgb(0 0 0 / 20%);
  color: inherit;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 22px;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
}

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

.noscript {
  position: fixed;
  z-index: 1000;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  text-align: center;
}

@media (max-width: 900px) {
  :root {
    --content: min(100% - 40px, 720px);
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .story-layout,
  .venue-layout,
  .dress-layout {
    grid-template-columns: 1fr;
  }

  .story-copy .section-head {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .story-copy .section-head p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .profiles {
    max-width: 650px;
    margin: 0 auto;
  }

  .profile-card:nth-child(2) {
    margin-top: 70px;
  }

  .venue-visual {
    min-height: 430px;
  }

  .venue-copy {
    max-width: 650px;
    margin: 0 auto;
  }

  .dress-copy {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
  }

  .dress-copy p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .swatches {
    max-width: 650px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-nav {
    gap: 12px;
  }

  .hero__inner {
    padding-top: 96px;
  }

  .hero__names {
    gap: 18px;
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: .08em;
  }

  .hero__seal {
    width: 60px;
    font-size: 24px;
  }

  .timeline {
    max-width: 460px;
    margin: 48px auto 0;
    grid-template-columns: 1fr;
  }

  .timeline::before {
    top: 32px;
    bottom: 32px;
    left: 34px;
    width: 1px;
    height: auto;
  }

  .timeline-item {
    display: grid;
    min-height: 112px;
    align-items: center;
    padding: 0;
    gap: 22px;
    grid-template-columns: 68px 1fr;
    text-align: left;
  }

  .timeline-item__time {
    margin: 0;
  }

  .timeline-item__copy {
    min-width: 0;
  }

  .gallery-grid {
    max-width: 580px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
  }

  .gallery-card:nth-child(2) {
    margin-top: 56px;
  }

  .gallery-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    margin-top: -12px;
    justify-self: center;
  }

  .countdown {
    max-width: 520px;
    grid-template-columns: 1fr 1fr;
  }

  .countdown-unit {
    min-height: 150px;
  }

  .lightbox {
    padding: 60px 18px 24px;
  }

  .lightbox[open] {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }
}

@media (max-width: 520px) {
  :root {
    --content: calc(100% - 32px);
  }

  body {
    font-size: 15px;
  }

  .site-brand__text {
    display: none;
  }

  .hero__names {
    flex-direction: column;
    gap: 14px;
  }

  .hero__names span {
    text-align: center !important;
  }

  .hero__seal {
    width: 54px;
  }

  .hero__date {
    margin-top: 24px;
  }

  .hero__calendar-date {
    font-size: 12px;
  }

  .profiles {
    gap: 50px;
    grid-template-columns: 1fr;
  }

  .profile-card {
    width: min(100%, 340px);
    margin: 0 auto;
  }

  .profile-card:nth-child(2) {
    margin: 0 auto;
  }

  .invitation-card {
    border-radius: 160px 160px 22px 22px;
  }

  .venue-visual {
    min-height: 360px;
    border-radius: 170px 170px 20px 20px;
  }

  .venue-facts div {
    grid-template-columns: 62px 1fr;
  }

  .swatches {
    gap: 12px;
  }

  .swatch {
    min-height: 170px;
    padding: 16px;
  }

  .swatch:nth-child(even) {
    transform: translateY(20px);
  }

  .gallery-grid {
    gap: 10px;
  }

  .gallery-card:nth-child(2) {
    margin-top: 38px;
  }

  .gallery-card:nth-child(3) {
    width: calc(50% - 5px);
  }

  .countdown {
    gap: 10px;
  }

  .countdown-unit {
    min-height: 132px;
  }

  .rsvp-card {
    padding: 54px 20px 30px;
    border-radius: 150px 150px 18px 18px;
  }

  .form-grid,
  .radio-group {
    grid-template-columns: 1fr;
  }

  .radio-group {
    gap: 8px;
  }

  .entry-dialog {
    padding: 50px 24px 30px;
    border-radius: 140px 140px 18px 18px;
  }

  .entry-dialog__actions {
    flex-direction: column;
  }

  .lightbox[open] {
    grid-template-columns: 1fr;
  }

  .lightbox__previous,
  .lightbox__next {
    position: absolute;
    z-index: 1;
    bottom: 22px;
  }

  .lightbox__previous {
    left: calc(50% - 58px);
  }

  .lightbox__next {
    right: calc(50% - 58px);
  }

  .lightbox figure {
    max-height: calc(100dvh - 116px);
  }

  .lightbox img {
    max-height: calc(100dvh - 180px);
  }
}

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

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

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