/*
  Design tokens
  - Colors: update these variables to refresh the palette site-wide.
  - Typography: shared font families, sizes, and line-heights live here.
  - Spacing: use the scale below instead of introducing one-off spacing values.
*/
:root {
  --color-invitation-sage: #98a796;
  --color-invitation-mist: #9da598;
  --color-invitation-evergreen: #5c6c63;
  --color-background: #f6f6f1;
  --color-surface: rgba(252, 252, 248, 0.84);
  --color-surface-strong: #fcfcf8;
  --color-white: #ffffff;
  --color-header-text: var(--color-surface-strong);
  --color-eyebrow: var(--color-accent-strong);
  --color-text: var(--color-invitation-evergreen);
  --color-text-alt: #526158;
  --color-text-muted: #5b6b61;
  --color-text-preview: var(--color-text);
  --color-frame: rgba(92, 108, 99, 0.34);
  --color-frame-soft: rgba(152, 167, 150, 0.2);
  --color-frame-glow: rgba(157, 165, 152, 0.28);
  --color-line: rgba(92, 108, 99, 0.16);
  --color-accent: var(--color-invitation-sage);
  --color-accent-strong: var(--color-invitation-evergreen);
  --color-accent-soft: #d9dfd7;
  --color-panel-soft: var(--color-invitation-mist);
  --color-blush: #e6ebe4;
  --color-palette-1: #b7bec8;
  --color-palette-2: #8ea4bb;
  --color-palette-3: #d9c8cc;
  --color-palette-4: #43546d;
  --color-palette-5: #ead7d7;
  --font-family-body: "Inter", sans-serif;
  --font-family-display: "Cormorant Garamond", serif;
  --font-family-brand: "Qwitcher Grypen", "Great Vibes", "Cormorant Garamond", serif;
  --font-size-body: 1rem;
  --font-size-ui: 0.9rem;
  --font-size-eyebrow: 0.85rem;
  --font-size-card-title: 1.2rem;
  --font-size-brand: clamp(2.35rem, 10vw, 3.6rem);
  --font-size-hero: clamp(2.55rem, 11.8vw, 5.2rem);
  --font-size-section: clamp(1.9rem, 8vw, 3.5rem);
  --font-size-highlight: clamp(2rem, 7.6vw, 2.8rem);
  --line-height-body: 1.6;
  --line-height-tight: 1.05;
  --letter-spacing-eyebrow: 0.12em;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-section: clamp(4rem, 9vw, 6rem);
  --space-panel: clamp(1.5rem, 6vw, 3rem);
  --container-inline-padding: 1rem;
  --container-inline-padding-wide: 2rem;
  --shadow-soft: 0 1.25rem 3rem rgba(92, 108, 99, 0.08);
  --tile-corner-size: clamp(4.5rem, 18vw, 7rem);
  --tile-corner-artwork: url("decorations/tile-corner-ornate.svg");
  --radius-large: 1.75rem;
  --radius-medium: 1rem;
  --header-offset: clamp(5.5rem, 12vw, 7.5rem);
  --max-width: 80rem;
  --viewport-frame-offset: clamp(0.35rem, 1vw, 0.7rem);
  --viewport-frame-width: clamp(1px, 0.18vw, 2px);
  --viewport-frame-radius: clamp(0.8rem, 2.5vw, 1.5rem);
  --viewport-frame-corner-size: clamp(2.25rem, 9vw, 5rem);
  --viewport-content-padding: clamp(0.65rem, 1.8vw, 1.25rem);
  --viewport-safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Documentation only: keep these in sync with the hardcoded @media values below. */
  --breakpoint-tablet: 72rem;
  --breakpoint-desktop: 80rem;
}

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

html {
  position: relative;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-offset) + var(--viewport-frame-offset));
}

html::before {
  content: "";
  position: fixed;
  top: calc(var(--viewport-frame-offset) + var(--viewport-frame-width));
  right: calc(var(--viewport-frame-offset) + var(--viewport-frame-width));
  bottom: calc(
    var(--viewport-frame-offset) +
    var(--viewport-frame-width) +
    var(--viewport-safe-bottom)
  );
  left: calc(var(--viewport-frame-offset) + var(--viewport-frame-width));
  z-index: 28;
  pointer-events: none;
  border-radius: calc(var(--viewport-frame-radius) - var(--viewport-frame-width));
  box-shadow: 0 0 0 100vmax var(--color-background);
}

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

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-preview);
  background-color: var(--color-background);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  top: var(--viewport-frame-offset);
  right: var(--viewport-frame-offset);
  bottom: calc(var(--viewport-frame-offset) + var(--viewport-safe-bottom));
  left: var(--viewport-frame-offset);
  z-index: 30;
  border: var(--viewport-frame-width) solid var(--color-frame);
  border-radius: var(--viewport-frame-radius);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(92, 108, 99, 0.1);
}

body::after {
  top: calc(var(--viewport-frame-offset) + var(--viewport-frame-width));
  right: calc(var(--viewport-frame-offset) + var(--viewport-frame-width));
  bottom: calc(
    var(--viewport-frame-offset) +
    var(--viewport-frame-width) +
    var(--viewport-safe-bottom)
  );
  left: calc(var(--viewport-frame-offset) + var(--viewport-frame-width));
  z-index: 29;
  border-radius: calc(var(--viewport-frame-radius) - var(--viewport-frame-width));
  background:
    radial-gradient(circle at top left, var(--color-frame-glow) 0 24%, transparent 57%),
    radial-gradient(circle at top right, var(--color-frame-glow) 0 24%, transparent 57%),
    radial-gradient(circle at bottom left, var(--color-frame-soft) 0 24%, transparent 57%),
    radial-gradient(circle at bottom right, var(--color-frame-soft) 0 24%, transparent 57%);
  background-size: var(--viewport-frame-corner-size) var(--viewport-frame-corner-size);
  background-repeat: no-repeat;
  background-position: top left, top right, bottom left, bottom right;
}

body.frame-style-minimal::before {
  box-shadow: none;
}

body.frame-style-minimal::after {
  display: none;
}

body.theme-text-alt {
  --color-text-preview: var(--color-text-alt);
}

body.corner-style-1 {
  --tile-corner-artwork: url("decorations/tile-corner-petal-fan.svg");
}

.page-shell {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--viewport-frame-offset) + var(--viewport-frame-width));
  margin-right: calc(var(--viewport-frame-offset) + var(--viewport-frame-width));
  margin-bottom: calc(
    var(--viewport-frame-offset) +
    var(--viewport-frame-width) +
    var(--viewport-safe-bottom)
  );
  margin-left: calc(var(--viewport-frame-offset) + var(--viewport-frame-width));
  border-radius: calc(var(--viewport-frame-radius) - var(--viewport-frame-width));
  overflow: clip;
}

@supports not (overflow: clip) {
  .page-shell {
    overflow: hidden;
  }
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: calc(var(--viewport-frame-offset) + var(--space-sm));
  top: var(--viewport-frame-offset);
  transform: translateY(calc(-100% - var(--space-sm)));
  opacity: 0;
  pointer-events: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 999px;
  background: var(--color-accent-strong);
  color: var(--color-white);
  z-index: 100;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

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

.site-header {
  display: flex;
  align-items: center;
  min-height: clamp(4.75rem, 11vw, 6rem);
  position: sticky;
  top: var(--viewport-frame-offset);
  z-index: 10;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: linear-gradient(135deg, #4a5953 0%, #6a7b71 100%);
  border-bottom: 1px solid rgba(92, 108, 99, 0.12);
}

.header-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: calc(var(--space-2xs) + var(--viewport-content-padding)) 0
    calc(var(--space-xs) + var(--viewport-content-padding));
  padding-inline: var(--space-sm);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-sm);
}

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

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(92, 108, 99, 0.24);
  border-radius: 999px;
  background: rgba(252, 252, 248, 0.82);
  color: var(--color-accent-strong);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

html:not(.has-js) .nav-toggle {
  display: none;
}

.brand {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  gap: 0.42rem;
  font-family: var(--font-family-brand);
  font-size: var(--font-size-brand);
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
  justify-self: center;
  text-align: center;
  text-decoration: none;
  line-height: 0.88;
  color: var(--color-header-text);
}

.brand-name,
.brand-separator {
  color: var(--color-header-text);
}

.brand-name {
  display: inline-block;
}

.brand-separator {
  display: inline-block;
  margin-inline: 0.12em;
  line-height: 1;
  transform: translateY(-0.04em);
}

.card-label {
  color: var(--color-accent-strong);
}

.eyebrow {
  color: var(--color-eyebrow);
}

.site-nav {
  overflow-x: visible;
  width: 100%;
}

.has-js .site-nav {
  display: none;
}

.has-js .site-header.nav-open .site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li {
  flex: 1 1 calc(50% - var(--space-2xs));
  min-width: 5rem;
}

.has-js .nav-list {
  flex-direction: column;
}

.has-js .nav-list > li {
  flex: 1 1 auto;
}

.nav-list a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
  font-size: 0.8rem;
}

.nav-list a {
  color: var(--color-header-text);
  background: rgba(92, 108, 99, 0.9);
  border: 1px solid rgba(252, 252, 248, 0.22);
  font-weight: 500;
  width: 100%;
}

.nav-icon {
  margin-right: 0.35rem;
  font-size: 0.95em;
  line-height: 1;
}

.nav-list a:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-list a:focus-visible,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 0.1875rem solid var(--color-accent-strong);
  outline-offset: 0.125rem;
}

@media (prefers-reduced-motion: reduce) {
  .nav-list a,
  .button {
    transition: none;
  }

  .nav-list a:hover,
  .button:hover,
  .nav-list a:focus-visible,
  .button:focus-visible {
    transform: none;
  }
}

.hero {
  padding: clamp(2.25rem, 7vw, 3.5rem) 0 var(--space-section);
}

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

#story.section {
  padding-top: clamp(2.25rem, 7vw, 3.5rem);
}

.story-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.story-copy {
  grid-column: 1 / -1;
  order: -1;
}

.story-photos {
  display: contents;
}

.story-photo {
  margin: 0;
  border-radius: var(--radius-large);
  overflow: hidden;
  border: 1px solid rgba(92, 108, 99, 0.16);
  background: rgba(252, 252, 248, 0.66);
}

.story-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-photo--focus-right img {
  object-position: 80% center;
}

.hero-grid,
.section-grid,
.details-grid,
.card-grid,
.footer-inner,
.rsvp-panel {
  display: grid;
  gap: var(--space-md);
}

.hero-copy,
.hero-card,
.info-card,
.detail-panel,
.rsvp-panel {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-copy::after,
.hero-card::after,
.info-card::after,
.detail-panel::after,
.rsvp-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--tile-corner-size);
  height: var(--tile-corner-size);
  pointer-events: none;
  background: var(--tile-corner-artwork) top right / contain no-repeat;
  opacity: 0.9;
}

.hero-card {
  order: -1;
}

.hero-photo {
  margin: 0 auto var(--space-sm);
  max-width: clamp(11rem, 56vw, 16rem);
  border-radius: calc(var(--radius-large) - 0.4rem);
  overflow: clip;
  border: 1px solid rgba(92, 108, 99, 0.16);
  background: rgba(252, 252, 248, 0.66);
}

@supports not (overflow: clip) {
  .hero-photo {
    overflow: hidden;
  }
}

.hero-photo img {
  display: block;
  width: 100%;
  max-height: 17rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-copy,
.hero-card,
.info-card,
.detail-panel {
  padding: var(--space-md);
  border-radius: var(--radius-large);
}

.hero-copy h1:not(.eyebrow) {
  margin: 0.25rem 0 1rem;
  font-family: var(--font-family-brand);
  line-height: var(--line-height-tight);
}

.section h2 {
  margin: 0.25rem 0 1rem;
  font-family: var(--font-family-display);
  line-height: var(--line-height-tight);
}

#story-title,
#celebration-title,
#details-title,
#rsvp-title {
  font-family: var(--font-family-brand);
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
}

.hero-copy h1:not(.eyebrow) {
  font-size: var(--font-size-hero);
}

.section h2 {
  font-size: var(--font-size-section);
}

.hero-text,
.section-copy,
.card-copy,
.detail-panel p,
.info-card p,
.rsvp-panel p {
  color: var(--color-text-muted);
}

.detail-panel p a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--color-accent-strong);
  font-weight: 600;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.2em;
}

.detail-panel p a:hover {
  text-decoration-thickness: 0.125rem;
}

.detail-panel p a:focus-visible {
  outline: 0.1875rem solid var(--color-accent-strong);
  outline-offset: 0.125rem;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-bottom: var(--space-sm);
}

.palette-swatch {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-line);
  border-radius: 50%;
}

.palette-swatch:nth-child(1) { background: var(--color-palette-1); }
.palette-swatch:nth-child(2) { background: var(--color-palette-2); }
.palette-swatch:nth-child(3) { background: var(--color-palette-3); }
.palette-swatch:nth-child(4) { background: var(--color-palette-4); }
.palette-swatch:nth-child(5) { background: var(--color-palette-5); }

.schedule-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--color-line);
}

.schedule-item:last-child {
  border-bottom: 0;
}

.schedule-item strong {
  min-width: 5.5rem;
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--color-accent-strong);
}

/* Map links get a pin icon; other links get an arrow. */
.detail-panel p a[href*="google.com/maps"]::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.35em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.detail-panel p a:not([href*="google.com/maps"]) {
  font-size: 0.9em;
  font-weight: 500;
  white-space: nowrap;
}

.detail-panel p a:not([href*="google.com/maps"])::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.35em;
}

.button {
  font-weight: 600;
  width: 100%;
}

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

.button-secondary {
  background: rgba(252, 252, 248, 0.74);
  border: 1px solid var(--color-line);
}

.card-value,
.site-footer p:first-child {
  margin: 0.4rem 0 0;
  font-family: var(--font-family-brand);
  font-size: var(--font-size-highlight);
  font-weight: 700;
}

.section-accent {
  background: rgba(157, 165, 152, 0.18);
}

.section-highlight {
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: var(--space-lg);
}

.hero-card,
.info-card,
.detail-panel,
.rsvp-panel {
  border: 1px solid rgba(92, 108, 99, 0.12);
}

.card-grid,
.details-grid {
  margin-top: var(--space-lg);
}

.info-card,
.detail-panel {
  background: var(--color-surface-strong);
  border: 1px solid var(--color-line);
}

.info-card h3,
.detail-panel h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-card-title);
}

.rsvp-panel {
  padding: var(--space-panel);
  border-radius: calc(var(--radius-large) + 0.5rem);
}

.site-footer {
  padding: var(--space-md) 0 var(--space-xl);
}

.footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  text-align: left;
  flex-wrap: wrap;
  gap: clamp(var(--space-lg), 6vw, 5.5rem);
  color: var(--color-text-muted);
}

.footer-inner p {
  margin: 0;
}

.site-footer p:first-child {
  margin: 0.4rem 0 0;
  font-family: var(--font-family-brand);
  font-weight: 700;
  font-size: var(--font-size-highlight);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.site-footer p:last-child {
  margin-top: 0;
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: normal;
}

@media (min-width: 72rem) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y mandatory;
  }

  .hero,
  .section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .section-highlight {
    scroll-snap-stop: normal;
  }

  .site-footer {
    scroll-snap-align: end;
    scroll-snap-stop: always;
  }
}

@media (min-width: 72rem) and (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
}

@media (min-width: 72rem) {

  .hero {
    min-height: calc(100dvh - (var(--viewport-frame-offset) * 2));
    display: flex;
    align-items: center;
    padding-top: var(--space-section);
    padding-bottom: clamp(2rem, 5vw, 3.25rem);
  }

  #story.section {
    padding-top: clamp(2rem, 5vw, 3.25rem);
  }

  .site-footer {
    min-height: max(12rem, var(--footer-fill-height, 12rem));
    display: flex;
    align-items: center;
  }

  .site-footer .footer-inner {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
  }

  .nav-list a,
  .button {
    min-height: clamp(2.45rem, 3.2vw, 2.75rem);
    padding: 0.58rem clamp(0.6rem, 0.75vw, 0.95rem);
    font-size: clamp(0.8rem, 0.82vw, var(--font-size-ui));
  }

  .header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    padding-inline: var(--space-xs);
  }

  .container.header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .header-top {
    position: absolute;
    top: calc(50% - 0.12rem);
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
  }

  .brand {
    font-size: clamp(2.7rem, 3.8vw, 4.05rem);
    gap: 0.58rem;
    transform: translateY(-0.30rem);
  }

  .brand-separator {
    margin-inline: 0.18em;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    margin-left: auto;
    margin-right: var(--space-xs);
    display: block;
    overflow: visible;
    width: max-content;
  }

  .nav-list {
    gap: clamp(0.2rem, 0.45vw, var(--space-2xs));
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: max-content;
  }

  .has-js .site-nav {
    display: block;
  }

  .has-js .nav-list {
    flex-direction: row;
    justify-content: flex-end;
  }

  .has-js .nav-list > li {
    flex: 0 0 auto;
  }


  .nav-list > li {
    flex: 0 0 auto;
    min-width: 0;
  }

  .nav-list a {
    width: auto;
  }


  .button {
    width: auto;
  }

  .hero-grid,
  .section-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr);
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 1.08fr);
    gap: var(--space-lg);
    transform: translateY(calc(var(--header-offset) * -0.5));
  }

  .hero-copy,
  .hero-card {
    padding: clamp(2rem, 2.4vw, 2.75rem);
  }

  .hero-photo {
    max-width: clamp(16.5rem, 28vw, 23rem);
  }

  .hero-photo img {
    max-height: 24rem;
  }

  .hero-card {
    order: 0;
  }

  .story-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-lg);
  }

  .story-copy {
    grid-column: 2;
    grid-row: 1;
    order: 0;
  }

  .story-photos {
    display: grid;
    gap: var(--space-md);
    grid-row: 1;
    width: 100%;
    max-width: 14rem;
    justify-self: center;
  }

  .story-photos-left {
    grid-column: 1;
  }

  .story-photos-right {
    grid-column: 3;
  }

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

  .rsvp-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

@media (min-width: 80rem) {
  .container {
    width: min(calc(100% - (var(--container-inline-padding-wide) * 2)), var(--max-width));
  }

  .container.header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(22rem, 0.95fr);
  }

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

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





















