/* Fragment navigation selects a print in place, including without JavaScript. */
html:has(.postal:target, .postal-scene:target) {scroll-behavior:auto}

/* The print and its address share one stable frame while the visitor browses. */
.postal {scroll-margin-top:20px;--postal-ink:#79264d;margin-block:clamp(48px,6vw,94px) clamp(56px,7vw,105px)}
.postal-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px 26px}
.postal-heading h2 {font:400 clamp(37px,4.2vw,68px)/1.06 var(--serif);letter-spacing:-.047em;text-wrap:balance}
.postal-heading em {color:var(--postal-ink);font-weight:400}
.postal-all,.postal-guide {display:inline-flex;align-items:center;gap:9px;font:650 14px/1.4 var(--sans);color:var(--postal-ink)}
.postal-all .ic,.postal-guide .ic,.postal-flower>.ic {width:16px;height:16px;flex:none}
.postal-index {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:clamp(18px,2.2vw,32px) 0}
.postal-choice {min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;
  min-height:46px;padding:5px 8px;border-radius:9px;color:#4c4146;font:570 clamp(13px,1.05vw,16px)/1.25 var(--sans)}
.postal-choice img {width:39px;height:29px;object-fit:cover;border:2px solid white;border-radius:3px;transform:rotate(-4deg);box-shadow:0 1px 4px #35212a2b}
.postal-choice[aria-selected="true"],.postal:not([data-ready]):not(:has(.postal-scene:target)) .postal-choice:first-child {color:var(--postal-ink);background:#f8edf2}
.postal-stage {touch-action:pan-y pinch-zoom;display:grid;isolation:isolate}
.postal-scene {scroll-margin-top:120px;grid-area:1/1;min-width:0;display:grid;grid-template-columns:minmax(0,1.17fr) minmax(0,1fr);
  align-items:center;gap:clamp(32px,5.2vw,84px);padding:clamp(7px,.8vw,12px) 0;visibility:hidden;pointer-events:none}
.postal-scene[data-current],.postal:not([data-ready]) .postal-scene:target,
.postal:not([data-ready]):not(:has(.postal-scene:target)) .postal-scene:first-child {visibility:visible;pointer-events:auto;z-index:2}
.postal-scene[data-leaving] {visibility:visible;z-index:1}
.postal-scene[data-leaving] .postal-letter {visibility:hidden}
.postal-print {position:relative;isolation:isolate;margin:0 3px;background:white;padding:clamp(6px,.65vw,10px);
  box-shadow:0 3px 12px #45362e1a,0 0 0 1px #392c2412}
.postal-print::before {content:"";position:absolute;inset:1px;z-index:-1;transform:rotate(-1.15deg);
  background:white;box-shadow:0 5px 15px #45362e1c,0 0 0 1px #392c2412}
.postal-window {position:relative;width:100%;aspect-ratio:1.77;overflow:hidden;background:#fff}
.postal-window img {width:100%;height:100%;object-fit:cover;display:block}
.postal-window img {position:absolute;inset:0}
.postal-scene:not([data-current]):not([data-leaving]):not(:target):not(:first-child) .postal-window img:last-child {display:none}
.postal-letter {position:relative;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background:#fff;min-width:0;padding:8px 10px 8px 0}
.postal-location {display:flex;align-items:center;gap:6px;color:#7d405b;font:600 12px/1.5 var(--sans)}
.postal-location .ic {width:15px;height:15px}
.postal-address h3 {font:400 clamp(43px,4.75vw,74px)/1.02 var(--serif);letter-spacing:-.05em;margin:7px 0 12px}
.postal-note {font:400 clamp(14px,1.12vw,17px)/1.62 var(--sans);color:#5f5758;max-width:44ch}
.postal-guide {padding:10px 16px;margin-top:15px;border-radius:24px;background:var(--postal-ink);color:white;min-height:40px}
.postal-flower {display:inline-flex;align-items:center;gap:14px;max-width:100%;padding:3px 0;margin-top:clamp(15px,1.65vw,26px)}
.postal-flower small,.postal-flower strong {display:block}
.postal-flower small {color:#71666b;font:500 11px/1.5 var(--sans)}
.postal-flower strong {color:var(--ink);font:400 clamp(21px,1.7vw,27px)/1.2 var(--serif);letter-spacing:-.025em}
.postal-flower>.ic {color:var(--postal-ink)}
.postal-stamp {position:relative;display:block;flex:none;width:61px;height:74px;transform:rotate(-4deg);filter:drop-shadow(0 2px 2px #503c4026)}
.postal-stamp::before {content:"";position:absolute;inset:0;background:#fbf6ed;
  mask:linear-gradient(#000 0 0) center/calc(100% - 6px) calc(100% - 6px) no-repeat,radial-gradient(circle at center,transparent 1.7px,#000 1.95px) -3px -3px/6px 6px}
.postal-stamp img {position:absolute;inset:5px;width:calc(100% - 10px);height:calc(100% - 10px);object-fit:cover}
.postal-mark {position:absolute;left:-9px;bottom:-7px;width:49px;height:30px;color:#724558;opacity:.82;transform:rotate(-12deg);pointer-events:none}
@media (hover:hover) and (pointer:fine) {
 .postal-choice:hover {background:#faf5f7;color:var(--postal-ink)}
 .postal-all:hover,.postal-flower:hover strong {text-decoration:underline;text-underline-offset:4px}
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 .postal-choice,.postal-guide {transition:color .2s,background-color .2s}
 .postal-choice img,.postal-stamp,.postal-guide .ic,.postal-all .ic {transition:transform .28s cubic-bezier(.2,.75,.25,1)}
 .postal-choice:hover img,.postal-flower:hover .postal-stamp {transform:rotate(0)}
 .postal-guide:hover .ic {transform:translateX(3px)}
 .postal-all:hover .ic {transform:translate(2px,-2px)}
}
@media(max-width:900px) {
 .postal-scene {gap:28px;grid-template-columns:1.05fr 1fr}
 .postal-window {aspect-ratio:1.36}
 .postal-choice {gap:6px}.postal-choice img {width:32px;height:24px}
}
@media(max-width:700px) {
 .postal-heading {flex-wrap:wrap;align-items:center}
 .postal-heading h2 {font-size:clamp(33px,6.6vw,42px)}
 .postal-all {font-size:13px}
 .postal-index {grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 5px;margin:14px 0}
 .postal-choice {justify-content:flex-start;padding:6px;min-height:42px;font-size:13px}
 .postal-scene {display:flex;flex-direction:column;align-items:stretch;gap:19px;padding:4px 0}
 .postal-window {aspect-ratio:1.7}
 .postal-letter {padding:0 3px}
 .postal-address h3 {font-size:40px;margin:3px 0 8px}
 .postal-note {max-width:49ch}
 .postal-flower {margin-top:14px;gap:10px}
 .postal-stamp {width:45px;height:55px}
 .postal-mark {width:37px;height:23px}
}
@media(max-width:360px) {.postal-choice {gap:4px;font-size:12px}.postal-choice img {width:26px;height:21px}}
