.picture-show {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(14px, 2vw, 28px) max(5%, calc((100% - 1240px) / 2))
    clamp(30px, 5vw, 76px);
  background:
    radial-gradient(ellipse at 78% 64%, #a6292a99, transparent 64%),
    repeating-linear-gradient(
      95deg,
      #430e1900 0 3%,
      #2b071126 4%,
      #8d273429 6%,
      transparent 7% 9%
    ),
    #681a27;
  color: #fff1ce;
  border-bottom: 8px double #d3ab72;
}
.show-billing {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eabb7e80;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 700 11px/1.4 system-ui;
}
.show-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(22px, 5vw, 85px);
  align-items: center;
  padding-top: clamp(25px, 4vw, 54px);
}
.show-title h1 {
  display: grid;
  width: max-content;
  max-width: 100%;
  transform: rotate(-5deg);
  margin-bottom: clamp(14px, 2vw, 24px);
}
.show-title b {
  font:
    normal clamp(72px, 11vw, 178px) / 0.76 B,
    Impact,
    sans-serif;
  letter-spacing: -0.045em;
  color: #ffe5af;
  text-shadow:
    2px 2px #7a2027,
    4px 4px #d78f5f;
}
.show-title em {
  z-index: 1;
  justify-self: end;
  margin-right: -0.16em;
  color: #ffcf81;
  font:
    italic bold clamp(51px, 7.3vw, 118px) / 0.93 S,
    Georgia,
    serif;
  letter-spacing: -0.075em;
  text-shadow: 1px 3px #56222a;
}
.show-title p {
  max-width: 24ch;
  font:
    italic clamp(19px, 2.15vw, 31px) / 1.16 Georgia,
    serif;
}
.show-title a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font: 700 12px/1.3 system-ui;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.show-print {
  transform: rotate(1.6deg);
  background: #ffeecc;
  color: #40221c;
  padding: clamp(7px, 1.2vw, 16px);
  box-shadow:
    5px 10px 0 #280a124f,
    0 15px 32px #27091161;
}
.show-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.5;
  background: #37271a;
}
.show-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.show-frame img[data-cut="brothers"] {
  object-position: 50% 33%;
}
.show-frame img[data-cut="kiss"] {
  object-position: 50% 31%;
}
.show-print figcaption {
  color: #4a2a20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 65px;
  padding: 6px 4px 0;
}
.show-print small,
.scene-billing {
  display: block;
  font: 800 10px/1.35 system-ui;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #843c2b;
}
.show-print strong {
  display: block;
  font:
    italic bold clamp(16px, 2vw, 25px) / 1.16 Georgia,
    serif;
}
.show-print button {
  border: 1px solid #7e483c;
  border-radius: 2px;
  background: transparent;
  color: #67291e;
  min-height: 44px;
  padding: 5px 9px;
  font: 700 12px/1.2 system-ui;
  flex-shrink: 0;
}
.gift-scene {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(22px, 5vw, 76px);
  padding: clamp(28px, 5vw, 76px) max(6%, calc((100% - 1050px) / 2));
  background: #eee2bc;
  color: #163c30;
}
.gift-scene > figure {
  aspect-ratio: 4/5;
  transform: rotate(-2deg);
  padding: 7px;
  background: #fffcdf;
  box-shadow: 3px 5px 0 #9c82575e;
}
.gift-scene > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gift-copy {
  min-width: 0;
}
.gift-copy h2 {
  font:
    normal clamp(38px, 6vw, 85px) / 0.9 B,
    sans-serif;
  margin: 0.15em 0;
}
.gift-copy h2 em {
  font:
    italic 1em/0.95 S,
    serif;
  color: #9b312b;
}
.gift-copy > p:not(.scene-billing) {
  max-width: 39ch;
  font:
    18px/1.36 Georgia,
    serif;
}
.gift-copy .parcel-book {
  margin: 1em 0 0;
}
.sunday-extra {
  background: #f9e7c3;
  color: #38271c;
  border-block: 3px double #a47b4a;
}
.sunday-extra > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 25px;
  padding: 20px 5%;
  cursor: pointer;
}
.sunday-extra > summary::-webkit-details-marker {
  display: none;
}
.sunday-extra > summary span,
.sunday-extra > summary em {
  font: 700 11px/1.4 system-ui;
  letter-spacing: 0.08em;
}
.sunday-extra > summary strong {
  font:
    bold clamp(19px, 3vw, 34px) / 1.15 Georgia,
    serif;
}
@media (max-width: 700px) {
  .show-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 23px;
  }
  .show-title {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
  }
  .show-title h1 {
    grid-row: span 2;
    margin: 0 0 9px;
  }
  .show-title b {
    font-size: clamp(66px, 17vw, 113px);
  }
  .show-title em {
    font-size: clamp(44px, 11vw, 76px);
  }
  .show-title p {
    align-self: end;
    font-size: clamp(15px, 4.1vw, 21px);
  }
  .show-title a {
    align-self: start;
    font-size: 11px;
  }
  .show-print {
    margin: 0 3px;
  }
  .show-print figcaption {
    min-height: 56px;
  }
  .gift-scene {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 13px;
    padding: 25px 5%;
  }
  .gift-copy {
    display: contents;
  }
  .gift-scene > figure {
    grid-column: 1;
    grid-row: 1/4;
    align-self: center;
  }
  .gift-copy .scene-billing {
    align-self: end;
  }
  .gift-copy h2 {
    font-size: clamp(34px, 7vw, 48px);
    margin: 0;
  }
  .gift-copy > p:not(.scene-billing) {
    font-size: 15px;
    line-height: 1.24;
    align-self: start;
  }
  .gift-copy .parcel-book {
    grid-column: 1/-1;
    margin: 4px 0 0;
  }
}

.griswold-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 12px;
  padding: 4px 0 8px;
  color: #ffebc3;
}
.griswold-panel button {
  min-height: 44px;
  border: 1px solid #d6b371;
  border-radius: 3px;
  background: #422f20;
  color: #ffe8a9;
  padding: 4px 12px;
  font: 700 13px/1.2 system-ui;
}
.griswold-panel button::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7b7558;
  margin-right: 0.6em;
}
.griswold-panel button[aria-pressed="true"]::before {
  background: #fff4a3;
  box-shadow: 0 0 6px #fff4a3;
}
.orbit-feed {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #101f2b;
  color: #fff0c6;
}
.orbit-feed:not([hidden]) {
  animation: orbital-cut 0.6s ease-out;
}
.lamp-scene .orbit-feed img {
  object-fit: cover;
  object-position: center;
  filter: none;
}
.orbit-feed p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(transparent, #061e29e6);
  text-shadow: 0 2px 2px #0b1622;
}
.orbit-feed small {
  display: block;
  font: 700 10px/1.2 system-ui;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.orbit-feed strong {
  font:
    italic bold clamp(22px, 4vw, 38px) / 1.1 Georgia,
    serif;
}
@keyframes orbital-cut {
  from {
    opacity: 0.2;
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-feed:not([hidden]) {
    animation: none;
  }
}
.fourth-wall {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(15px, 6vw, 85px);
  padding: clamp(30px, 6vw, 80px) max(7%, calc((100% - 920px) / 2));
  background:
    radial-gradient(ellipse at 20% 50%, #29463f, transparent 75%), #102a25;
  color: #ffedcc;
}
.fourth-wall figure {
  box-shadow: 0 6px 26px #081a1880;
  transform: rotate(-1.5deg);
  border: 6px solid #f9eacb;
}
.fourth-wall img {
  width: 100%;
  aspect-ratio: 4/5;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: 50% 36%;
}
.fourth-wall .scene-billing {
  color: #eac488;
}
.fourth-wall h2 {
  font:
    normal clamp(44px, 7vw, 92px) / 0.87 S,
    Georgia,
    serif;
  letter-spacing: -0.05em;
  margin: 0.2em 0;
}
.fourth-wall h2 em {
  color: #efc884;
}
.fourth-wall p:last-child {
  font:
    clamp(15px, 2vw, 21px) / 1.35 Georgia,
    serif;
  max-width: 32ch;
}
@media (max-width: 480px) {
  .fourth-wall {
    padding-inline: 5%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .fourth-wall img {
    aspect-ratio: 3/4;
  }
  .fourth-wall .scene-billing {
    font-size: 9px;
  }
}
#genre-selector:not([hidden]) {
  display: inline-flex;
  max-width: 100%;
  align-items: stretch;
  margin: 12px auto 0;
  padding: 3px;
  border: 2px ridge #b99659;
  background: #302624;
  border-radius: 5px;
  box-shadow: 0 3px 0 #441d23;
}
#genre-selector button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #ffedce;
  padding: 4px 13px;
  font: 700 13px system-ui;
}
#genre-selector button[aria-pressed="true"] {
  background: #f8dc97;
  color: #492323;
  box-shadow: inset -1px -2px #9e713c;
  border-radius: 2px;
}
#genre-selector button[aria-pressed="true"]::before {
  content: "● ";
  font-size: 0.75em;
}
#station .slide {
  background-image: url(private/heist-poster.webp);
  background-size: cover;
  background-position: center;
}
#redub:not([hidden]) {
  min-height: 44px;
  margin: 0 8px 10px;
  padding: 6px 12px;
  border: 1px solid #dbc187;
  background: #f6dda6;
  color: #422d25;
  border-radius: 4px;
  font: 700 13px system-ui;
}

@media (orientation: landscape) and (max-height: 500px) {
  #screen[open] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(144px, 24%, 208px);
    grid-template-rows: auto 1fr auto auto auto;
    width: min(96vw, 1040px);
    height: min(92vh, 450px);
    height: min(92dvh, 450px);
    align-content: stretch;
  }
  #screen video {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }
  #screen .dialog-bar,
  #screen .status,
  #screen > button {
    grid-column: 2;
    min-width: 0;
  }
  #screen .dialog-bar {
    grid-row: 1;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 7px;
    padding: 6px 10px;
  }
  #screen .dialog-bar strong {
    font:
      italic bold 17px/1.12 Georgia,
      serif;
  }
  #screen .close {
    align-self: flex-end;
    min-height: 44px;
  }
  #screen .status {
    grid-row: 2;
    align-self: end;
    padding: 0 10px 6px;
    font: 12px/1.25 system-ui;
  }
  #screen #redub,
  #screen #rerun,
  #screen #whole {
    min-height: 44px;
    margin: 0 6px 4px;
    padding: 3px 5px;
    line-height: 1.15;
  }
  #screen #redub {
    grid-row: 3;
  }
  #screen #rerun {
    grid-row: 4;
  }
  #screen #whole {
    grid-row: 5;
  }
}

.ticket-fold::after {content:"Read scoop +";}
.sunday-extra[open] .ticket-fold::after {content:"Fold paper −";}
.parking-brief {width:min(100% - 36px,770px);margin:auto auto 20px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(12px,3vw,26px);}
.parking-brief figure {margin:0;}
.parking-brief figure img {display:block;width:100%;height:auto;border:4px solid #fff5dc;}
.parking-brief figcaption {color:#503d2c;font:italic 14px/1.2 Georgia,serif;padding-top:5px;}
.parking-slip {padding:15px 18px;background:#fff4d5;border-block:2px dashed #b69a69;color:#402c23;}
.parking-slip>small,.parking-slip>a {font:700 11px/1.2 system-ui;letter-spacing:.08em;text-transform:uppercase;}
.parking-slip>a {color:#6b3034;}
.parking-slip h2 {font:400 clamp(26px,4vw,42px)/.98 S,Georgia,serif;letter-spacing:-.04em;margin:8px 0;}
.parking-slip h2 em {color:#8d3543;}
.parking-slip p {font:16px/1.25 Georgia,serif;margin:8px 0;}
.parking-appeal {border-top:1px solid #c6a970;}
.parking-appeal summary {font:700 14px/1.2 system-ui;cursor:pointer;align-content:center;min-height:44px;}
.parking-appeal>div {display:flex;gap:10px;align-items:center;}
.parking-appeal img {width:54px;height:60px;object-fit:cover;border:2px solid #fff9eb;}
.parking-appeal b {display:block;color:#81313c;}
@media(max-width:620px){
 .sunday-extra>summary {justify-content:space-between;gap:5px 14px;padding:15px 18px;}
 .sunday-extra>summary>span {flex:0 0 100%;}
 .parking-brief {grid-template-columns:1fr;max-width:430px;}
 .parking-brief figure {display:grid;grid-template-columns:2.5fr 1fr;gap:10px;align-items:end;}
}
.enclosures > summary {
  width: fit-content;
  margin: 0 auto;
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  color: #613636;
  font: italic 22px/1.2 S, Georgia, serif;
}
#prints .enclosed-prints {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(12px,3vw,30px);
  max-width: 630px;
}
#prints .enclosed-prints .print:nth-child(2) {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
}

#front .show-title { display: block; }
#front .show-title h1 { margin: 0 0 .9rem; transform: rotate(-3deg); }
#front .show-title b { font-size: clamp(54px, 7vw, 108px); }
#front .show-title em { font-size: clamp(55px, 7.2vw, 115px); }
#front .show-title > p { max-width: 35ch; font-size: clamp(17px, 1.6vw, 24px); }
.card-fold { margin: .8rem 0; }
.card-fold summary { width: fit-content; cursor: pointer; list-style: none; min-height: 44px; align-content: center; padding: 0 1em; border: 1px solid #e6c89c; color: #fff0d2; font: 650 14px/1.4 system-ui; }
.card-fold summary::-webkit-details-marker { display: none; }

.card-fold .fold-open, .card-fold[open] .fold-closed { display: none; }
.card-fold[open] .fold-open { display: inline; }
.card-enclosures { margin-top: clamp(22px,3vw,44px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 1rem; border-top: 1px dashed #dab577; }
.card-enclosures a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font: 650 14px/1.3 system-ui; color: inherit; }
@media (max-width: 700px) {
  #front .show-title h1 { display: block; }
  #front .show-title em, #front .show-title b { font-size: clamp(38px,9.5vw,66px); }
  #front .show-grid { gap: 8px; }
  #front .show-title > p { margin-bottom: .3em; }
}

/* A foil heading, a mounted print and a sealed note on a single sheet. */
#front {
  background:
    radial-gradient(ellipse at 77% 32%, #50645080, transparent 48%),
    repeating-linear-gradient(112deg, transparent 0 3px, #cdbb8210 4px, transparent 5px),
    #15382e;
}
#front .show-billing { border-bottom: 3px double #b79b64; }
#front .show-title b { text-shadow: 1px 2px #19392c, 2px 3px #b3985b; }
#front .show-title em { color: #f9d592; text-shadow: 1px 2px #153225; }
#front .show-print { position:relative; isolation:isolate; border:1px solid #e3c591; box-shadow:4px 5px #751e32, 6px 7px #ae8863, 6px 14px 26px #071b164d; }
#front .show-frame { border:1px solid #c5ac7c; touch-action: pan-y pinch-zoom; }
#front .card-fold summary { display:flex; align-items:center; gap:10px; background:#fff0d2; border:1px solid #d9bb84; color:#442826; box-shadow:2px 3px #102920; padding:3px 14px 3px 5px; }
.wax-monogram { display:grid; place-items:center; width:34px; height:34px; border:3px double #e29a7d; border-radius:48% 44% 49% 42%; background:#882b36; color:#ffe6ab; font:italic bold 19px Georgia,serif; transform:rotate(-8deg); }
.take-strip:not([hidden]) {
  display: inline-flex; gap: 3px; padding: 5px;
  background: #312a26; box-shadow: 1px 2px 3px #573c272e;
}
.take-strip button {
  position: relative; width: 44px; height: 48px; padding: 2px;
  border: 0; border-radius: 0; cursor: pointer;
}
.take-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.take-strip button[aria-pressed="true"] { background: #ffe6ab; }
.take-strip button[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -3px -2px; border: 2px solid #da6756;
  border-radius: 50% 43% 51% 41%; transform: rotate(-10deg); pointer-events: none;
}
.take-strip button:focus-visible { outline: 2px solid white; outline-offset: 1px; z-index: 1; }
@media (max-width: 700px) {
  #front .show-print figcaption { flex-direction: column; align-items: start; gap: 8px; }
}
@media (max-width:700px) {
  #front .show-title {display:contents;}
  #front .show-grid {grid-template-columns:minmax(0,1fr); gap:0; padding-top:16px;}
  #front .show-title h1 {grid-row:1; margin:0 0 15px;}
  #front .show-print {grid-row:2; margin:0 3px 18px;}
  #front .show-title > p {grid-row:3; margin:0; max-width:38ch;}
  #front .card-fold {grid-row:5; margin:3px 0 0;}
  #front .show-print figcaption {min-height:58px;}
  #front .card-enclosures {margin-top:18px;}
}
@media (max-width:360px) {
  #front .show-print strong {font-size:15px;}
}
@media (max-width:700px) {
  #front .show-title h1 { display:flex; align-items:baseline; gap:.22em; transform:rotate(-2deg); }
  #front .show-title b { font-size:clamp(42px,12vw,72px); }
  #front .show-title em { font-size:clamp(45px,13vw,78px); }
}

/* The seal opens a facing pair of leaves in the space the cover occupied. */
#front:not(:has(#letter-seal[open])) .signed-card,
#front:has(#letter-seal[open]) .show-print { display: none; }
#front .signed-card {
  display: grid;
  grid-template-columns: .92fr 1fr;
  color: #49352d;
  box-shadow: 2px 4px #813546, 4px 6px #bd9c65, 2px 12px 25px #031c2399;
  background: #f4e4c4;
}
.signed-photo {
  display: grid;
  align-items: center;
  padding: clamp(10px, 1.8vw, 25px);
  background: linear-gradient(90deg, #fcf2da 80%, #ecdcbb 98%, #c8ac83);
}
.signed-photo img {
  display: block; width: 100%; height: auto;
  border: 4px solid #fff9eb; box-shadow: 1px 3px 7px #54362655;
  transform: rotate(-2deg);
}
.signed-leaf {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(14px, 2.1vw, 32px);
  background: linear-gradient(90deg, #d4bf99, #f4e7c9 6%, #fff6de 18%, #fff3d8);
  transform-origin: left;
}
.signed-leaf p { margin: 0; font: clamp(17px, 1.5vw, 24px)/1.22 Georgia, serif; }
.signed-leaf p em { display: block; margin-top: .55em; }
.family-ink { margin: 1.2em 0 .7em; }
.family-ink span { display: block; margin-bottom: .25em; font: italic 14px/1.2 Georgia, serif; }
.family-ink strong { font: italic 500 clamp(19px, 1.8vw, 30px)/1.1 S, Georgia, serif; }
.fourth-name { display: block; overflow: visible; width: min(155px, 90%); height: auto; color: #883346; }
.signed-leaf a {
  align-self: start; display: inline-flex; align-items: center; gap: .65em;
  min-height: 44px; color: #64323a; text-underline-offset: 4px;
  font: 650 14px/1.2 system-ui;
}
@media (prefers-reduced-motion: no-preference) {
  body:not(:has(#quiet[aria-pressed="true"])) .signed-leaf {
    animation: open-signed-leaf 620ms cubic-bezier(.22,.74,.28,1) both;
  }
  body:not(:has(#quiet[aria-pressed="true"])) .fourth-name path {
    stroke-dasharray: 1; animation: write-fourth-name .45s ease-out .65s both;
  }
  body:not(:has(#quiet[aria-pressed="true"])) .fourth-name path:nth-child(2) {animation-delay: 1.06s;}
  body:not(:has(#quiet[aria-pressed="true"])) .fourth-name path:nth-child(3) {animation-delay: 1.43s; animation-duration: .8s;}
  body:not(:has(#quiet[aria-pressed="true"])) .fourth-name path:last-child {animation-delay: 2.2s; animation-duration: .1s;}
  @keyframes open-signed-leaf { from { transform: perspective(900px) rotateY(-78deg); } }
  @keyframes write-fourth-name { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media (max-width: 700px) {
  #front .show-title > p { grid-row: 2; }
  #front #letter-seal { grid-row: 3; margin-block: 8px 14px; }
  #front .show-print, #front .signed-card { grid-row: 4; }
}
@media (max-width: 480px) {
  #front .signed-card { grid-template-columns: 1fr; }
  .signed-photo { padding: 10px 15px 6px; background: #f7eacf; }
  .signed-photo img { aspect-ratio: 2.1; object-fit: cover; object-position: 50% 45%; transform: rotate(-1deg); }
  .signed-leaf { padding: 16px 20px 8px; background: linear-gradient(#d6c19b, #f6ebd2 5%, #fff4db 14%); }
  .signed-leaf p { font-size: 17px; }
  .family-ink { margin: 12px 0 0; }
  .fourth-name { width: 124px; }
}

body:not(.card-entered):not(:has(#letter-seal[open])) :is(.pressnav .map-opener, .pressnav a[href="#card"], .card-enclosures) {
  display: none;
}
.snow-before-camera { padding: clamp(25px,5vw,65px) 5%; background: radial-gradient(ellipse at 60% 45%, #324c58, #172838 75%); }
.snow-before-camera .winter-vignette { margin-bottom: 0; }
.album-pocket { background: #f5e9cd; color: #403628; padding: 0 5%; }
.album-pocket .enclosures { max-width: 820px; margin: auto; border: 0; padding-bottom: 16px; }
#card .letter { max-width: 760px; }
#card .spread { display: block; }
#final-print { position: relative; max-width: 540px; margin: 0 auto; transform: none; scroll-margin-top: 72px; }
#card .letter-note { max-width: 490px; margin: clamp(18px,3vw,32px) auto 0; text-align: center; }
#card .letter-note h2 { font-size: clamp(36px,5vw,58px); }
#card .letter-note p { text-wrap: balance; }

@media (min-width: 850px), (min-width: 560px) and (orientation: landscape) {
  #card .letter {
    max-width: 1020px;
    background: linear-gradient(90deg, transparent 48%, #765a3320 49.9%, #fff9e4 50.1%, transparent 53%),
      radial-gradient(ellipse at top left, #fffaf0, transparent 62%), #f5e9cd;
  }
  #card .spread {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 72px); padding-bottom: 0;
  }
  #card #final-print { width: 100%; }
  #card .letter-note { margin: 0; }
}
@media (min-width: 560px) and (orientation: landscape) and (max-height: 510px) {
  #card { padding: 12px 3% 18px; }
  #card .letter { padding: 10px 16px; }
  #card .spread { padding-top: 10px; gap: 24px; }
  #card .letter-top { font-size: 12px; padding-block: 3px; }
  #card #final-print { max-width: min(100%, 79svh); }
  #card .letter-note h2 { font-size: clamp(28px, 4.5vw, 38px); }
  #card .letter-note p { font-size: 18px; margin-top: 8px; }
  #card .letter-note .signature { margin-top: 7px; }
  #card .rosemary-charm { margin-block: 0; }
}

/* The open envelope holds a print, a pocket-sized issue and a 45. */
.card-enclosures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-block: 12px 6px;
}
.card-enclosures a {
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  min-width: 0;
  padding: 6px 4px;
  text-decoration: none;
  font: italic clamp(16px, 2vw, 25px)/1.1 Georgia, serif;
}
.card-enclosures a + a { border-left: 1px solid #dfc08557; }
.card-enclosures a:focus-visible { outline: 2px solid #f9dfb0; outline-offset: -2px; }
.card-enclosures a > :first-child { position: relative; flex: none; }
.enclosed-mini-prints, .enclosed-issue {
  display: block;
  width: 41px;
  height: 52px;
  transform: rotate(-7deg);
  box-shadow: 1px 3px 4px #05101180;
}
.enclosed-mini-prints { background: #e4d6b8; }
.enclosed-mini-prints img, .enclosed-issue img { display: block; width: 100%; height: 100%; object-fit: cover; }
.enclosed-mini-prints img { box-sizing: border-box; border: 3px solid #fff1d6; border-bottom-width: 7px; transform: rotate(12deg); }
.enclosed-issue { transform: rotate(5deg); border-left: 2px solid #a37757; }
.enclosed-issue i { position: absolute; inset: 2px 1px auto; text-align: center; color: #fff3cf; font: bold italic 8px Georgia, serif; text-shadow: 0 1px 2px #261d14; }
.enclosed-record {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle,#241e22 0 2%,#e3b876 3% 6%,#ad4946 7% 28%,transparent 29%),
    conic-gradient(from 20deg,transparent,#e6ddc24d 15%,transparent 28% 62%,#c4ae973b 75%,transparent 84%),
    repeating-radial-gradient(circle,#24272a 0 2px,#4c4646 3px,#252729 4px);
  box-shadow: 0 3px 6px #07111680;
}
@media (max-width: 620px) {
  .card-enclosures a { flex-direction: column; gap: 9px; text-align: center; font-size: 15px; }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  body:not(:has(#quiet[aria-pressed="true"])) .card-enclosures a > :first-child { transition: translate .2s, rotate .2s; }
  body:not(:has(#quiet[aria-pressed="true"])) .card-enclosures a:hover > :first-child { translate: 0 -3px; rotate: -4deg; }
}

@media (max-width: 480px) and (prefers-reduced-motion: no-preference) {
  body:not(:has(#quiet[aria-pressed="true"])) .signed-leaf {
    transform-origin: center top;
    animation-name: unfold-lower-leaf;
  }
  @keyframes unfold-lower-leaf {
    from { transform: perspective(800px) rotateX(-66deg); }
  }
}

/* A vertical snapshot tucks into the same letter as the landscape family portrait. */
#card #final-print.guest-take {
  width: min(100%, 34svh);
  max-width: 325px;
}
@media (orientation: landscape) and (max-height: 510px) {
  #card #final-print.guest-take { width: min(100%, 43svh); }
}

@media (max-width: 700px) {
  #front:has(#letter-seal[open]) .signed-card { grid-row: 3; margin-top: 14px; }
  #front #letter-seal[open] { grid-row: 4; margin: 12px 0 0; }
}

/* The loose prints live together in a glassine photo wallet. */
.album-pocket { padding-block: clamp(14px, 3vw, 32px); }
.album-pocket #prints { max-width: 860px; padding: 0; }
#prints > summary {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 5px 10px; max-width: 100%; min-height: 58px;
  list-style: none; font: italic clamp(20px, 3vw, 29px)/1.1 Georgia, serif;
}
#prints > summary::-webkit-details-marker { display: none; }
.print-wallet {
  position: relative; display: inline-block; width: 54px; height: 49px; flex: none;
  transform: rotate(-6deg); isolation: isolate;
}
.print-wallet img {
  position: absolute; object-fit: cover; padding: 2px; background: #fff8e7;
  box-shadow: 0 1px 2px #57402a55;
}
.print-wallet img:first-child { width: 28px; height: 36px; left: 5px; top: 2px; transform: rotate(-11deg); }
.print-wallet img:nth-child(2) { width: 36px; height: 28px; right: 1px; top: 9px; transform: rotate(10deg); }
.print-wallet i {
  position: absolute; inset: 19px 0 0; background: linear-gradient(155deg,#f8edcfde 49%,#b9a17b 50%,#f0e1bfea 52%);
  border: 1px solid #aa916d; box-shadow: 1px 2px 2px #6f533029;
  clip-path: polygon(0 0, 49% 24%, 100% 0, 100% 100%, 0 100%);
}
.wallet-chevron {
  display: inline-block; width: 9px; height: 9px; flex: none;
  border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
#prints[open] .wallet-chevron { transform: rotate(225deg); }
#prints[open] .print-wallet img:first-child { transform: translate(-3px,-5px) rotate(-16deg); }
#prints[open] .print-wallet img:nth-child(2) { transform: translate(3px,-4px) rotate(14deg); }
#prints .album-hint { margin: 7px 0 24px; }
#prints .enclosed-prints { max-width: 800px; padding: 0 2% 12px; }
#prints .enclosed-prints figure { margin: 0; min-width: 0; }
#prints .enclosed-prints figcaption { text-wrap: balance; }
@media (min-width: 760px) { #prints .enclosed-prints { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (prefers-reduced-motion:no-preference) {
  body:not(:has(#quiet[aria-pressed="true"])) .print-wallet img { transition: transform .32s ease-out; }
}

#front :is(#front-outtakes, #signed-card) { scroll-margin-top: 64px; }

/* Four individually selectable frames on one continuous strip of reversal film. */
@media (max-width: 700px) {
  #front .take-strip:not([hidden]) {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    align-self: stretch; gap: 4px; padding: 8px 5px;
    background:
      repeating-linear-gradient(90deg, #e7d7b0 0 4px, transparent 4px 12px) 5px 2px / auto 2px repeat-x,
      repeating-linear-gradient(90deg, #e7d7b0 0 4px, transparent 4px 12px) 5px calc(100% - 2px) / auto 2px repeat-x,
      #342e2b;
  }
  #front .take-strip button { width: 100%; height: clamp(44px, 13vw, 70px); padding: 1px; }
  #front .take-strip img { object-position: 50% 34%; }
  #front .show-frame:has([data-cut="family"]) img { scale: 1.32; transform-origin: 57% 58%; }
  #front .show-frame:has([data-cut="family"])::after { scale: 1.32; transform-origin: 57% 58%; }
}

.outtake-keepsake {
  display: flex; align-items: center; gap: .65rem;
  min-height: 44px; margin: 6px 4px -4px; padding: 3px 1px;
  color: #633a30; border-top: 1px dashed #ab8c69;
  text-decoration: none; font: 700 12px/1.3 system-ui;
}
.outtake-keepsake span { margin-right: auto; color: #715b46; font: 600 10px/1.3 system-ui; letter-spacing: .09em; }
.show-print .outtake-keepsake strong { font: 700 13px/1.3 system-ui; }
.outtake-keepsake:is(:hover,:focus-visible) strong { text-decoration: underline; text-underline-offset: 3px; }

#card .letter-top { padding: 3px 4px; }
.family-postage { display: flex; align-items: center; isolation: isolate; gap: 0; }
.family-postage img { display: block; width: clamp(54px,6vw,73px); height: auto; transform: rotate(4deg); filter: drop-shadow(0 1px 1px #49371f55); }
.family-postage time {
  position: relative; z-index: 1; transform: rotate(-12deg); border: 3px double #7a655a;
  display: grid; place-content: center; width: 45px; aspect-ratio: 1; border-radius: 50%;
  margin-right: -6px; color: #705748; text-align: center; letter-spacing: .07em; font: 12px/1.06 B,serif;
}
.family-postage time::before { content: ''; position: absolute; right: 95%; top: 42%; width: 26px; height: 7px; border-block: 1px solid #85695b; transform: rotate(5deg); }
@media (orientation:landscape) and (max-height:510px) {
  .family-postage img { width: 43px; }
  .family-postage time { width: 33px; font-size: 10px; }
}
