.postcard-site {
  --paper: var(--surface-paper);
  --ink: var(--text-primary);
  --rule: var(--line-subtle);
  --focus: var(--focus-light);
  --edge: clamp(1.35rem, 5.4vw, 6rem);
  color: var(--ink);
  background: var(--paper);
}
.postcard-site>.skip { z-index: 5; background: var(--surface-paper); color: var(--text-primary); }
.postcard-site [id] { scroll-margin-top: 6rem; }
.postcard-site a { text-underline-offset: .23em; }
.postcard-site :focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.postcard-site button[hidden], .postcard-site [hidden] { display: none; }
.post-label { font: 550 .8125rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.postcard-site h2 { font: 400 clamp(3.35rem, 7vw, 7.35rem)/.87 var(--display); letter-spacing: -.045em; }
.postcard-site h2 em { font-weight: 400; }
.post-section { padding: clamp(4rem, 9vw, 9.25rem) var(--edge); }

.post-header { position: sticky; top: 0; z-index: 4; background: var(--paper); }
.post-header-inner {
  min-height: 5.2rem;
  margin-inline: var(--edge);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.post-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 2.1rem/.95 var(--display);
  color: var(--text-accent);
  white-space: nowrap;
  text-decoration: none;
}
.post-wordmark i { font-size: .67em; padding-inline: .08em; }
.post-wide-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.6vw, 3.1rem); }
.post-wide-nav a, .post-menu nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .94rem;
  white-space: nowrap;
  text-decoration: none;
}
.post-wide-nav a:hover, .post-menu nav a:hover { text-decoration: underline; }
.post-wide-nav .post-rsvp-link {
  border: 1px solid var(--control-line);
  background: var(--control-light);
  color: var(--text-primary);
  padding-inline: 1.1rem;
}
.post-wide-nav .post-rsvp-link:hover { background: var(--control-light-hover); }
.post-menu { display: none; }

.post-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.3rem);
  min-height: min(45.5rem, 75svh);
  padding: clamp(2.6rem, 5vw, 5.75rem) var(--edge) clamp(1.8rem, 4vw, 4.25rem);
}
.post-hero-copy { padding-bottom: 1rem; }
.post-overline { color: var(--text-accent); display: flex; align-items: center; gap: .65rem; }
.post-overline::before, .post-footer .post-label::before {
  content: "";
  display: inline-block;
  width: 1.55rem;
  height: 2px;
  background: var(--botanical-accent);
}
.post-hero h1 {
  font: 400 clamp(4rem, 8.35vw, 9.1rem)/.99 var(--display);
  letter-spacing: -.059em;
  margin: .26em 0 .26em;
}
.post-hero h1 em { font-size: .72em; color: var(--text-accent); font-weight: 400; }
.post-hero-date { font: 400 clamp(1.65rem, 2.5vw, 2.65rem)/1.02 var(--serif); }
.post-hero-place { margin-top: .22rem; }
.post-hero-actions { margin-top: 1.45rem; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.25rem; }
.post-button, .post-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font: 500 .96rem/1.2 var(--sans);
}
.post-button { border: 1px solid var(--control-primary); background: var(--control-primary); color: var(--text-inverse); padding: .5rem 1.15rem; text-decoration: none; cursor: pointer; }
.post-button:hover { background: var(--control-primary-hover); border-color: var(--control-primary-hover); }
.post-inline { color: var(--text-accent); }
.post-hero-art { min-width: 0; margin: 0; }
.post-window {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.30;
  overflow: clip;
  background: var(--surface-mist);
  box-shadow: 0 13px 30px var(--shadow-paper);
}
.post-stationery { position: absolute; width: 115.4%; aspect-ratio: 3 / 2; inset: 50% auto auto 50%; translate: -50% -50%; z-index: 1; isolation: isolate; }
.post-stationery.post-clickable { cursor: pointer; }
.post-plate { width: 100%; height: 100%; }
.post-portrait, .post-portrait picture, .post-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-portrait img { object-fit: cover; object-position: 50% 40%; }
.post-window::after { content:""; position:absolute; inset:.52rem; border:1px solid var(--line-on-dark); z-index: 2; pointer-events: none; }
.post-art-caption { display: flex; justify-content: space-between; gap:.75rem; align-items: center; margin-top:.85rem; font: 550 .77rem/1.3 var(--sans); text-transform:uppercase; letter-spacing:.13em; color:var(--text-muted); }
.post-hero[data-open] .post-stationery { opacity: 0; visibility: hidden; pointer-events: none; }
.post-hero[data-open] .post-window::after { opacity: .6; }

.post-story {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 8.8rem);
}
.post-letter { max-width: 34rem; }
.post-letter .post-label, .post-faq .post-label { color: var(--text-accent); }
.post-letter h2, .post-faq h2 { margin: .15em 0 .42em; }
.post-letter h2 em, .post-faq h2 em { color: var(--text-accent); }
.post-letter>p:not(.post-label,.post-script) { max-width: 37ch; font: 400 clamp(1.22rem, 2vw, 1.65rem)/1.32 var(--serif); }
.post-letter .post-script { font: 400 clamp(2.15rem,4.8vw,4rem)/1 Pinyon, var(--serif); color:var(--text-accent); margin-top:1.3rem; }
.post-letter-art { min-width: 0; }
.post-turn { position: relative; width: min(100%, 41rem); margin-inline: auto; }
.post-turn summary { display: block; cursor: pointer; color: var(--text-accent); text-align: center; }
.post-turn summary img, .post-card-back { width: 100%; height: auto; aspect-ratio: 1.5; box-shadow: 0 12px 28px var(--shadow-paper); }
.post-turn summary span { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: underline; text-underline-offset: .22em; }
.post-turn .post-show-front, .post-turn[open] .post-show-back { display: none; }
.post-turn[open] .post-show-front { display: inline-flex; }
.post-turn[open] summary img { visibility: hidden; }
.post-card-back { position: absolute; inset: 0 0 auto; pointer-events: none; }

.post-venue { padding:1.15rem 0 .85rem; border-bottom:1px solid var(--line-on-dark); }
.post-venue h3 { font: 400 clamp(1.85rem,3.5vw,3.5rem)/1 var(--display); margin:.26rem 0 .38rem; }
.post-address { color:var(--text-inverse-muted); }
.post-venue a { display:inline-flex; min-height:44px; align-items:center; }

.post-gallery { background:var(--surface-dark); color:var(--text-inverse); --focus:var(--focus-dark); display:grid; grid-template-columns:minmax(16rem, .5fr) minmax(0, 1fr); align-items:center; gap:clamp(1rem,4vw,4rem); padding:clamp(3.8rem,8.5vw,8rem) 0 clamp(3.8rem,8.5vw,8rem) var(--edge); }
.post-gallery-copy h2 { font-size:clamp(3.4rem,6vw,6.1rem); margin-top:.18em; }
.post-gallery h2 em { color:var(--text-inverse-accent); }
.post-gallery .film-controls { display:flex; align-items:center; gap:.6rem; margin-top:1.3rem; }
.post-gallery .film-controls[hidden] { display:none; }
.post-gallery .film-controls button { min-height:44px; border:1px solid var(--line-on-dark); background:transparent; color:inherit; font:500 .875rem var(--sans); padding-inline:.65rem; cursor:pointer; }
.post-gallery .film-controls button:hover:not([aria-disabled="true"]) { background:var(--text-inverse); color:var(--text-primary); }
.post-gallery .film-controls button[aria-disabled="true"] { opacity:.62; cursor:default; }
.post-gallery .film-progress { min-width:3.4rem; text-align:center; font-size:.85rem; }
.post-gallery .film-rail { display:flex; position:relative; gap:clamp(.8rem,1.45vw,1.35rem); overflow-x:auto; margin:0; padding:0 0 .6rem; scroll-snap-type:x mandatory; list-style:none; overscroll-behavior-inline:contain; scrollbar-width:thin; scrollbar-color:var(--text-inverse-accent) var(--surface-dark); }
.post-gallery .film-rail:focus-visible { outline-offset:-3px; }
.post-gallery .film-frame { flex:0 0 84%; aspect-ratio:1.45; scroll-snap-align:start; overflow:hidden; }
.post-gallery .film-frame:last-child { margin-inline-end:16%; }
.post-gallery .film-frame img { width:100%; height:100%; object-fit:cover; object-position:50% 54%; }
.post-gallery .film-frame.frame-2 img { object-position:50% 38%; }

.post-faq { background:var(--surface-paper); display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:clamp(1rem,7vw,7rem); }
.post-faq-list { border-top:1px solid var(--rule); }
.post-faq-list details { border-bottom:1px solid var(--rule); }
.post-faq-list summary { min-height:52px; padding:.7rem 0; cursor:pointer; font:400 1.38rem/1.3 var(--serif); }
.post-faq-list details p { max-width:55ch; padding:0 0 1rem 1.05rem; }
.post-faq-list a { color:var(--text-accent); }

.post-replies { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr)); gap:clamp(1.5rem,4vw,4rem); padding-top:0; }
.post-reply-note { background:var(--surface-stationery); border:3px double var(--line-stationery); padding:clamp(1.5rem,4vw,4.4rem); }
.post-reply-note h2 { font-size:clamp(2.9rem,5.2vw,5.3rem); margin-bottom:.22em; color:var(--text-accent); }
.post-status, .post-reply-note .post-button { margin-top:1rem; }
.post-status { color:var(--text-accent); }
.post-footer { background:var(--surface-dark); color:var(--text-inverse); --focus:var(--focus-dark); border-top:1px solid var(--line-on-dark); padding:clamp(2.5rem,6vw,5rem) var(--edge); display:flex; justify-content:space-between; align-items:end; gap:1rem; }
.post-footer .post-label, .post-footer-city { color:var(--text-inverse-accent); }
.post-footer .post-label { display:flex; align-items:center; gap:.65rem; }
.post-footer-city { font:400 clamp(3rem,7.7vw,8rem)/.91 var(--display); letter-spacing:-.05em; }
.post-footer>div:last-child { text-align:right; }
.post-footer a, .post-credits summary { display:inline-flex; align-items:center; min-height:44px; }
.post-credits summary { cursor:pointer; text-decoration:underline; }
.post-credits p { max-width:25ch; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.postcard-site) { scroll-behavior:smooth; }
  .post-stationery { transition:opacity .72s ease, transform .95s cubic-bezier(.22,.61,.36,1), visibility 0s .95s; transform-origin:56% 45%; }
  .post-hero[data-open] .post-stationery { transform:scale(1.56) rotate(-2deg); }
  .post-hero[data-open] .post-portrait img { animation: postcard-arrives .95s cubic-bezier(.2,.6,.3,1) both; }
  .post-turn[open] .post-card-back { animation: paper-arrives .3s ease-out both; }
  @keyframes postcard-arrives { from { transform:scale(1.08); } to { transform:none; } }
  @keyframes paper-arrives { from { opacity:.4; transform:translateY(.25rem); } to { opacity:1; transform:none; } }
  @supports (animation-timeline:view()) {
    .post-moving-image img { animation: photo-drift linear both; animation-timeline:view(); animation-range:entry 0% exit 100%; }
    @keyframes photo-drift { from { transform:scale(1.065) translateY(2%); } to { transform:scale(1.06) translateY(-2%); } }
  }
}

@media (max-width:960px) {
  .post-header-inner { min-height:4.35rem; }
  .post-wide-nav { display:none; }
  .post-menu { display:block; }
  .post-menu summary { display:flex; align-items:center; min-height:44px; cursor:pointer; color:var(--text-accent); }
  .post-menu nav { position:absolute; top:100%; inset-inline:0; z-index:2; background:var(--paper); border-bottom:1px solid var(--rule); box-shadow:0 .55rem .9rem var(--shadow-paper); padding:.35rem var(--edge) .8rem; display:grid; grid-template-columns:1fr 1fr; column-gap:.75rem; }
  .post-menu nav a { padding-inline:.3rem; border-bottom:1px solid var(--rule); white-space:normal; }
  .post-menu nav .post-rsvp-link { background:var(--control-light); color:var(--text-primary); }
}
@media (max-width:700px) {
  .postcard-site [id] { scroll-margin-top:5rem; }
  .post-hero,.post-story,.post-faq { grid-template-columns:1fr; }
  .post-hero { min-height:0; gap:.9rem; padding-top:2.45rem; }
  .post-hero-copy { padding-bottom:.35rem; }
  .post-hero h1 { font-size:clamp(3.85rem, 15.4vw, 6.3rem); margin:.22em 0 .24em; }
  .post-hero-actions { margin-top:1.1rem; gap:.2rem .8rem; }
  .post-window { aspect-ratio:1.4; }
  .post-stationery { width:107.2%; }
  .post-portrait img { object-position:50% 40%; }
  .post-art-caption { margin-top:.6rem; letter-spacing:.075em; }
  .post-story { gap:2rem; }
  .post-gallery { grid-template-columns:minmax(0,1fr); }
  .post-gallery-copy { padding-right:var(--edge); }
  .post-faq h2 { margin-bottom:.08em; }
  .post-footer { display:grid; }
  .post-footer>div:last-child { text-align:left; }
}
.post-credits a { display: flex; justify-content: flex-end; }
@media (max-width: 700px) { .post-credits a { justify-content: flex-start; } }
