:root {
  color-scheme: light;
  --ink: #25251f;
  --muted: #59574e;
  --paper: #f7f4ed;
  --rule: #cdc5b8;
  --accent: #66382e;
  font-family: system-ui, sans-serif;
  background: #ebe5da;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
.book { width: min(1320px, calc(100% - 56px)); margin: 0 auto; }
header, footer, .controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header { min-height: 71px; }
a { color: inherit; text-underline-offset: 4px; }
.wordmark { font-family: Georgia, serif; font-size: 1.65rem; text-decoration: none; }
.jump { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
select, button { font: inherit; color: var(--ink); }
select { max-width: 205px; padding: 8px; border: 1px solid var(--rule); background: var(--paper); }
.spread {
  display: grid; grid-template-columns: minmax(245px, 32%) minmax(0, 1fr);
  min-height: 445px; height: min(68vh, 690px); background: var(--paper);
  border: 1px solid var(--rule); overflow: hidden;
}
.copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 66px); }
.eyebrow { color: var(--accent); font-size: .75rem; text-transform: uppercase; font-weight: 700; letter-spacing: .13em; margin: 0 0 16px; }
h1 { font: normal clamp(2.5rem, 4.7vw, 5.2rem)/.98 Georgia, serif; letter-spacing: -.045em; margin: 0 0 16px; }
.subtitle { margin: 0; font-size: clamp(.95rem, 1.4vw, 1.18rem); line-height: 1.4; }
.detail { font-size: .86rem; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.photos {
  min-width: 0; min-height: 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr); gap: 7px;
  background: #e9e0d3; padding: 12px; align-items: stretch;
}
.photos img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.cover-portrait { position: relative; height: 100%; max-width: 100%; min-height: 0; aspect-ratio: 749 / 1150; justify-self: center; }
.cover-portrait img { object-fit: cover; }
.cover-city { position: absolute; bottom: 8%; writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.58rem, 1.1vw, .74rem); font-weight: 600; color: #fff; text-shadow: 0 1px 4px #181512, 0 0 8px #181512; }
.cover-city-new-york { left: 6%; }
.cover-city-los-angeles { right: 6%; }
.turn .copy, .turn .photos { animation: turn-in 390ms ease-out both; }
@keyframes turn-in { from { opacity: .35; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.controls { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.controls button { min-height: 44px; background: var(--paper); border: 1px solid var(--rule); padding: 7px 13px; cursor: pointer; }
.controls button:hover { border-color: var(--accent); }
.controls button[aria-pressed="true"] { background: var(--accent); color: white; }
.playback { display: flex; gap: 12px; align-items: center; }
.counter { font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--muted); }
footer { min-height: 60px; color: var(--muted); font-size: .78rem; }
footer div { display: flex; gap: 14px; flex-wrap: wrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 690px) {
  .book { width: calc(100% - 24px); }
  header { min-height: 56px; }
  .wordmark { font-size: 1.28rem; }
  .jump { font-size: 0; }
  select { font-size: .77rem; max-width: 148px; }
  .spread { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .copy { padding: 17px 16px; min-height: 113px; }
  .eyebrow { margin-bottom: 6px; font-size: .66rem; }
  h1 { font-size: clamp(1.95rem, 8vw, 2.9rem); margin: 0 0 6px; }
  .subtitle { font-size: .88rem; }
  .detail { margin-top: 5px; font-size: .74rem; }
  .photos { height: min(49svh, 420px); min-height: 230px; padding: 6px; }
  .photos.wide { height: auto; min-height: 0; aspect-ratio: 1.44; }
  .photos.three-up {
    height: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, min(47vw, 255px));
  }
  .photos.three-up img:first-child { grid-column: 1 / -1; }
  .controls button { padding: 7px 8px; font-size: .81rem; }
  .playback { gap: 7px; }
  footer { align-items: flex-start; flex-direction: column; padding: 10px 0; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .turn .copy, .turn .photos { animation: none; } }
