.phone-reader {
  --paper: #0d0b0a;
  --ink: #eeeae4;
  --muted: #b6b1aa;
  --rule: #45423d;
  --gutter: max(18px, env(safe-area-inset-left), env(safe-area-inset-right));
  --mono: "Geist Mono", monospace;
  --sans: "Haas Grot Disp R Trial 55 Roman", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.48 var(--sans);
  min-height: 100svh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.phone-reader *, .phone-reader *::before, .phone-reader *::after { box-sizing: border-box; }
.phone-reader [hidden] { display: none !important; }
.phone-reader :where(h1,h2,h3,p,ul,figure) { margin: 0; }
.phone-reader a { color: inherit; }
.phone-reader button { font: inherit; color: inherit; cursor: pointer; }
.phone-reader :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.reader-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(8px, env(safe-area-inset-top)) var(--gutter) 6px;
  border-bottom: 1px solid var(--rule);
  font: 400 13px/1.15 var(--mono);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.reader-nav a, .reader-kicker a, .reader-contents a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  text-decoration: none;
}
.reader-nav nav { display: flex; gap: 4px; }
.reader-nav nav a { min-width: 44px; }
.reader-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.reader-name { font-weight: 500; }
.reader-body, .reader-footer { max-width: 700px; margin-inline: auto; padding-inline: var(--gutter); }
.reader-body { padding-top: clamp(15px, 2.9vh, 30px); }
.reader-kicker, .reader-dates, .reader-label, .reader-contents, .prototype-controls, .info-states {
  font: 400 12px/1.4 var(--mono); letter-spacing: .015em;
}
.reader-kicker, .reader-label, .reader-dates, .reader-contents, .info-states { text-transform: uppercase; }
.reader-kicker { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.phone-reader h1 { font: 500 clamp(37px, 9.6vw, 66px)/.99 var(--sans); letter-spacing: -.052em; text-wrap: balance; padding: 13px 0 24px; }
.reader-dates { display: flex; gap: 9px; align-items: center; font-size: 11px; color: var(--muted); }
.reader-dates::before,.reader-dates::after { flex: 1; content: ""; height: 1px; background: var(--rule); }
.reader-dates span:first-child { order: -1; }
.reader-dates span:last-child { order: 1; }
.reader-cover { margin-block: 12px 29px; }
.phone-reader :is(img,video) { display: block; max-width: 100%; }
.reading-film video, .reading-image img { display: block; width: 100%; height: auto; }
.reading-film { background: #171615; }
.reading-image { overflow: hidden; }
.reader-credits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 0 25px; border-bottom: 1px solid var(--rule); }
.reader-label { color: var(--muted); }
.reader-label small { font: inherit; opacity: .8; }
.reader-credits ul,.info-list ul { padding: 0; list-style: none; }
.reader-credits ul { margin-top: 10px; font-size: 15px; line-height: 1.48; }
.reader-contents { display: grid; grid-template-columns: repeat(2,1fr); border-bottom: 1px solid var(--rule); padding-block: 8px; }
.reader-contents a { justify-content: flex-start; text-decoration: underline; text-underline-offset: 4px; }
.reading-section { padding-top: clamp(35px, 6.5vh, 64px); scroll-margin-top: 16px; }
.phone-reader h2:not(.reader-label) { font: 500 clamp(26px, 6.7vw, 44px)/1.07 var(--sans); letter-spacing: -.035em; text-wrap: pretty; }
.reading-section .reader-label + h2 { margin-top: 10px; }
.reader-copy { font: 400 17px/1.48 var(--sans); letter-spacing: -.012em; text-wrap: pretty; }
.reader-copy + .reader-copy,.reading-section h2 + .reader-copy,.reading-section .reader-copy + h2 { margin-top: 12px; }
.reader-copy a { text-decoration: underline; text-underline-offset: .15em; }
.reading-section > :is(.reading-film,.reading-image,.prototype-gallery,.prototype-slide):not(:first-child) { margin-top: 19px; }
.reader-next { display: grid; gap: 14px; margin-top: 48px; padding: 22px 0 33px; border-block: 1px solid var(--rule); text-decoration: none; }
.reader-next .reader-label { display: flex; justify-content: space-between; }
.reader-next > span:last-child { max-width: 19em; font: 500 clamp(25px,6.75vw,38px)/1.08 var(--sans); letter-spacing: -.035em; }
.reader-footer { padding-block: 35px max(36px, env(safe-area-inset-bottom)); color: var(--muted); }
.reader-footer a { display: block; text-decoration: none; font: 300 11px/1.6 var(--mono); text-transform: uppercase; max-width: 43ch; }
.prototype-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.prototype-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1.18; position: relative; overflow: hidden; }
.prototype-slide > img { width: 100%; height: 100%; object-fit: cover; }
.prototype-device { position: absolute; width: 37%; aspect-ratio: 852/1724; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.prototype-device > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: fill; }
.prototype-device video { position: absolute; inset: 3% 5%; width: 90%; height: 94%; object-fit: contain; background: #111; border-radius: 8% / 4%; }
.music-device { aspect-ratio: 1002/2048; }
.prototype-controls { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.prototype-controls button,.info-states button { background: transparent; border: 0; min-width: 44px; min-height: 44px; }
.prototype-controls button { font: 400 20px var(--sans); }
.prototype-controls button:disabled { opacity: .38; cursor: default; }
.prototype-controls span { font-size: 11px; }
.info-states { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid var(--rule); }
.info-states button { color: var(--muted); text-transform: uppercase; border-bottom: 2px solid transparent; }
.info-states [aria-selected="true"] { color: var(--ink); border-bottom-color: currentColor; }
.info-state h1 { padding-block: 24px 22px; }
.info-photo { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; margin-bottom: 24px; }
.info-detail,.info-list { margin-top: 32px; border-top: 1px solid var(--rule); padding-top: 14px; }
.info-detail .reader-label,.info-list .reader-label { margin-bottom: 12px; }
.info-list li { min-height: 35px; border-bottom: 1px solid #2b2925; display: flex; align-items: center; }
.info-list a { display: flex; min-height: 44px; flex: 1; align-items: center; justify-content: space-between; text-decoration: none; }
