:root {
  --ivory: #faf6f0;
  --paper: #fffdf9;
  --sage: #8a9a83;
  --sage-deep: #52614e;
  --dusty-rose: #c9a9a0;
  --rose-deep: #785951;
  --soft-gold: #bfa06a;
  --gold-deep: #705726;
  --ink: #2f2a26;
  --ink-soft: #625b55;
  --line: rgba(47, 42, 38, 0.18);
  --line-light: rgba(47, 42, 38, 0.1);
  --white: #ffffff;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lato", Arial, sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --container: 76rem;
  --container-narrow: 48rem;
  --container-form: 50rem;
  --gutter: clamp(1.1rem, 5vw, 4rem);
  --section-space: clamp(5rem, 10vw, 8.5rem);
  --radius-photo: 1.5rem;
  --radius-card: 1.25rem;
  --shadow-soft: 0 1.4rem 3.5rem rgba(70, 56, 46, 0.09);
  --shadow-overlay: 0 1.75rem 5rem rgba(20, 16, 13, 0.35);
}

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

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

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
figcaption,
fieldset,
address {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
}

h1,
h2 {
  line-height: 0.96;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 10vw, 5.8rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.05;
}

address {
  font-style: normal;
}

::selection {
  background: var(--dusty-rose);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--form {
  max-width: var(--container-form);
}

.section {
  padding-block: var(--section-space);
}

.section-heading {
  margin-bottom: clamp(2.75rem, 7vw, 4.75rem);
}

.section-heading--center {
  max-width: 47rem;
  margin-inline: auto;
  text-align: center;
}

.section-heading--center > p:last-child {
  max-width: 38rem;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: var(--ink-soft);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--rose-deep);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.script-accent {
  margin-bottom: 0.55rem;
  color: var(--rose-deep);
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1.1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-underline-offset: 0.4em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(250, 246, 240, 0.97);
}

.header-inner {
  position: relative;
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  min-height: 5.25rem;
  margin-inline: auto;
}

.header-name {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 7rem);
  color: var(--ink);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.header-name > span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-name small {
  margin-top: 0.4rem;
  color: var(--rose-deep);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 3;
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  place-content: center;
  gap: 0.42rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.22rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.22rem) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 100%;
  right: calc(var(--gutter) * -1);
  left: calc(var(--gutter) * -1);
  display: none;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  text-align: center;
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 0.7rem;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header.is-condensed {
  border-bottom-color: var(--line);
  box-shadow: 0 0.5rem 1.6rem rgba(47, 42, 38, 0.04);
}

.site-header.is-condensed .header-inner {
  min-height: 4.25rem;
}

.site-header.is-condensed .header-name small {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100svh - 5.25rem);
  overflow: hidden;
  place-items: center;
  background: #d9d0c4;
  color: var(--ink);
}

.hero-photo,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-vignette {
  z-index: 1;
  background:
    radial-gradient(
      ellipse at center,
      rgba(250, 246, 240, 0.28) 0%,
      rgba(250, 246, 240, 0.18) 58%,
      transparent 80%,
      rgba(47, 42, 38, 0.16) 100%
    ),
    linear-gradient(to bottom, rgba(47, 42, 38, 0.1), transparent 42%, rgba(250, 246, 240, 0.14));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (var(--gutter) * 2)), 60rem);
  padding-block: clamp(5rem, 12vh, 8rem);
  text-align: center;
}

.hero-content::before {
  position: absolute;
  z-index: -1;
  inset: clamp(3.5rem, 10vh, 6rem) 0;
  border-radius: clamp(2rem, 8vw, 4rem);
  background: rgba(250, 246, 240, 0.76);
  content: "";
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(4.2rem, 18vw, 9rem);
  text-shadow: 0 1px 1.25rem rgba(250, 246, 240, 0.5);
}

.hero h1 span {
  display: block;
  margin-block: -0.24em -0.18em;
  color: var(--rose-deep);
  font-size: 0.48em;
  font-style: italic;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 2rem;
  font-size: clamp(0.74rem, 2.5vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  width: min(100%, 31rem);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(47, 42, 38, 0.26);
  background: rgba(250, 246, 240, 0.86);
  box-shadow: 0 1rem 3rem rgba(47, 42, 38, 0.08);
  backdrop-filter: blur(6px);
}

.countdown-block {
  min-width: 0;
  padding: 0.85rem 0.25rem 0.75rem;
  text-align: center;
}

.countdown-block + .countdown-block {
  border-left: 1px solid rgba(47, 42, 38, 0.2);
}

.countdown strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 7vw, 2.65rem);
  font-weight: 600;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-section {
  background: var(--paper);
}

.story-timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 58rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.story-timeline::before {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.45rem;
  width: 1px;
  background: var(--sage);
  content: "";
}

.story-moment {
  position: relative;
  display: grid;
  padding: 0 0 3.25rem 2.35rem;
}

.story-moment:last-child {
  padding-bottom: 0;
}

.story-dot {
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 0.95rem;
  height: 0.95rem;
  border: 0.22rem solid var(--paper);
  border-radius: 50%;
  background: var(--soft-gold);
  box-shadow: 0 0 0 1px var(--soft-gold);
}

.story-moment time {
  margin-bottom: 0.45rem;
  color: var(--rose-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin-bottom: 0.4rem;
}

.story-copy p {
  max-width: 23rem;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.details-section {
  background: var(--ivory);
}

.details-grid,
.travel-grid {
  display: grid;
  align-items: stretch;
  gap: 1rem;
}

.detail-card,
.travel-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.35rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 249, 0.72);
  text-align: center;
}

.detail-card:nth-child(2) {
  background: rgba(201, 169, 160, 0.14);
}

.detail-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  fill: none;
  stroke: var(--sage-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.card-number {
  margin-bottom: 0.6rem;
  color: var(--gold-deep);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.detail-time {
  margin-bottom: 1rem;
  color: var(--rose-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-note {
  margin: -0.35rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.detail-card address {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.detail-card .text-link,
.travel-card .text-link {
  margin-top: auto;
}

.schedule-section {
  background: var(--sage);
  color: var(--ink);
}

.schedule-section .eyebrow {
  color: var(--ink);
}

.agenda {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda li {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, auto) minmax(1.25rem, 1fr) 4.65rem;
  align-items: end;
  gap: 0.6rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(47, 42, 38, 0.18);
}

.agenda li:first-child {
  border-top: 1px solid rgba(47, 42, 38, 0.18);
}

.agenda-event {
  min-width: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.05;
}

.agenda-leader {
  min-width: 0;
  border-bottom: 1px dotted rgba(47, 42, 38, 0.62);
  transform: translateY(-0.34rem);
}

.agenda time {
  width: 4.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  white-space: nowrap;
}

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

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

.gallery-tile {
  display: grid;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-photo);
  background: transparent;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: zoom-in;
  text-align: left;
}

.gallery-art {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
}

.gallery-tile img.gallery-art {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-art--one {
  object-position: 50% 54%;
}

.gallery-art--two {
  object-position: 50% 50%;
}

.gallery-art--three {
  object-position: 22% 58%;
}

.gallery-art--four {
  object-position: 28% 50%;
}

.gallery-art--five {
  object-position: 78% 56%;
}

.gallery-art--six {
  object-position: 75% 50%;
}

.gallery-art::before,
.gallery-art::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.gallery-art::before {
  width: 45%;
  aspect-ratio: 1;
  border: 1px solid rgba(47, 42, 38, 0.16);
}

.gallery-art::after {
  right: 3%;
  bottom: 3%;
  width: 45%;
  aspect-ratio: 1;
  background: rgba(250, 246, 240, 0.24);
}

.gallery-art svg {
  position: relative;
  z-index: 1;
  width: 62%;
  height: 62%;
  overflow: visible;
  fill: rgba(250, 246, 240, 0.18);
  stroke: rgba(47, 42, 38, 0.36);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.gallery-tile--one .gallery-art {
  background: linear-gradient(145deg, #aebaa7, #d7c6b5);
}

.gallery-tile--two .gallery-art {
  background: linear-gradient(145deg, #d4bbb3, #eadbd0);
}

.gallery-tile--three .gallery-art {
  background: linear-gradient(145deg, #b9c3ba, #e3d3b7);
}

.gallery-tile--four .gallery-art {
  background: linear-gradient(145deg, #c2b692, #e0cbc4);
}

.gallery-tile--five .gallery-art {
  background: linear-gradient(145deg, #d1afa6, #d8cdb6);
}

.gallery-tile--six .gallery-art {
  background: linear-gradient(145deg, #9eac98, #d8c1b8);
}

.gallery-caption {
  padding: 0.9rem 1rem 1rem;
  background: var(--ivory);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
}

.travel-section {
  background: var(--ivory);
}

.travel-card {
  padding: clamp(2.3rem, 7vw, 4rem);
}

.travel-card p:not(.card-number) {
  max-width: 28rem;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.travel-card:first-child {
  background: rgba(138, 154, 131, 0.12);
}

.travel-card:last-child {
  background: rgba(201, 169, 160, 0.13);
}

.rsvp-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 169, 160, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 90%, rgba(138, 154, 131, 0.13), transparent 30rem),
    var(--paper);
}

.rsvp-section .script-accent {
  margin-bottom: 0.4rem;
}

.rsvp-form {
  padding: clamp(1.4rem, 6vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(250, 246, 240, 0.78);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 1.35rem;
}

.field {
  min-width: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field label span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(47, 42, 38, 0.34);
  border-radius: 0.4rem;
  background: var(--paper);
  color: var(--ink);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.attendance-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.radio-option {
  display: flex !important;
  min-height: 3.25rem;
  align-items: center;
  gap: 0.7rem;
  margin: 0 !important;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(47, 42, 38, 0.28);
  border-radius: 0.4rem;
  background: var(--paper);
  cursor: pointer;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.radio-option input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin: 0;
  accent-color: var(--sage-deep);
}

.radio-option span {
  color: var(--ink) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.submit-button {
  display: flex;
  width: min(100%, 18rem);
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 0;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}

.form-success {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--sage-deep);
  border-radius: 0.5rem;
  background: rgba(138, 154, 131, 0.18);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.registry-section {
  background: var(--ivory);
}

.registry-links {
  display: grid;
  gap: 0.75rem;
}

.registry-links a {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  padding: 4rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.footer-initials {
  margin-bottom: 0.65rem;
  color: var(--rose-deep);
  font-family: var(--font-script);
  font-size: 3.6rem;
  line-height: 1;
}

.footer-initials span {
  margin-inline: 0.12em;
  color: var(--gold-deep);
  font-family: var(--font-heading);
  font-size: 0.62em;
}

.footer-date {
  margin-bottom: 1.5rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-credit {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.footer-credit a {
  color: var(--ink);
  text-underline-offset: 0.25em;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  padding: 4.75rem 1rem 1.5rem;
  overflow: auto;
  place-items: center;
  background: rgba(35, 30, 27, 0.9);
}

.lightbox-dialog {
  display: grid;
  width: min(100%, 70rem);
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--ivory);
  box-shadow: var(--shadow-overlay);
}

.lightbox-visual {
  min-width: 0;
}

.lightbox-visual .gallery-art {
  width: 100%;
  max-height: 70vh;
}

.lightbox-figure figcaption {
  padding: 0.8rem 1rem 1rem;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  text-align: center;
}

.lightbox-close,
.lightbox-arrow {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(250, 246, 240, 0.1);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-arrow {
  font-size: 1.35rem;
}

@media (min-width: 40rem) {
  .hero h1 span {
    display: inline;
    margin: 0 0.12em;
    font-size: 0.55em;
  }

  .story-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .story-moment {
    grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
    align-items: start;
    padding: 0 0 4rem;
  }

  .story-dot {
    top: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .story-moment time {
    grid-column: 1;
    padding-top: 0.05rem;
    padding-right: 1.5rem;
    text-align: right;
  }

  .story-copy {
    grid-column: 3;
    padding-left: 1.5rem;
  }

  .story-moment:nth-child(even) time {
    grid-column: 3;
    padding-right: 0;
    padding-left: 1.5rem;
    text-align: left;
  }

  .story-moment:nth-child(even) .story-copy {
    grid-row: 1;
    grid-column: 1;
    padding-right: 1.5rem;
    padding-left: 0;
    text-align: right;
  }

  .story-moment:nth-child(even) .story-copy p {
    margin-left: auto;
  }

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

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

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

  .field--full {
    grid-column: 1 / -1;
  }

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

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

@media (min-width: 52rem) {
  .details-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  html {
    scroll-padding-top: 6.5rem;
  }

  .header-inner {
    display: grid;
    min-height: 8.1rem;
    grid-template-rows: 4.7rem 3.4rem;
    align-items: center;
  }

  .header-name {
    position: static;
    grid-row: 1;
    justify-self: center;
    width: auto;
    transform: none;
  }

  .header-name > span {
    font-size: 1.8rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    position: static;
    display: flex;
    grid-row: 2;
    align-self: stretch;
    justify-content: center;
    gap: clamp(1.8rem, 4vw, 3.8rem);
    padding: 0;
    border-top: 1px solid var(--line-light);
    border-bottom: 0;
    background: transparent;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0.72rem;
    left: 0;
    height: 1px;
    background: var(--soft-gold);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
  }

  .site-nav a {
    position: relative;
  }

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

  .site-header.is-condensed .header-inner {
    min-height: 4.5rem;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 3rem;
  }

  .site-header.is-condensed .header-name {
    grid-row: 1;
  }

  .site-header.is-condensed .header-name > span {
    font-size: 1.45rem;
  }

  .site-header.is-condensed .site-nav,
  .site-header.is-condensed .site-nav.is-open {
    grid-row: 1;
    justify-content: flex-end;
    border-top: 0;
  }

  .hero {
    min-height: calc(100svh - 8.1rem);
  }

  .details-grid,
  .travel-grid,
  .gallery-grid {
    gap: 1.35rem;
  }

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

@media (max-width: 24rem) {
  .agenda li {
    grid-template-columns: minmax(0, auto) minmax(0.65rem, 1fr) 4.25rem;
    gap: 0.4rem;
  }

  .agenda time {
    width: 4.25rem;
    font-size: 0.69rem;
  }

  .lightbox {
    padding-inline: 0.5rem;
  }

  .lightbox-dialog {
    grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem;
    gap: 0.25rem;
  }

  .lightbox-arrow {
    width: 2.4rem;
    height: 2.4rem;
  }
}

@media (hover: hover) {
  .gallery-tile:hover .gallery-art {
    transform: scale(1.05);
  }

  .registry-links a:hover,
  .submit-button:hover {
    background: var(--rose-deep);
    color: var(--white);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .site-header,
  .header-inner,
  .header-name > span,
  .nav-toggle span,
  .site-nav a::after,
  .gallery-art,
  .registry-links a,
  .submit-button {
    transition:
      color 180ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      min-height 240ms ease,
      font-size 240ms ease,
      transform 240ms ease;
  }
}

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

/* Standard: back-to-top button with scroll-progress ring */
.btt-button {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(17, 17, 17, 0.85); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btt-button.btt-visible { opacity: 1; visibility: visible; transform: none; }
.btt-button:focus-visible { outline: 3px solid #bfa06a; outline-offset: 3px; }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-ring circle { fill: none; stroke-width: 3; }
.btt-ring-track { stroke: rgba(255, 255, 255, 0.22); }
.btt-ring-fill { stroke: #bfa06a; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; stroke-linecap: round; }
.btt-arrow { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .btt-button { transition: none; } }
