:root {
  --paper: #fbfaf7;
  --soft: #f4f1eb;
  --ink: #272522;
  --muted: #6c6761;
  --line: #ded8cf;
  --sage: #315646;
  --sage-light: #dfe8df;
  --rose: #a65f64;
  --mist: #e8eef0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(49, 41, 33, 0.12);
  --radius: 8px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(166, 95, 100, 0.5);
  outline-offset: 3px;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open,
.site-header--solid {
  background: rgba(251, 250, 247, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(39, 37, 34, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-decoration: none;
}

.nav-toggle {
  display: grid;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  place-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  background: rgba(251, 250, 247, 0.98);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.site-nav a {
  padding: 0.7rem 0.8rem;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover {
  background: var(--sage-light);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero__image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.hero__image--mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero__image--desktop {
    display: none;
  }
  .hero__image--mobile {
    display: block;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 20, 18, 0.26) 0%, rgba(20, 20, 18, 0.22) 38%, rgba(20, 20, 18, 0.7) 100%),
    linear-gradient(90deg, rgba(20, 20, 18, 0.48), rgba(20, 20, 18, 0.08) 65%);
}

.hero__content {
  position: relative;
  width: min(100%, 760px);
  padding: 8rem clamp(1rem, 5vw, 4rem) 2rem;
}

.logo__casamento {
  width: 74px;
  display: block;
}

.logo__casamento-black {
  display: none;
}

.is-scrolled .logo__casamento-black {
  display: block;
}

.logo__casamento-white {
  display: block;
}


.is-scrolled .logo__casamento-white {
  display: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-height: unset !important;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  font-size: clamp(4rem, 20vw, 9rem);
}

h2 {
  font-size: clamp(2.15rem, 10vw, 4.8rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0;
}

.hero__meta {
  max-width: 35rem;
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.hero__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(39, 37, 34, 0.12);
}

.button--primary {
  background: var(--sage);
  color: var(--white);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
}

.button--secondary {
  background: var(--white);
  color: var(--sage);
  border-color: var(--line);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  width: min(100%, 28rem);
  margin-top: 1.5rem;
}

.countdown__item {
  min-width: 0;
  padding: 0.75rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.countdown__number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.countdown__label {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.page-hero {
  padding: clamp(8rem, 16vw, 12rem) 0 clamp(3rem, 8vw, 6rem);
  background:
    linear-gradient(135deg, rgba(223, 232, 223, 0.86), rgba(251, 250, 247, 0.96)),
    var(--paper);
}

.page-hero__inner {
  max-width: 920px;
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 12vw, 6.4rem);
}

.page-hero p:not(.section-kicker) {
  max-width: 48rem;
  margin-top: 0.85rem;
  color: var(--muted);
}

.page-hero .button {
  margin-top: 1.5rem;
}

.section--soft {
  background: var(--soft);
}

.section__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.section-heading p:not(.section-kicker),
.intro-grid p,
.event-copy p {
  color: var(--muted);
}

.section--intro {
  padding: 3rem 0;
  background: var(--white);
}

.intro-grid {
  display: grid;
  gap: 1rem;
}

.intro-grid h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 9vw, 4rem);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 2.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 1px var(--rose);
}

.timeline-card,
.gift-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.timeline-card {
  overflow: hidden;
}

.timeline-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.timeline-card__body {
  padding: 1.25rem;
}

.timeline-date,
.gift-value {
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-card p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.event-layout,
.faq-layout,
.form-layout,
.guestbook-layout {
  display: grid;
  gap: 2rem;
}

.event-details {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.event-details div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.event-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.event-details dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

.map-frame {
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
}

.dress-grid {
  display: grid;
  gap: 1rem;
}

.dress-card {
  display: grid;
  gap: 1.1rem;
  min-height: 100%;
  padding: clamp(1rem, 4vw, 1.35rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.dress-card__header {
  display: grid;
  gap: 0.45rem;
  max-height: 147px;
}

.dress-card__header p {
  min-height: 52px;
}

.dress-card__header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 11vw, 3.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.dress-card__header p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.dress-code-list {
  display: grid;
  gap: 0.75rem;
}

.dress-code-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.dress-code-item h4,
.dress-code-item p {
  margin: 0;
}

.dress-code-item h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.dress-code-item p {
  color: var(--muted);
}

.dress-code-icon {
  position: relative;
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--sage-light);
}

.dress-code-icon::before,
.dress-code-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
}

.dress-code-icon--dress::before {
  top: 0.55rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
}

.dress-code-icon--dress::after {
  bottom: 0.45rem;
  width: 1.75rem;
  height: 1.85rem;
  clip-path: polygon(50% 0, 92% 100%, 8% 100%);
}

.dress-code-icon--suit::before {
  top: 0.55rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
}

.dress-code-icon--suit::after {
  bottom: 0.45rem;
  width: 1.7rem;
  height: 1.85rem;
  border-radius: 0.25rem 0.25rem 0.18rem 0.18rem;
}

.dress-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(166, 95, 100, 0.22);
  border-radius: var(--radius);
  background: rgba(166, 95, 100, 0.06);
  color: var(--rose);
  font-weight: 700;
}

.dress-note p {
  margin: 0;
}

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.palette-swatches span {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(39, 37, 34, 0.12);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.swatch-metal--gold {
  background: linear-gradient(135deg, #8c5b16, #f8d083 40%, #9c691d 72%, #ffe3a6) !important;
}

.swatch-metal--silver {
  background: linear-gradient(135deg, #7d7d7d, #ffffff 42%, #9b9b9b 72%, #f5f5f5) !important;
}

.palette-banned {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.palette-banned > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.palette-banned span {
  position: relative;
  display: grid;
  min-height: 5.6rem;
  place-items: end center;
  padding: 0.75rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.palette-banned span::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 50%;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(39, 37, 34, 0.18);
  border-radius: 999px;
  background: var(--swatch);
  transform: translateX(-50%);
}

.palette-banned span::after {
  content: "";
  position: absolute;
  top: 1.65rem;
  left: 50%;
  width: 2.75rem;
  height: 1px;
  background: var(--rose);
  transform: translateX(-50%) rotate(-42deg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.gallery button {
  position: relative;
  min-height: 10rem;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--line);
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.gallery button:hover img {
  transform: scale(1.035);
  filter: saturate(1.02);
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

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

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  list-style-type: disc;
}

.faq-list p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.form-panel,
.message-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
}

.field textarea {
  resize: vertical;
}

.rsvp-code-row {
  display: grid;
  gap: 0.75rem;
}

.rsvp-code-row .button {
  width: 100%;
}

.rsvp-family {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.25rem;
}

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

.rsvp-family h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.1;
}

.rsvp-family__hint {
  margin: 0;
  color: var(--muted);
}

.rsvp-members {
  display: grid;
  gap: 0.65rem;
}

.rsvp-member {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.rsvp-member:hover {
  transform: translateY(-1px);
  border-color: rgba(49, 86, 70, 0.45);
  background: var(--sage-light);
}

.rsvp-member input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--sage);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-feedback {
  min-height: 1.5rem;
  color: var(--sage);
  font-weight: 700;
}

.form-feedback[data-type="error"] {
  color: var(--rose);
}

.form-feedback[data-type="success"] {
  color: var(--sage);
}

.gift-grid {
  display: grid;
  gap: 1rem;
}

.gift-card {
  display: grid;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gift-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gift-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gift-card__body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.gift-card p {
  color: var(--muted);
}

.gift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gift-chip {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.82rem;
}

.gift-chip--button {
  color: var(--sage);
  font-weight: 800;
}

.gift-chip--button:hover {
  background: var(--sage-light);
}

.payment-status {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.payment-status strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.payment-status p {
  color: var(--muted);
}

.gift-dialog {
  width: min(92vw, 32rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.gift-dialog::backdrop {
  background: rgba(20, 20, 18, 0.64);
  backdrop-filter: blur(6px);
}

.gift-dialog__panel {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.gift-dialog__panel h2 {
  padding-right: 2.5rem;
  font-size: clamp(2rem, 8vw, 3.5rem);
}

.gift-dialog__panel p:not(.section-kicker):not(.form-feedback) {
  color: var(--muted);
}

.gift-dialog__close {
  top: 1rem;
  right: 1rem;
  background: var(--sage);
}

.memory-grid {
  display: grid;
  gap: 1rem;
}

.memory-item {
  min-height: 12rem;
  display: grid;
  align-content: end;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.memory-item h3 {
  font-size: 1.3rem;
}

.memory-item p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--white);
}

@media screen and (min-width: 768px) {
  .site-footer {
    height: 99px;
  }
}

.site-footer p {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.music-player {
  --music-progress: 42%;
  position: fixed;
  z-index: 70;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem;
  border: 1px solid rgba(49, 84, 70, 0.18);
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.88);
  box-shadow: 0 14px 34px rgba(39, 37, 34, 0.16);
  backdrop-filter: blur(14px);
}

.music-player.is-waiting .music-toggle {
  animation: music-waiting-pulse 1.8s ease-in-out infinite;
}

@keyframes music-waiting-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(49, 84, 70, 0.22);
  }

  50% {
    box-shadow: 0 0 0 0.45rem rgba(49, 84, 70, 0);
  }
}

.music-player-mobile {
  display: none;
}

@media (max-width: 679px) {
  .music-player-desktop {
    display: none;
  }

  .music-player-mobile {
    display: flex;
  }
}

.music-toggle {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  padding: 0.28rem;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(currentColor var(--music-progress), rgba(49, 84, 70, 0.18) 0);
  color: var(--sage);
  transition: transform 180ms ease, color 180ms ease;
}

.music-toggle::before {
  content: "";
  position: absolute;
  inset: 0.28rem;
  border-radius: 50%;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  transition: background 180ms ease;
}

.music-toggle::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 1.75rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-42deg) scaleX(0);
  transition: transform 180ms ease;
  transform-origin: center;
}

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

.music-toggle[aria-pressed="true"] {
  color: var(--white);
}

.music-toggle[aria-pressed="true"]::before {
  background: var(--sage);
}

.music-toggle:not([aria-pressed="true"])::after {
  transform: rotate(-42deg) scaleX(1);
}

.music-toggle__icon {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.music-toggle:not([aria-pressed="true"]) .music-toggle__icon {
  opacity: 0.72;
}

.music-volume {
  width: clamp(6rem, 24vw, 9rem);
  padding-right: 0.45rem;
}

.music-volume input {
  --track-fill: 42%;
  width: 100%;
  height: 1.5rem;
  display: block;
  margin: 0;
  cursor: pointer;
  accent-color: var(--sage);
  background: transparent;
}

.music-volume input::-webkit-slider-runnable-track {
  height: 0.34rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage) var(--track-fill), rgba(49, 84, 70, 0.18) 0);
}

.music-volume input::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: -0.33rem;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 4px 12px rgba(39, 37, 34, 0.18);
}

.music-volume input::-moz-range-track {
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(49, 84, 70, 0.18);
}

.music-volume input::-moz-range-progress {
  height: 0.34rem;
  border-radius: 999px;
  background: var(--sage);
}

.music-volume input::-moz-range-thumb {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 4px 12px rgba(39, 37, 34, 0.18);
}

@media (max-width: 679px) {
  .site-header {
    gap: 0.55rem;
  }

  .site-header .brand {
    order: 1;
  }

  .site-header .music-player {
    position: static;
    order: 2;
    z-index: auto;
    flex: 0 1 auto;
    gap: 0.4rem;
    padding: 0.26rem 0.36rem;
    box-shadow: none;
  }

  .site-header .nav-toggle {
    order: 3;
  }

  .site-header .site-nav {
    order: 4;
  }

  .site-header .music-toggle {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0.2rem;
  }

  .site-header .music-toggle::after {
    width: 1.3rem;
  }

  .site-header .music-toggle__icon {
    width: 1rem;
    height: 1rem;
  }

  .site-header .music-volume {
    width: clamp(3.9rem, 20vw, 5rem);
    padding-right: 0.18rem;
  }

  .site-header .music-volume input {
    height: 1.2rem;
  }
}


.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 20, 18, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 88svh;
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1px;
  background: var(--white);
}

.lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

.rsvp-subtitle {
  margin-top: 0.7rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

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

@media (min-width: 680px) {
  .hero__content {
    padding-bottom: 4rem;
  }

  .intro-grid,
  .event-layout,
  .form-layout,
  .guestbook-layout {
    grid-template-columns: 0.8fr 1.4fr;
    align-items: start;
  }

  .timeline {
    gap: 2rem;
  }

  .timeline::before {
    left: 50%;
  }

  .timeline-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    padding-left: 0;
  }

  .timeline-item::before {
    left: calc(50% - 0.35rem);
  }

  .timeline-item:nth-child(odd) .timeline-card {
    grid-column: 1;
  }

  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
  }

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

  .palette-swatches {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .rsvp-code-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .rsvp-code-row .button {
    width: auto;
  }

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

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

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

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    background: transparent;
    color: inherit;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .hero {
    align-items: center;
  }

  .hero__content {
    padding-top: 10rem;
  }

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

  .gallery button:nth-child(4n + 1) {
    grid-row: span 2;
  }

  .gallery button:nth-child(4n + 1) img {
    aspect-ratio: 1 / 2;
  }

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