.album-sheet {
  width: min(100% - clamp(36px, 9vw, 120px), 1040px);
  margin-inline: auto;
}
.album-sheet h2 {
  margin: 0;
  font:
    400 clamp(36px, 6vw, 82px) / 0.98 S,
    Georgia,
    serif;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.album-sheet h2 em {
  font-weight: 400;
}
.album-sheet p:not(.birth-date) {
  max-width: 34ch;
  font:
    clamp(17px, 1.6vw, 22px) / 1.4 Georgia,
    serif;
}
.album-shot {
  min-width: 0;
  margin: 0;
}
.album-shot .view-photo {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: 0 6px 17px #2b1e1725;
}
.album-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.album-shot figcaption {
  display: block;
  padding: 7px 0 0;
  color: inherit;
  font:
    italic clamp(14px, 1.8vw, 20px) / 1.25 S,
    Georgia,
    serif;
}
.album-welcome {
  background: #fbefdb;
  color: #254236;
  padding: clamp(36px, 6vw, 82px) 0;
}
.welcome-sheet {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 18px clamp(30px, 8vw, 105px);
  align-items: center;
}
.welcome-copy {
  align-self: end;
}
.birth-date {
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding-block: 6px;
  border-block: 1px solid #b7886b;
  font:
    700 12px/1.2 system-ui,
    sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #86362a;
}
.welcome-copy h2 {
  font-size: clamp(58px, 9vw, 126px);
}
.welcome-copy h2 em {
  color: #9a362c;
}
.welcome-copy p:last-of-type,
.eldest-copy p {
  margin-top: 15px;
}
.welcome-portrait {
  grid-column: 2;
  grid-row: 1/3;
  max-width: 470px;
  justify-self: center;
}
.welcome-portrait button,
.welcome-snapshot button {
  border: 7px solid #fffaf0;
}
.welcome-snapshot {
  width: min(82%, 300px);
  transform: rotate(-2deg);
  justify-self: end;
  align-self: start;
}
.album-arms {
  padding: clamp(30px, 5vw, 66px) 0;
  background: #213e34;
  color: #fff2d6;
}
.album-arms h2 {
  max-width: 18ch;
  margin-bottom: 24px;
}
.album-arms h2 em,
.album-outside h2 em {
  color: #edd199;
}
.album-pair,
.greenhouse-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 36px);
}
.album-pair {
  max-width: 860px;
  margin: auto;
}
.album-pair figure:nth-child(2),
.greenhouse-pair figure:nth-child(2) {
  margin-top: clamp(22px, 5vw, 60px);
}
.album-eldest {
  padding: clamp(34px, 6vw, 80px) 0;
  background: #f5e9cf;
  color: #334136;
}
.eldest-sheet {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px clamp(20px, 4vw, 54px);
  align-items: center;
}
.eldest-copy {
  grid-column: 2;
}
.field-print {
  grid-column: 1;
  grid-row: 1/3;
}
.eldest-small {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(10px, 2vw, 20px);
  align-items: end;
}
.eldest-small figure:first-child {
  margin-bottom: 18%;
}
.album-eldest h2 em {
  color: #884431;
}
.album-siblings {
  background: #102a25;
  color: #ffedcc;
  padding: 0 0 clamp(30px, 5vw, 76px);
}
.sibling-sheet {
  max-width: 810px;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(12px, 3vw, 32px);
  align-items: end;
}
.sibling-sheet figure:first-child {
  margin-bottom: 6%;
}
.album-outside {
  background: #712833;
  color: #fff2d8;
  padding: clamp(34px, 6vw, 78px) 0;
}
.album-outside h2 {
  margin-bottom: 24px;
}
.greenhouse-pair {
  margin: auto;
  max-width: 890px;
}
.album-detour {
  background: #19392f;
  color: #ffefcb;
  border-block: 1px solid #9f8555;
}
.album-detour > summary {
  width: min(100% - 36px, 960px);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 15px 2px;
  min-height: 60px;
}
.album-detour > summary::-webkit-details-marker {
  display: none;
}
.album-detour > summary strong {
  font:
    700 clamp(17px, 2.5vw, 25px) / 1.15 S,
    Georgia,
    serif;
}
.album-detour > summary span {
  grid-column: 1;
  font:
    italic 14px/1.35 Georgia,
    serif;
}
.album-detour > summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1/3;
  font:
    28px/1 Georgia,
    serif;
}
.album-detour[open] > summary::after {
  content: "−";
}
.cinema-detour {
  background: #683036;
}
@media (max-width: 620px) {
  .album-sheet {
    width: calc(100% - 34px);
  }
  .welcome-sheet {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
  }
  .welcome-copy {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0 14px;
    align-items: center;
  }
  .birth-date {
    grid-column: 1/-1;
    font-size: 10px;
  }
  .welcome-copy h2 {
    font-size: clamp(43px, 12vw, 72px);
  }
  .welcome-copy p:last-of-type {
    margin: 0;
    font-size: clamp(15px, 3.8vw, 20px);
  }
  .welcome-portrait {
    grid-column: 1/-1;
    grid-row: 2;
    width: 88%;
    justify-self: start;
    padding-right: 8px;
  }
  .welcome-snapshot {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    align-self: end;
    justify-self: end;
    transform: translate(0, 10px) rotate(3deg);
  }
  .welcome-portrait .view-photo,
  .welcome-snapshot .view-photo {
    border-width: 4px;
  }
  .welcome-snapshot figcaption {
    background: #fbefdb;
    padding: 4px 6px;
    width: max-content;
    max-width: 100%;
  }
  .album-pair,
  .greenhouse-pair {
    gap: 10px;
  }
  .album-arms h2,
  .album-outside h2 {
    font-size: clamp(32px, 8.2vw, 49px);
    margin-bottom: 18px;
  }
  .eldest-sheet {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px 13px;
  }
  .field-print {
    grid-row: 1;
  }
  .eldest-copy {
    grid-column: 2;
    grid-row: 1;
  }
  .eldest-copy h2 {
    font-size: clamp(29px, 7.5vw, 44px);
  }
  .album-sheet .eldest-copy p:last-child {
    font-size: 15px;
    line-height: 1.3;
    margin-top: 9px;
  }
  .eldest-small {
    grid-column: 1/-1;
    max-width: 440px;
    justify-self: center;
  }
}

/* Little ink drawings tucked into the boys’ album margins. */
.welcome-snapshot { position: relative; }
.cable-doodles {
  position: absolute; right: -5px; top: -13px; width: 31%;
  pointer-events: none; transform: rotate(9deg);
}
.cable-doodles img { display: block; width: 100%; height: auto; }
.welcome-snapshot figcaption { width: fit-content; max-width: 100%; }
button.pocket-road {
  display: block; width: min(100%, 300px); margin: 1rem 0 0;
  padding: 0 0 4px; background: none; color: #633e31; border: 0;
  box-shadow: none; text-align: left; border-radius: 3px;
}
button.pocket-road[hidden] { display: none; }
.road-scene { position: relative; display: block; width: 100%; aspect-ratio: 300/86; touch-action: pan-y; cursor: grab; }
.road-scene:active { cursor: grabbing; }
.road-landscape { width: 100%; height: 100%; display: block; pointer-events: none; }
.road-wagon {
  display: block; position: absolute; left: var(--wagon-x, 12%); bottom: 15%;
  width: 24%; height: auto; pointer-events: none; user-select: none;
}
.road-windows { fill: #b9b9a1; }
.road-bulbs { opacity: 0; }
.pocket-road.is-home .road-wagon { left: var(--wagon-x, 53%); }
.pocket-road.is-home .road-windows { fill: #ffcf64; }
.pocket-road.is-home .road-bulbs { opacity: 1; }
.road-legend { display: block; margin: 0 0 0 3%; font: italic 16px/1.3 Georgia, serif; }
@media (prefers-reduced-motion: no-preference) {
  body:not(:has(#quiet[aria-pressed="true"])) .pocket-road:not(.is-dragging) .road-wagon {
    transition: left .78s cubic-bezier(.22,.72,.28,1);
  }
  body:not(:has(#quiet[aria-pressed="true"])) .pocket-road.is-home :is(.road-bulbs,.road-windows) {
    transition: opacity .32s .54s, fill .32s .54s;
  }
}
@media (prefers-reduced-motion: no-preference) {
  body:not(:has(#quiet[aria-pressed="true"])) .scene-visible .cable-doodles img {
    animation: usb-float 5.5s ease-in-out infinite alternate;
  }
}
@keyframes usb-float {
  from { transform: translateY(2px) rotate(-4deg); }
  to { transform: translateY(-4px) rotate(4deg); }
}
/* The first leaf of Charlie’s album keeps his arrival date beside his name. */
.welcome-copy {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 10px clamp(12px, 2vw, 25px);
}
.welcome-copy .birth-date {
  grid-area: 1 / 1; margin: 0; padding: 0; border: 0;
  width: clamp(62px, 8vw, 90px); text-align: center; transform: rotate(-5deg);
  background: #fff8e7; box-shadow: 1px 2px #c3ac8d, 2px 4px #f8eacb, 2px 6px 6px #69533c33;
}
.birth-date time { display: grid; }
.birth-date span {
  padding: 5px 2px; background: #883b38; color: #fff6df;
  font: 700 11px/1 system-ui; letter-spacing: .16em;
}
.birth-date strong { padding-top: 3px; font: italic 46px/.95 Georgia, serif; letter-spacing: -.07em; }
.birth-date small { padding: 2px 0 6px; font: 700 10px/1 system-ui; letter-spacing: .13em; }
.welcome-copy h2 { grid-area: 1 / 2; }
.welcome-copy p:last-of-type { grid-column: 1 / -1; margin: 5px 0 0; }
#charlie .welcome-copy #charlie-note { padding-inline: 0; }
@media (max-width: 620px) {
  .welcome-copy h2 { font-size: clamp(34px, 10vw, 60px); }
  .welcome-copy h2 br { display: none; }
  .welcome-copy h2 em::before { content: " "; }
  .welcome-copy { row-gap: 3px; }
  .welcome-copy p:last-of-type { margin-top: 12px; }
}

.charlie-enclosures {grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 20px;}
#charlie .stocking-single {
  display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:4px 0;border:0;background:transparent;
  color:#57302c;text-align:start;font:italic 19px/1.1 Georgia,serif;cursor:pointer;
}
.stocking-single img {flex:none;object-fit:contain;rotate:-8deg;}
.stocking-single small {display:block;margin-top:4px;font:700 10px/1.2 system-ui;letter-spacing:.075em;text-transform:uppercase;}
#screen.picture-single {width:min(96vw, calc(94dvh - 116px), 760px);}
#screen.picture-single video {aspect-ratio:1;max-height:none;}
#screen.picture-single #save-picture-single {display:inline-flex;align-items:center;gap:5px;margin:4px 10px 12px;color:#ffe6b2;min-height:40px;}
#screen #save-picture-single[hidden] {display:none;}
#screen.picture-single .close {white-space:nowrap;}
@media (orientation:landscape) and (max-height:500px) {
  #screen.picture-single {width:min(94vw,calc(92dvh + 210px));}
  #screen.picture-single[open] {display:grid;grid-template-columns:minmax(0,1fr) minmax(152px,35%);grid-template-rows:auto 1fr auto auto;align-items:center;}
  #screen.picture-single video {grid-area:1/1/5/2;height:auto;max-height:92dvh;object-fit:contain;background:#132d26;}
  #screen.picture-single .dialog-bar {grid-area:1/2/2/3;display:flex;flex-direction:column-reverse;align-items:flex-start;gap:12px;border:0;}
  #screen.picture-single .close {align-self:flex-end;}
  #screen.picture-single #program {font:italic clamp(20px,4.8vw,35px)/1 Georgia,serif;}
  #screen.picture-single .status {grid-area:2/2/3/3;}
  #screen.picture-single #rerun {grid-area:3/2/4/3;justify-self:start;}
  #screen.picture-single #save-picture-single {grid-area:4/2/5/3;justify-self:start;}
}

.sleeve-film {min-height:44px;border:0;padding:4px 2px;background:transparent;color:#633237;text-decoration:underline;text-underline-offset:3px;font:700 15px/1.25 system-ui;cursor:pointer;}
