/* Keeps the unchanged village letter beneath its occasional special enclosure. */
.paper-dialog .special-record {
  font: .73rem/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.first-mail, .depot-plate { margin: 0; }
#letter[data-letter-edition="first-mail"] .letter-top { display: none; }
.first-mail {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(8.5rem, 22dvh, 12rem);
  overflow: hidden;
  background: #1d3a40;
  color: #fff8e3;
  border-bottom: .25rem solid #bb8b58;
}
.first-mail img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 66%;
}
.first-mail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#122e31 0%,#153536f0 27%,#152e30a1 62%,#18303413 100%);
}
.first-mail figcaption {
  display: grid;
  justify-items: start;
  gap: .4rem;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.3rem, 4vw, 2.3rem);
}
.first-mail .special-record { color: #ffdcac; }
.first-mail-display {
  font: 800 clamp(2.4rem, 6vw, 3.8rem)/.98 var(--impact);
  letter-spacing: -.045em;
}
.first-mail-caption { font: 500 .93rem/1.35 var(--core); }
.depot-plate {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .65rem;
  background: #ede7d8;
  padding: 1rem;
  border-bottom: 1px solid #beb397;
}
.depot-plate img {
  display: block;
  width: 100%;
  height: clamp(8rem, 23dvh, 13rem);
  object-fit: contain;
}
.depot-plate figcaption { color: #3e4f48; text-align: center; }
.bottle-plate {
  margin: 0;
  padding: .65rem 1rem .85rem;
  display: grid;
  gap: .6rem;
  align-content: center;
  justify-items: center;
  border-bottom: 1px solid #beb397;
  background: #f9f6ed;
}
.bottle-plate-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.bottle-plate img {
  width: 100%;
  height: clamp(9.5rem, 27dvh, 14rem);
  object-fit: contain;
  display: block;
  /* White studio ground on the original BAXUS catalogue photograph. */
  mix-blend-mode: multiply;
}
.bottle-plate figcaption { color: #445b52; }
#letter #letter-actions .teaser-action {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(5.4rem,.7fr) minmax(0,1.35fr);
  align-items: stretch;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  text-decoration: none;
  background: #183d40;
  color: #fff8e6;
  border: 1px solid #183d40;
}
.teaser-still { position: relative; display: grid; min-height: 5.75rem; }
.teaser-still img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.teaser-play {
  z-index: 1;
  align-self: end;
  justify-self: start;
  margin: .45rem;
  padding: .35rem;
  background: #fff6da;
}
.teaser-play::before {
  display: block;
  width: .7rem;
  height: .7rem;
  background: #173d3f;
  content: "";
  clip-path: polygon(14% 0,100% 50%,14% 100%);
}
.teaser-info {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(.62rem, 2.5vw,1rem);
  gap: .2rem;
  text-align: left;
}
.teaser-info .special-record { color: #ffdda5; font-size: .67rem; }
.teaser-info strong { font: 700 clamp(1.05rem, 3.2vw, 1.35rem)/1.15 var(--core); }
.teaser-subject { font: 400 .85rem/1.3 var(--core); }
.teaser-action:is(:hover,:focus-visible) .teaser-info strong { text-decoration: underline; text-underline-offset: .14em; }
@media (min-width: 48rem) {
  #letter[data-letter-edition="depot"] { width: 50rem; }
  #letter[data-letter-edition="depot"] .letter-paper {
    display: grid;
    grid-template-columns: minmax(12rem, .85fr) minmax(0, 1.35fr);
  }
  #letter[data-letter-edition="depot"] .letter-top { grid-column: 1 / -1; }
  .depot-plate { border-bottom: 0; border-right: 1px solid #beb397; padding: 1.2rem; }
  .depot-plate img { height: auto; }
  #letter:is([data-letter-edition="bottle"],[data-letter-edition="reveal"]) { width: 48rem; }
  #letter:is([data-letter-edition="bottle"],[data-letter-edition="reveal"]) .letter-paper {
    display: grid;
    grid-template-columns:minmax(10rem,.73fr) minmax(0,1.27fr);
  }
  #letter:is([data-letter-edition="bottle"],[data-letter-edition="reveal"]) .letter-top { grid-column: 1/-1; }
  .bottle-plate { border-bottom:0; border-right:1px solid #beb397; padding:1.2rem .65rem; }
  .bottle-plate img { height:auto; }
}
@media (prefers-reduced-motion:no-preference) {
  #letter[data-first][open] .first-mail-display { animation: first-delivery .45s ease-out both; }
  @keyframes first-delivery { from {opacity:0; transform:translateY(.32rem)} to {opacity:1; transform:none} }
  #letter[data-letter-edition="reveal"][data-first][open] .bottle-plate-frame img {
    animation: lift-prize-paper .58s .1s ease-out both;
  }
  @keyframes lift-prize-paper { from {clip-path:inset(0 0 100%)} to {clip-path:inset(0)} }
}
@media (forced-colors:active) {
  .first-mail img,.first-mail::before { visibility: hidden; }
  .first-mail { border-color: CanvasText; }
}
