.postcard-pickup {
  position:absolute;
  left:16%;
  top:calc(55% + min(23%, (100svh - var(--journey-header-height)) * .23));
  display:grid;
  justify-items:center;
  min-height:44px;
  padding:3px 5px;
  border:0;
  background:none;
  color:#482d1c;
  font-family:var(--serif);
  transform:rotate(-4deg);
}
.porch-envelope {
  position:relative;
  display:grid;
  width:clamp(51px,7vw,82px);
  aspect-ratio:1.65;
  overflow:hidden;
  transform:rotate(-7deg);
  border:1px solid #c09e77;
  border-radius:2px;
  background:linear-gradient(31deg,#f3d9aa 49%,transparent 50%),linear-gradient(-31deg,#eccfa0 49%,#dfc196 50%);
  box-shadow:0 2px 7px #33201270;
  transition:transform .18s ease-out;
}
.porch-envelope::before {
  content:"";
  position:absolute;
  inset:0;
  background:#ffebc3;
  clip-path:polygon(0 0,100% 0,50% 65%);
}
.porch-envelope i {
  align-self:center;
  justify-self:center;
  display:grid;
  place-items:center;
  width:21%;
  aspect-ratio:1;
  transform:translateY(26%);
  border-radius:50% 45% 48% 47%;
  background:#8c4935;
  color:#ffe9bd;
  font:italic 10px/1 Georgia,serif;
}
.postcard-tag {
  position:relative;
  padding:5px 9px;
  border-radius:2px;
  background:#fff1ce;
  box-shadow:0 2px 7px #33201270;
  font-size:clamp(.73rem,1.1vw,.9rem);
  line-height:1.5;
  font-weight:700;
  white-space:nowrap;
}
@media (hover:hover) {
  .postcard-pickup:hover .porch-envelope { transform:translateY(-3px) rotate(-4deg); }
}
@media (max-width:760px) and (orientation:portrait) {
  .postcard-pickup {
    left:max(15%,calc(58.5% - 50vw + 14px));
    top:calc(72.4% + 8px);
  }
}
@media (max-width:760px) and (orientation:landscape) {
  .postcard-pickup {
    left:max(10%,calc(58.5% - 50vw + 14px));
    top:calc(50% + 6svh);
  }
}
@media (max-height:520px) and (orientation:landscape) {
  .postcard-pickup { top:calc(54% + 2svh); }
}

#postcard-dialog {
  width:max-content;
  max-width:calc(100% - 16px);
  max-height:calc(100dvh - 16px);
  margin:auto;
  padding:12px 12px 8px;
  overflow:auto;
  border:0;
  border-radius:0;
  background:transparent;
  color:#452f23;
  text-align:center;
}
#postcard-dialog::backdrop { background:#261c15a6; }
.postcard-paper {
  position:relative;
  width:min(250px,100%);
  margin:0 auto 12px;
  padding:11px;
  border:1px solid #dbbc90;
  border-radius:3px;
  background:#fff2d4;
  box-shadow:1px 5px 15px #24170e61;
  transform:rotate(-2deg);
  text-align:left;
  font-family:var(--serif);
}
#postcard-dialog[open] .postcard-paper { animation:postcard-arrives .23s ease-out; }
.postcard-paper::before { content:""; display:block; aspect-ratio:.74; }
.postcard-photo,.postcard-letter { position:absolute; inset:11px 11px 36px; }
.postcard-photo { display:grid; grid-template-rows:minmax(0,1fr) auto; gap:7px; }
.postcard-photo img { width:100%; height:100%; object-fit:cover; object-position:50% 41%; }
.postcard-photo p { font-size:.94rem; line-height:1.45; }
.postcard-letter { display:flex; flex-direction:column; gap:9px; padding:3px 5px; font-size:1rem; line-height:1.8; }
#postcard-message { display:grid; gap:9px; }
.postcard-postage { display:flex; justify-content:flex-end; align-items:center; margin-bottom:4px; }
.postcard-postage span {
  position:relative;
  z-index:1;
  padding:1px 4px;
  border-block:1px solid #9a846d;
  transform:translateX(4px) rotate(-8deg);
  color:#79634f;
  font-size:.7rem;
}
.postcard-postage i {
  display:grid;
  place-items:center;
  width:35px;
  height:39px;
  outline:1px solid #93a081;
  border:2px dotted #758569;
  background:#dde1bf;
  color:#4b624d;
  font:1.15rem var(--serif);
}
.postcard-signature { text-align:right; }
.postcard-turn {
  position:absolute;
  inset:0;
  width:100%;
  padding:0 11px 6px;
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
  gap:5px;
  border:0;
  border-radius:2px;
  background:transparent;
  color:#68452e;
  font:650 .82rem/1.5 var(--serif);
}
.postcard-turn i { font-style:normal; }
.postcard-turn:focus-visible { outline:3px solid #fff4c8; outline-offset:3px; }
.postcard-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; }
.postcard-actions > * {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  padding:7px 11px;
  border-radius:22px;
  border:1px solid #e5ceaa;
  font:700 .87rem/1.45 var(--sans);
}
.postcard-film { color:#fff4dd; background:#2c4739; }
.postcard-return { color:#493422; background:#fff1d7; }
@keyframes postcard-arrives {
  from { transform:translate(-12px,12px) rotate(-6deg) scale(.96); opacity:.8; }
  to { transform:rotate(-2deg); opacity:1; }
}
@keyframes postcard-turn {
  from { transform:perspective(570px) rotateY(-27deg) rotate(-2deg); }
  to { transform:rotate(-2deg); }
}
#postcard-dialog[open] .postcard-paper.is-turned { animation:postcard-turn .24s ease-out; }
@media (max-height:510px) {
  #postcard-dialog { width:min(455px,100% - 18px); }
  #postcard-dialog[open] { display:flex; align-items:center; justify-content:space-evenly; gap:14px; }
  .postcard-paper { width:min(53%,210px); flex:none; margin:0; }
  .postcard-paper::before { aspect-ratio:.82; }
  .postcard-letter { gap:4px; font-size:.88rem; line-height:1.48; }
  #postcard-message { gap:4px; }
  .postcard-postage { margin:0; }.postcard-postage i { width:25px; height:26px; font-size:.9rem; }
  .postcard-actions { flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) {
  .porch-envelope,#postcard-dialog[open] .postcard-paper,#postcard-dialog[open] .postcard-paper.is-turned { transition:none; animation:none; }
}
