.postcard-site { --story-header: 5.2rem; }
.post-wide-nav a[aria-current="location"], .post-menu a[aria-current="location"] {
  color: var(--text-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.post-wide-nav .post-rsvp-link[aria-current="location"], .post-menu .post-rsvp-link[aria-current="location"] {
  background: var(--control-light-hover);
  color: var(--text-primary);
}
.story-hero-photo, .story-hero-title, .story-scroll-note { display: none; }
.story-flat {
  position: absolute;
  inset: 5% 4%;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: var(--flat-opacity, 0);
  transform: translate3d(var(--flat-x, 0px), var(--flat-y, 0px), 0) scale(var(--flat-scale, 1));
  transform-origin: center;
}
.story-flat img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px var(--shadow-lifted));
}
.post-hero[data-open] .story-flat { opacity: var(--flat-opacity, 1); }
.post-hero[data-open] .post-stationery { transform: none; }
.post-hero .post-stationery { opacity: var(--stationery-opacity, 1); }
.story-scroll-note { color: var(--text-accent); }
.story-engagement-portrait { position: relative; background: var(--surface-mist); color: var(--text-muted); }
.story-engagement-portrait img { width: 100%; max-height: 68svh; object-fit: cover; object-position: 52% 27%; }
.story-engagement-portrait figcaption { padding: .6rem var(--edge); font-size: .875rem; }

.story-venue-track {
  --scene-tone: var(--surface-ceremony);
  --focus: var(--focus-dark);
  background: var(--scene-tone);
  color: var(--text-inverse);
}
.story-venue { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 37rem; }
.story-venue-image { position: relative; min-width: 0; background: var(--image-matte); overflow: clip; }
.story-venue-image img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 39%; }
.story-venue-image figcaption {
  position: absolute; bottom: 0; left: 0; padding: .6rem 1rem; width: max-content;
  max-width: 100%; background: var(--image-caption); color: var(--text-inverse); font-size: .86rem;
}
.story-venue-copy {
  position: relative;
  min-width: 0;
  padding: clamp(3rem, 6vw, 6.75rem) var(--edge);
  align-self: center;
}
.story-venue-copy > .post-label, .story-venue-copy .post-venue .post-label { color: var(--text-inverse-accent); }
.story-venue-copy h2 { margin: .18em 0 .38em; font-size: clamp(3.45rem, 6.5vw, 6.8rem); }
.story-venue-copy h2 em { color: var(--text-inverse-accent); }
.story-venue .post-venue { border-block: 1px solid var(--line-on-dark); }
.story-venue .post-address { color: var(--text-inverse-muted); }
.story-reception-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .48rem; }

.story-water-track { --scene-tone: var(--surface-waterfront); }
.story-water-track .story-venue { grid-template-columns: .8fr 1.2fr; }
.story-water-track .story-venue-image { grid-column: 2; grid-row: 1; }
.story-water-track .story-venue-image img { object-position: 52% 53%; }
.story-water-track .story-venue-copy { grid-column: 1; grid-row: 1; }

.story-reply { background: var(--surface-mist); padding-top: clamp(1rem, 4vw, 4.25rem); }
.story-reply-paper {
  border: 3px double var(--line-stationery);
  background: var(--surface-paper);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.9fr);
  padding: clamp(1.35rem, 4vw, 4.5rem);
  gap: clamp(1.25rem, 4vw, 4.5rem);
}
.story-reply-letter { align-self: center; padding: clamp(.2rem, 2vw, 1.5rem) 0; }
.story-reply-letter .post-label { color: var(--text-accent); }
.story-reply-letter h2 { margin: .16em 0 .32em; }
.story-reply-letter h2 em { color: var(--text-accent); }
.story-reply-letter > p:nth-last-child(2) { font: 400 1.8rem/1.2 var(--serif); }
.story-reply-paper .post-replies { display: block; border-left: 1px solid var(--line-stationery); padding-left: clamp(1.2rem, 4vw, 4.5rem); }
.story-reply-paper .post-reply-note { background: transparent; border: 0; border-bottom: 1px solid var(--line-stationery); padding: 1.25rem 0; }
.story-reply-paper .post-reply-note h2 { font-size: clamp(2rem, 4vw, 3.7rem); }

@media (prefers-reduced-motion: no-preference) {
  .post-hero .post-stationery { transition: opacity .25s ease; }
  .story-flat { transition: opacity .25s ease; }
  .story-motion .story-flat, .story-motion .post-hero .post-stationery { transition: none; }
}

@media (min-width: 740px) and (min-height: 550px) and (prefers-reduced-motion: no-preference) {
  .story-motion { --scene-height: calc(100svh - var(--story-header)); }
  .story-motion .story-track { position: relative; min-height: calc(var(--scene-height) + var(--runway, 62svh)); }
  .story-motion .story-invitation { --runway: 94svh; }
  .story-motion .story-water-track { --runway: 52svh; }
  .story-motion .story-stage { position: sticky; top: var(--story-header); height: var(--scene-height); min-height: 0; overflow: clip; isolation: isolate; }
  .story-motion .post-hero { padding-block: clamp(1.5rem, 3.25vh, 3rem); }
  .story-motion .post-hero-art { position: relative; z-index: 2; width: min(100%, calc(var(--scene-height) * 1.18)); justify-self: end; }
  .story-motion .post-window { aspect-ratio: 1.5; overflow: visible; box-shadow: none; background: transparent; }
  .story-motion .post-hero .post-window::after { opacity: var(--frame-opacity, 1); }
  .story-motion .post-stationery { width: 100%; height: 100%; aspect-ratio: auto; overflow: hidden; }
  .story-motion .post-stationery .post-plate { object-fit: fill; }
  .story-motion .post-hero-copy {
    position: relative; z-index: 3;
    opacity: var(--copy-opacity, 1);
    transform: translateY(var(--copy-y, 0px));
  }
  .story-motion .post-art-caption { opacity: var(--frame-opacity, 1); }
  .story-motion .story-scroll-note:not([hidden]) { display: inline; margin-inline: auto; }
  .story-motion .story-hero-photo {
    display: block; position: absolute; inset: 0; z-index: 0;
    opacity: var(--portrait-opacity, 0);
    transform: scale(var(--portrait-scale, 1.1));
  }
  .story-motion .story-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
  .story-motion .story-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,var(--scrim-photo), transparent 53%); }
  .story-motion .story-hero-title {
    display: block; position: absolute; z-index: 3; inset: auto var(--edge) clamp(1.5rem, 5vh, 4rem);
    color: var(--text-inverse); pointer-events: none;
    opacity: var(--title-opacity, 0); transform: translateY(var(--title-y, 45px));
  }
  .story-hero-title > p:last-child { font: 400 clamp(3rem, 9vw, 9rem)/.94 var(--display); letter-spacing: -.055em; margin-top: .5rem; }

  .story-motion .story-venue { display: block; }
  .story-motion .story-venue-image { position: absolute; inset: 0; clip-path: var(--venue-clip, inset(9% 49% 8% 5%)); }
  .story-motion .story-venue-image img { transform: scale(var(--venue-zoom, 1.13)) translateY(var(--venue-y, 0px)); }
  .story-motion .story-venue-image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 35%, var(--scene-tone) 50%);
    opacity: calc(.86 + .11 * var(--venue-shade, 0));
  }
  .story-motion .story-venue-copy {
    position: absolute; inset: 50% var(--edge) auto 54%; padding: 0;
    transform: translate3d(var(--venue-copy-x, 0px),calc(-50% + var(--venue-copy-y, 0px)),0);
    text-shadow: 0 2px 20px var(--shadow-on-photo);
  }
  .story-motion .story-water-track .story-venue-image { clip-path: var(--venue-clip, inset(9% 5% 8% 49%)); }
  .story-motion .story-water-track .story-venue-copy { inset: 50% 55% auto var(--edge); }
  .story-motion .story-water-track .story-venue-image::after { background: linear-gradient(270deg, transparent 34%, var(--scene-tone) 51%); }
  .story-motion .story-venue-image figcaption { z-index: 1; right: 0; left: auto; opacity: var(--venue-shade, 0); }
}

@media (max-width: 739px) {
  .story-engagement-portrait picture {
    display: block;
    aspect-ratio: 4 / 5;
    max-height: 68svh;
    overflow: clip;
  }
  .story-engagement-portrait img { height: 100%; }
  .story-venue, .story-water-track .story-venue { grid-template-columns: 1fr; min-height: 0; }
  .story-venue-image { min-height: 19rem; }
  .story-water-track .story-venue-image, .story-water-track .story-venue-copy { grid-column: 1; grid-row: auto; }
  .story-reply-paper { grid-template-columns: 1fr; }
  .story-reply-paper .post-replies { border-left: 0; border-top: 1px solid var(--line-stationery); padding: 0; }
}

@media (max-width: 739px) and (min-height: 420px) and (prefers-reduced-motion: no-preference) {
  .story-phone-motion .post-hero .post-stationery {
    transform: scale(1);
    transition: opacity .4s ease, transform .52s ease-out, visibility 0s;
  }
  .story-phone-motion .post-hero[data-open] .post-stationery {
    transform: scale(1.045);
    transition-delay: 0s, 0s, .4s;
  }
  .story-phone-motion .story-flat {
    transform: translateY(7px) scale(.965);
    transition: opacity .42s ease, transform .52s cubic-bezier(.2,.7,.3,1);
  }
  .story-phone-motion .post-hero[data-open] .story-flat { transform: none; }
  .story-phone-motion .post-art-caption { flex-wrap: wrap; }
  .story-phone-motion .story-scroll-note:not([hidden]) {
    display: block;
    flex-basis: 100%;
    order: 1;
    padding-bottom: .15rem;
    text-align: center;
    letter-spacing: .07em;
  }

  .story-phone-motion [data-phone-scene] { --phone-enter: calc(1 - var(--phone-progress, 1)); }
  .story-phone-motion .story-venue-image { background: var(--scene-tone); }
  .story-phone-motion [data-phone-scene="photo"] img {
    opacity: calc(1 - .46 * var(--phone-enter));
    clip-path: inset(calc(3% * var(--phone-enter)) calc(7% * var(--phone-enter)));
    transform: scale(calc(1 + .075 * var(--phone-enter)));
  }
  .story-phone-motion [data-phone-scene="gallery"] img {
    opacity: calc(1 - .34 * var(--phone-enter));
    transform: scale(calc(1 + .04 * var(--phone-enter)));
  }
  .story-phone-motion [data-phone-scene="copy"]:not(:focus-within) h2:not([data-type]) {
    transform: translateY(calc(15px * var(--phone-enter)));
  }
}
