/* Printed on the photograph's sleeve; the photograph opens on its own. */
.field-print {
  container-type: inline-size;
}
.field-print .view-photo {
  position: relative;
  border: 0;
  overflow: hidden;
  border-radius: 0;
  color: #ffefd5;
}
.cover-ink {
  position: absolute;
  inset: 0;
  text-align: left;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #081e1c9e,
    transparent 29%,
    transparent 63%,
    #132318aa
  );
}
.cover-topline,
.cover-rule,
.cover-story small,
.cover-price,
.record-copy small,
.cinema-detour > summary small {
  font:
    700 10px/1.3 system-ui,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.cover-topline {
  position: absolute;
  inset: 3% 5% auto;
  display: flex;
  justify-content: space-between;
  font-size: 2.35cqw;
  padding-bottom: 1%;
  border-bottom: 1px solid;
}
.cover-mast {
  position: absolute;
  top: 6.1%;
  left: 4%;
  font:
    700 19.9cqw/0.99 Georgia,
    serif;
  letter-spacing: -0.09em;
  white-space: nowrap;
  text-shadow: 0 1px 5px #11271b66;
}
.cover-rule {
  position: absolute;
  left: 6%;
  top: 21%;
  font:
    italic 3.7cqw/1.2 Georgia,
    serif;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 1px 2px #111;
}
.cover-story {
  position: absolute;
  left: 5.7%;
  bottom: 6%;
  display: grid;
}
.cover-story small {
  font-size: 2.55cqw;
  width: max-content;
  background: #842d36;
  padding: 1.25cqw 2cqw;
  color: white;
}
.cover-story b {
  font:
    italic 21cqw/1.02 Georgia,
    serif;
  letter-spacing: -0.09em;
}
.cover-story i {
  font:
    italic 6cqw/1.1 Georgia,
    serif;
}
.cover-price {
  position: absolute;
  bottom: 4%;
  right: 3%;
  background: #ffefd5;
  color: #282a27;
  padding: 1.1cqw;
  font-size: 1.95cqw;
}
.cover-price i {
  display: block;
  height: 5cqw;
  background: repeating-linear-gradient(
    to right,
    #282a27 0 1px,
    transparent 1px 3px,
    #282a27 3px 5px,
    transparent 5px 6px
  );
}
.album-arms .album-pair {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
}
.album-arms .album-pair figure:nth-child(2) {
  margin-top: 0;
}
.album-outside {
  background: #092b2e url("assets/winter-wings.webp") center/100% 100% no-repeat;
  position: relative;
  isolation: isolate;
  padding-block: clamp(70px, 10vw, 145px);
}
.album-outside .album-sheet {
  position: relative;
  max-width: 900px;
  width: 82%;
  z-index: 1;
}
.album-outside h2 {
  text-shadow: 0 2px 8px #082727;
}
.greenhouse-pair img {
  border: 4px solid #fff2da;
}
.greenhouse-pair figcaption {
  display: table;
  background: #092b2e;
  padding: 0.25em 0.5em;
}
.album-outside::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at center, #fff8dd 0 1px, transparent 2px),
    radial-gradient(ellipse at center, #edd6a3 0 1px, transparent 1.5px);
  background-size:
    167px 179px,
    259px 223px;
  opacity: 0.48;
}
.cinema-detour {
  background: repeating-linear-gradient(
    90deg,
    #571b2c,
    #752638 4%,
    #511d2c 6%,
    #732b3b 9%
  );
  border-block: 4px double #efcc85;
}
.cinema-detour > summary {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  padding: clamp(29px, 5vw, 64px) 32px;
  color: #ffedc7;
}
.cinema-detour > summary::before {
  content: "";
  position: absolute;
  inset: 6px 0;
  pointer-events: none;
  background:
    radial-gradient(circle, #fff2c6 1.7px, transparent 3px) left top/18px 6px
      repeat-x,
    radial-gradient(circle, #fff2c6 1.7px, transparent 3px) left bottom/18px 6px
      repeat-x;
}
.cinema-detour > summary strong {
  font:
    normal clamp(31px, 5.7vw, 78px) / 1.02 S,
    Georgia,
    serif;
  letter-spacing: -0.045em;
  text-shadow: 0 3px #471326;
}
.cinema-detour > summary::after {
  position: absolute;
  right: 1%;
  top: calc(50% - 14px);
}
.cinema-detour > summary small {
  color: #ffdc9b;
}
.parcel-book .parcel-bow {
  width: 52px;
  height: 52px;
  background: transparent url("assets/ribbon-parcel.svg") center/contain
    no-repeat;
  border: 0;
  box-shadow: none;
}
.parcel-book .parcel-bow::before,
.parcel-book .parcel-bow::after {
  content: none;
}
.record-counter {
  color: #542929;
  background: #f4dfb1;
  border-block: 3px double #ab885e;
}
.record-inner {
  width: min(calc(100% - 32px), 780px);
  margin: auto;
  display: grid;
  grid-template-columns: 82px 1fr auto auto;
  align-items: center;
  column-gap: clamp(12px, 2.5vw, 32px);
  padding: 16px 0;
}
.vinyl {
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    #203530 0 2px,
    #44544b 3px,
    #172924 4px
  );
  box-shadow: 0 3px 5px #432a2740;
}
.vinyl i {
  display: grid;
  place-items: center;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  border: 1px solid #f1c779;
  background: #96363d;
  color: #fff0c6;
  font:
    italic bold 16px Georgia,
    serif;
}
.record-copy {
  min-width: 0;
}
.record-copy small {
  display: block;
  color: #7e2f35;
}
.record-copy label {
  display: block;
  font:
    italic 14px/1.2 Georgia,
    serif;
  margin-top: 5px;
}
.record-copy select {
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid #9d7f59;
  border-radius: 0;
  background: transparent;
  color: #462526;
  font:
    700 clamp(19px, 3vw, 31px) / 1.2 Georgia,
    serif;
  cursor: pointer;
}
.record-play,
#record-next {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #e7c67d;
  border-radius: 50%;
  background: #762936;
  color: #ffeec9;
  cursor: pointer;
  padding: 0;
}
.record-play span {
  display: block;
  width: 0;
  height: 0;
  border-block: 7px solid transparent;
  border-left: 11px solid currentColor;
  margin-left: 3px;
}
.record-playing .record-play span {
  height: 15px;
  width: 12px;
  border: 0;
  border-inline: 4px solid currentColor;
  margin: 0;
}
.record-notes {
  font:
    italic 15px/1.4 Georgia,
    serif;
}
.record-notes > summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
}
.record-notes[open] {
  grid-column: 2/-1;
}
#record-lyrics {
  white-space: normal;
  font:
    16px/1.55 Georgia,
    serif;
}
#record-status {
  grid-column: 2/-1;
  font:
    14px/1.4 system-ui,
    sans-serif;
  margin: 6px 0 0;
}
#record-status:empty {
  display: none;
}
#pocket-radio {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 12;
  background: #21392f;
  color: #fff2d4;
  border: 1px solid #c7ae79;
  border-radius: 40px;
  padding: 3px 4px 3px 15px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 4px 15px #15140f44;
}
#pocket-radio[hidden],
body:has(dialog[open]) #pocket-radio {
  display: none;
}
#pocket-title {
  color: inherit;
  font:
    italic 15px Georgia,
    serif;
  margin-right: 6px;
}
#pocket-radio button {
  width: 44px;
  height: 44px;
  color: #f7edd3;
  background: transparent;
  border: 0;
}
#record-next svg {
  width: 22px;
}
@media (max-width: 620px) {
  .eldest-sheet {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 21px;
  }
  .eldest-copy h2 {
    font-size: clamp(39px, 10vw, 56px);
  }
  .field-print {
    width: min(100%, 405px);
    align-self: center;
  }
  .record-inner {
    grid-template-columns: 56px minmax(0, 1fr) 46px;
    gap: 0 12px;
  }
  .vinyl {
    width: 56px;
  }
  .record-notes,
  .record-notes[open] {
    grid-column: 2/-1;
  }
  .record-notes > summary {
    min-height: 42px;
  }
  .album-arms .album-pair {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .album-arms .album-pair figure:first-child {
    width: 72%;
  }
  .album-arms .album-pair figure:nth-child(2) {
    width: 91%;
    justify-self: end;
  }
  .album-outside .album-sheet {
    width: 85%;
  }
  .album-outside {
    background-size: auto 100%;
    background-position: 89% center;
  }
}
@media (prefers-reduced-motion: no-preference) {
  body:not(:has(#quiet[aria-pressed="true"])) .album-outside::before {
    animation: album-snow 26s linear infinite;
  }
  .record-playing .vinyl {
    animation: needle-spin 4.5s linear infinite;
  }
  body:not(:has(#quiet[aria-pressed="true"])) .cinema-detour[open] .receiver {
    animation: premiere 0.65s ease-out;
  }
  @keyframes needle-spin {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes album-snow {
    to {
      background-position:
        0 179px,
        0 223px;
    }
  }
  @keyframes premiere {
    from {
      opacity: 0.2;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

#pocket-radio button[hidden] { display: none; }
#pocket-close { background: transparent; color: inherit; cursor: pointer; }

#family-music[controls] {
  display: block; grid-column: 1 / -1; width: 100%; min-width: 0;
  height: 44px; margin-top: 8px;
}
#family-music:not([controls]) { display: none; }
@media (max-width: 620px) {
  .record-inner { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .record-copy select { width: 100%; min-height: 44px; }
}
#open-recording:not([hidden]) {
  display: inline-flex; align-items: center; min-height: 44px;
  grid-column: 1 / -1; color: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* The sleeve and its exposed record make one invitation. */
#record-entry {
  position: fixed; inset: 0; margin: 0; box-sizing: border-box;
  width: 100%; height: 100%; max-width: none; max-height: none;
  overflow: auto; border: 0; border-radius: 0; padding: 18px;
  color: #fff3d4;
  background: radial-gradient(ellipse at 44% 40%, #733543 0, #431c2b 48%, #21131b 100%);
}
#record-entry[open] { display: grid; }
html:has(#record-entry[open]) { overflow: hidden; }
.entry-inner { position: relative; isolation: isolate; width: min(70vw, 46svh, 405px); margin: auto; }
.entry-jacket {
  container-type: inline-size;
  position: relative; transform: rotate(-4deg); overflow: hidden;
  aspect-ratio: 1; border: 5px solid #ead7b2; background: #294335;
  box-shadow: 0 18px 34px #1a091a80;
}
.entry-jacket img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 53%; }
.entry-jacket > div {
  position: absolute; inset: auto 0 0; padding: 18% 6% 5%;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: linear-gradient(transparent, #10271ede 72%);
}
.entry-jacket small { font: 700 clamp(8px, 1.7vw, 11px)/1.4 system-ui; letter-spacing: .12em; text-transform: uppercase; }
#entry-title { margin: 4px 0 0; font: bold min(15cqi, 63px)/.86 Georgia, serif; letter-spacing: -.055em; color: inherit; }
.entry-disc {
  width: 94%; aspect-ratio: 1; position: absolute; z-index: -1; top: 2%; left: 22%; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 4px 10px 18px #1a091a77;
  background: repeating-radial-gradient(circle, transparent 0 2px,#f5dfbf20 3px,transparent 4px), conic-gradient(#131719,#51534f,#14181a,#3e423f,#111617);
}
.entry-disc i { border-radius: 50%; background: #ae5347; padding: 12%; color: #eddbad; }
.entry-actions { position: relative; display: grid; justify-items: center; gap: 2px; margin-top: clamp(24px,5vh,45px); }
.entry-actions button { min-height: 44px; font: 650 15px/1.15 system-ui; cursor: pointer; }
#enter-playing { padding: 0 20px; color: #43212a; background: #ffecc9; border: 1px solid #b99466; box-shadow: 3px 3px #ab7258; }
#enter-quiet { color: #f5e2d2; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  #record-entry[open] .entry-disc { animation: slide-record .65s ease-out both; }
  @keyframes slide-record { from { transform: translateX(-20%) rotate(-20deg); } }
}
/* A gatefold sleeve has room to open when the phone turns sideways. */
@media (orientation: landscape) and (min-width: 520px) and (max-height: 520px) {
  .entry-inner {
    --sleeve: min(65svh, 35vw);
    width: min(88vw, 640px); display: grid;
    grid-template-columns: var(--sleeve) 1fr; align-items: center;
  }
  .entry-jacket { z-index: 1; }
  .entry-disc { width: calc(var(--sleeve) * .94); left: calc(var(--sleeve) * .19); }
  .entry-actions {
    z-index: -2; align-content: center; justify-items: start;
    min-height: calc(var(--sleeve) * .88); margin: 0 0 0 -6px;
    padding: 12px 10px 12px calc(var(--sleeve) * .22);
    border-block: 1px solid #d8b38c88;
    background: linear-gradient(95deg,#34121f,#702f40 38%,#522432);
    box-shadow: 2px 8px 18px #1b091e55;
  }
  .entry-actions::before {
    content: ""; width: 34px; height: 4px; border-block: 1px solid #e6c48b;
    margin-bottom: 12px;
  }
  .entry-actions #enter-playing { padding-inline: 12px; }
  .entry-actions #enter-quiet { padding-inline: 0; }
}
body:has(#pocket-radio:not([hidden])) footer { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

@media (max-width: 700px) and (orientation: portrait) {
  .record-rail { position: sticky; top: 0; z-index: 12; background: #1c342d; }
  body:not(:has(#quiet[aria-pressed="true"])) .record-rail { min-height: 44px; }
  .record-rail #pocket-radio {
    position: static; border: 0; border-radius: 0; box-shadow: inset 0 -1px #c7ae7966;
    padding: 0 12px; gap: 4px; background: transparent;
  }
  .record-rail #pocket-title {
    display: flex; align-items: center; gap: 9px; flex: 1; min-height: 44px;
  }
  .record-rail #pocket-title::before {
    content: ""; width: 23px; height: 23px; border-radius: 50%;
    background: radial-gradient(circle, #e3c496 0 7%, #a54c46 8% 31%, transparent 32%),
      repeating-radial-gradient(#17231e 0 2px,#67736a 3px,#17231e 4px);
    box-shadow: 0 0 0 1px #c9bd9a80;
  }
  html:not(:has(#quiet[aria-pressed="true"])), html:has(#pocket-radio:not([hidden])) { scroll-padding-top: 48px; }
  body:has(#pocket-radio[hidden]) .record-rail { position: static; background: #163b30; }
}

.pocket-picker {
  display: flex; align-items: center; position: relative; min-width: 0;
  gap: 6px; min-height: 44px; padding-right: 6px;
}
.pocket-picker::after {
  content: ""; width: 7px; height: 7px; border: solid #e6d2a7;
  border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg);
}
.pocket-picker select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  cursor: pointer; font-size: 16px;
}
.pocket-short { display: none; }
@media (max-width: 285px) and (orientation: portrait) {
  .record-rail #pocket-radio { padding-inline: 4px; gap: 2px; }
  .record-rail .pocket-picker { gap: 4px; padding-right: 0; }
  .record-rail #pocket-title { display: none; }
  .pocket-short { display: inline; font: italic 15px Georgia, serif; }
}
.pocket-picker:focus-within { outline: 2px solid #f2d29d; outline-offset: 1px; }
@media (max-width: 700px) and (orientation: portrait) {
  .record-rail .pocket-picker { flex: 1; }
}

#record-lyrics p:not([hidden]) {
  display: grid;
  grid-template-columns: clamp(54px, 22%, 148px) minmax(0,1fr);
  align-items: start;
  gap: 8px clamp(12px, 2.4vw, 21px);
  margin: 3px 0 12px;
  padding: clamp(12px, 3vw, 26px);
  border: 1px solid #bca67f;
  background: #fff4db;
  box-shadow: 2px 3px 0 #ad89654d;
}
.sleeve-print {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 38%;
  margin: 2px 0 6px;
  border: 4px solid #fffaf0;
  border-bottom-width: 10px;
  box-shadow: 0 1px 4px #4a301e50;
  transform: rotate(-3deg);
}
@media (max-width: 620px) {
  .record-inner .record-notes[open] { grid-column: 1 / -1; }
}

/* Printed liner inside the family LP. The existing entry choices sit on the paper. */
#record-entry {
  background: radial-gradient(ellipse at 50% 42%, #733747aa, #241420ec 83%),
    repeating-linear-gradient(108deg, #69353c 0 1px, #633039 1px 4px);
}
.entry-liner p { margin: 0; font: 22px/1.15 Georgia, serif; color: #ffe8be; }
.entry-liner p em { color: #efc79b; }
.liner-sides { display: none; }
.entry-liner { text-align: center; margin-bottom: 14px; }
@media (min-width: 800px) and (min-height: 521px) {
  .entry-inner {
    --jacket: min(40vw, 62svh, 520px); width: fit-content;
    display: grid; grid-template-columns: var(--jacket) calc(var(--jacket) * .95); align-items: center;
  }
  .entry-disc { width: calc(var(--jacket) * .95); left: calc(var(--jacket) * .18); }
  .entry-actions {
    grid-column: 2; min-height: calc(var(--jacket) * .9);
    box-sizing: border-box; align-content: center; justify-items: start; margin: 0;
    padding: 24px 6% 24px 19%; background: linear-gradient(95deg,#a89070,#eed5a9 15%,#fae9c9 42%,#eed9b2);
    box-shadow: 4px 10px 24px #230e15aa; color: #492830; z-index: -2;
  }
  .entry-liner { width: 100%; margin-bottom: clamp(10px,2.6vh,26px); text-align: left; }
  .entry-liner p { color: #452b2b; font-size: clamp(24px,2.8vw,43px); letter-spacing: -.045em; }
  .entry-liner p em { color: #873642; }
  .liner-sides { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px;
    border-block: 3px double #8b634b; padding: 12px 0; margin-top: 18px; }
  .liner-sides b { font: italic bold 17px Georgia,serif; }
  .liner-sides ol { margin: 5px 0 0; padding: 0; list-style-position: inside; font: 13px/1.45 Georgia,serif; }
  .entry-actions #enter-playing { background: #64313a; color: #fff1d1; border-color: #57323a; }
  .entry-actions #enter-quiet { color: #613a36; padding-inline: 0; }
}
@media (max-height: 520px) {
  .entry-liner { text-align: left; margin-bottom: 5px; }
  .entry-liner p { font-size: 17px; }
  .entry-actions::before { display: none; }
}
@media (max-width: 519px) and (max-height: 520px) { .entry-liner { display: none; } }

/* A picture sleeve leans against its record on the kitchen counter. */
.record-inner {
  --jacket: clamp(112px, 18vw, 174px);
  grid-template-columns: calc(var(--jacket) * 1.2) minmax(0,1fr) auto auto;
  padding-block: clamp(20px, 4vw, 38px);
}
.turntable-sleeve { width: var(--jacket); position: relative; isolation: isolate; }
.turntable-sleeve .vinyl {
  position: absolute; width: 93%; top: 4%; right: -17%; z-index: -1;
  background: conic-gradient(transparent,#d5c9b135,transparent 30% 54%,#d5c9b13d,transparent 80%),
    repeating-radial-gradient(#232827 0 2px,#494a43 3px,#212323 4px);
}
.turntable-sleeve img {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  transform: rotate(-4deg); border: 1px solid #ae9778;
  box-shadow: 1px 5px 8px #4b38284d;
}
@media (max-width: 700px) {
  .record-inner { --jacket: clamp(82px, 24vw, 124px); grid-template-columns: calc(var(--jacket) * 1.2) minmax(0,1fr) auto; }
}

.record-picker { position: relative; }
#record-display:empty { display: none; }
#record-display:not(:empty) {
  display: block; width: fit-content; max-width: 100%; padding: 4px 18px 4px 0;
  border-bottom: 1px solid #9d7f59; font: 700 clamp(19px,3vw,31px)/1.12 Georgia,serif;
  text-wrap: balance;
}
.record-picker:has(#record-display:not(:empty))::after {
  content: ""; position: absolute; right: 3px; top: 50%; width: 7px; height: 7px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-65%) rotate(45deg);
}
#record-display:not(:empty) + select {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; z-index: 1;
}
.record-picker:focus-within { outline: 2px solid #763d33; outline-offset: 3px; }
.album-download {
  display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: baseline; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid #b89870; text-decoration: none; color: #553022;
}
.album-download span { font: 18px B,sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.album-download small { font: 12px/1.4 system-ui,sans-serif; }

.sleeve-verse { white-space: pre-line; }
#record-lyrics p .sleeve-film { grid-column: 2; justify-self: start; }
