:root {
  --bg: #0b0b0b;
  --surface: #151515;
  --surface-2: #1b1b1b;
  --ink: #f5f1e8;
  --muted: #aaa69f;
  --line: rgba(245, 241, 232, .13);
  --red: #ca3539;
  --blue: #2272a0;
  --spotify: #1ed760;
  --top: 58px;
  --nav: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.app-shell { position: fixed; inset: 0; min-width: 0; background: var(--bg); }
.topbar {
  position: absolute; z-index: 10; inset: 0 0 auto;
  height: calc(var(--top) + var(--safe-top));
  padding: var(--safe-top) max(18px, var(--safe-right)) 0 max(18px, var(--safe-left));
  display: flex; align-items: center; justify-content: space-between;
  background: #0b0b0bf2; border-bottom: 1px solid var(--line);
}
.brand {
  height: 48px; min-width: 44px; padding: 0; border: 0; background: none;
  display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700;
  letter-spacing: -.35px; cursor: pointer;
}
.brand-mark {
  position: relative; width: 25px; height: 25px; border-radius: 50%; background: var(--red);
  overflow: hidden; flex: 0 0 auto;
}
.brand-mark::before { content: ""; position: absolute; inset: 13px -4px -4px; background: var(--blue); transform: rotate(-7deg); }
.brand-mark::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); top: 10px; left: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.desktop-nav { display: none; }
.desktop-nav-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.topbar-date { flex: 0 0 auto; margin: 0; display: flex; align-items: baseline; gap: 4px; color: var(--muted); font-size: 10px; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
.topbar-date-separator { color: #706d68; }
#havanaTime { color: #d0ccc4; }
.spotify-playlist-button { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--spotify); cursor: pointer; }
.spotify-playlist-button svg { width: 29px; height: 29px; overflow: visible; }
.spotify-playlist-button path { fill: currentColor; }
.spotify-playlist-button:focus-visible { outline: 2px solid var(--spotify); outline-offset: 1px; }
.spotify-playlist-button.busy svg { animation: spotify-pulse .8s ease-in-out infinite alternate; }
.spotify-playlist-button.connected { color: #35e875; }
.spotify-playlist-button:disabled { cursor: wait; }
.spotify-playlist-status { position: fixed; z-index: 20; top: calc(var(--safe-top) + var(--top) + 8px); right: 12px; max-width: min(330px, calc(100% - 24px)); margin: 0; padding: 10px 13px; border: 1px solid rgba(30,215,96,.35); border-radius: 12px; background: #102016; color: #dfffe8; box-shadow: 0 10px 34px rgba(0,0,0,.4); font-size: 12px; font-weight: 700; line-height: 1.35; }
.spotify-playlist-status.error { border-color: rgba(202,53,57,.5); background: #261213; color: #ffd7d8; }
@keyframes spotify-pulse { to { opacity: .45; transform: scale(.88); } }

.content {
  position: absolute; inset: calc(var(--top) + var(--safe-top)) 0 calc(var(--nav) + var(--safe-bottom));
  overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none;
  padding-inline: max(0px, var(--safe-left)) max(0px, var(--safe-right));
}
.content::-webkit-scrollbar { display: none; }
.view { width: min(100%, 760px); margin: 0 auto; padding: 30px 18px 52px; }
.overline {
  margin: 0 0 11px; color: #e06a6d; font-size: 11px; line-height: 1.2;
  font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
}
.edition-heading { padding: 7px 2px 27px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; text-wrap: balance; }
.edition-heading h1 { margin: 0; max-width: 620px; font-size: clamp(36px, 10vw, 62px); line-height: .99; letter-spacing: -.045em; }
.intro { margin: 20px 0 0; max-width: 620px; color: #d0ccc4; font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.share-edition { min-height: 48px; margin-top: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.share-edition button { min-height: 46px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 750; cursor: pointer; }
.share-edition button:hover { border-color: rgba(245,241,232,.32); background: var(--surface-2); }
.share-edition button:disabled { opacity: .55; cursor: wait; }
.share-edition p { margin: 0; color: var(--muted); font-size: 11px; }

.song-feature {
  position: relative; overflow: hidden; min-height: 388px; padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #171717; border-radius: 18px;
}
.song-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(0,0,0,.74) 79%); pointer-events: none; }
.record {
  position: absolute; width: min(78vw, 330px); aspect-ratio: 1; right: -45px; top: -75px;
  border-radius: 50%; background: repeating-radial-gradient(circle at center, #242424 0 3px, #111 4px 8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.55); transform: rotate(-7deg);
}
.record::before { content: ""; position: absolute; inset: 31%; border-radius: 50%; background: var(--red); }
.record::after { content: ""; position: absolute; inset: 47%; border-radius: 50%; background: var(--ink); }
.record span { position: absolute; width: 21%; height: 21%; border-radius: 50%; left: 39.5%; top: 39.5%; border: 1px solid rgba(255,255,255,.12); z-index: 1; }
.song-copy { position: relative; z-index: 1; }
.song-feature h2 { margin: 0; font-size: clamp(39px, 12vw, 64px); line-height: .96; letter-spacing: -.045em; }
.song-artist { margin: 8px 0 0; color: #d5d1ca; font-size: 15px; font-weight: 600; }
.song-reason { margin: 17px 0 21px; max-width: 520px; color: #c4c0b9; font-size: 14px; line-height: 1.5; }
.spotify-button {
  display: inline-flex; min-height: 48px; padding: 0 19px; align-items: center; gap: 9px;
  width: fit-content; border-radius: 999px; background: var(--spotify); color: #08110b;
  text-decoration: none; font-size: 14px; font-weight: 800;
}
.play-icon { font-size: 12px; }

.photo-gallery { margin-top: 30px; }
.gallery-heading { padding: 0 3px 15px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.gallery-heading h2 { margin: 0; font-size: clamp(30px, 8vw, 43px); line-height: 1; letter-spacing: -.035em; }
.gallery-counter { flex: 0 0 auto; margin: 0 0 3px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.photo-track { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.photo-track::-webkit-scrollbar { display: none; }
.photo-slide { flex: 0 0 100%; margin: 0; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; border-radius: 18px; background: var(--surface); }
.photo-slide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; background: #222; }
.photo-slide figcaption { min-height: 86px; padding: 14px 19px 15px; border-top: 1px solid var(--line); }
.photo-slide figcaption p { margin: 0 0 7px; color: #e0dcd4; font-family: Georgia, serif; font-size: 16px; line-height: 1.28; }
.photo-slide figcaption a { color: var(--muted); font-size: 11px; line-height: 1.4; text-decoration: none; }
.photo-info-toggle { display: none; }
.gallery-controls { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 2px 0; }
.gallery-dots { display: flex; align-items: center; gap: 7px; }
.gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: #4c4a47; transition: width .18s ease, background .18s ease; }
.gallery-dot.active { width: 20px; border-radius: 99px; background: #e06a6d; }
.gallery-arrows { display: flex; gap: 8px; }
.gallery-arrows button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 19px; cursor: pointer; }
.gallery-arrows button:disabled { opacity: .3; }

.reading { padding: 39px 3px 36px; border-bottom: 1px solid var(--line); }
.reading h2 { margin: 0 0 18px; font-size: clamp(29px, 8.5vw, 43px); line-height: 1.04; letter-spacing: -.035em; }
.reading > p:not(.overline) { margin: 0; color: #d0ccc4; font-family: Georgia, serif; font-size: 18px; line-height: 1.58; }
.source-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 18px; color: #8fc8e9; font-size: 13px; font-weight: 700; text-decoration: none; }
.source-link span { font-size: 16px; }
.news-section { margin-top: 48px; }
.news-section-heading { padding: 0 3px 15px; }
.news-section-heading h2 { margin: 0; font-size: clamp(34px, 9vw, 48px); line-height: 1; letter-spacing: -.04em; }
.news-block { margin-top: 0; padding: 29px 24px 26px; border: 0; border-radius: 18px; background: var(--ink); color: #171717; }
.news-block .overline { color: #a2272b; }
.news-block > p:not(.overline) { color: #42403d; }
.news-block .source-link { color: #0c557d; }
.news-meta { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-meta time { color: #716e69; font-size: 12px; }
.news-meta .source-link { margin: 0; }
.news-briefs { margin-top: 8px; }
.news-brief { padding: 25px 3px 23px; border-bottom: 1px solid var(--line); }
.news-brief-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-brief-meta span { color: #e06a6d; }
.news-brief h3 { margin: 10px 0 10px; max-width: 620px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 7vw, 31px); font-weight: 400; line-height: 1.08; letter-spacing: -.025em; }
.news-brief p { margin: 0; max-width: 640px; color: #b9b5ae; font-size: 14px; line-height: 1.5; }
.news-brief .source-link { margin-top: 10px; }

.edition-footer { padding: 29px 3px 4px; color: #817e78; font-size: 11px; line-height: 1.55; }
.edition-footer p { margin: 0 0 7px; }
.visit-counter { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--line); color: #9e9a92; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.visit-counter::before { content: "◌"; color: #70b8df; font-size: 13px; line-height: 0; }
.edition-dot { display: block; width: 6px; height: 6px; margin-bottom: 11px; border-radius: 50%; background: var(--blue); }

.archive-view h1, .about-view h1, .error-view h1 { margin: 0 0 23px; font-size: clamp(40px, 11vw, 64px); line-height: 1; letter-spacing: -.045em; }
.archive-lead { margin: -9px 0 27px; max-width: 520px; color: var(--muted); font-family: Georgia, serif; font-size: 17px; line-height: 1.45; }
.archive-search { margin-bottom: 8px; padding: 16px; display: grid; gap: 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.archive-search label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.archive-search input, .archive-search select { width: 100%; height: 46px; min-width: 0; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0e0e0e; color: var(--ink); font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; }
.archive-search input:focus, .archive-search select:focus { border-color: #70b8df; box-shadow: 0 0 0 2px rgba(112,184,223,.16); }
.archive-search input::placeholder { color: #6f6c67; }
.archive-search button { min-height: 46px; align-self: end; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; font-size: 13px; font-weight: 750; }
.archive-search-status { min-height: 18px; margin: 0 3px 20px; color: var(--muted); font-size: 11px; }
.photo-map-section { margin: 0 0 30px; padding: 20px; border-radius: 18px; overflow: hidden; background: #12191d; border: 1px solid rgba(112,184,223,.14); }
.photo-map-section > header { margin-bottom: 17px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.photo-map-section h2 { margin: 0; font-size: clamp(28px,8vw,42px); line-height: 1; letter-spacing: -.035em; }
.photo-map-section header > p { margin: 0 0 3px; color: #8fc8e9; font-size: 11px; white-space: nowrap; }
.archive-map { position: relative; width: 100%; aspect-ratio: 1000 / 330; min-height: 120px; }
.archive-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 24px rgba(0,0,0,.28)); }
.archive-map path { fill: #1f465a; stroke: #70b8df; stroke-width: 4; vector-effect: non-scaling-stroke; }
.map-markers { position: absolute; inset: 0; }
.map-marker { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.map-marker::after { content:""; position:absolute; width:18px; height:18px; left:13px; top:13px; border:3px solid #f5f1e8; border-radius:50%; box-sizing:border-box; background:var(--red); box-shadow:0 3px 12px rgba(0,0,0,.6); transition:transform .15s ease,background .15s ease; }
.map-marker:hover::after, .map-marker:focus-visible::after, .map-marker.active::after { transform: scale(1.35); background: #ff666a; }
.map-preview { margin-top: 17px; overflow: hidden; border-radius: 14px; background: #0b0f11; }
.map-preview img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #222; }
.map-preview-copy { padding: 15px 16px 16px; }
.map-preview-copy .overline { margin-bottom: 7px; }
.map-preview-copy h3 { margin: 0 0 7px; font-family: Georgia,serif; font-size: 23px; font-weight: 400; line-height: 1.06; }
.map-preview-copy p:not(.overline) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.map-preview-copy button { min-height: 44px; margin-top: 12px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; font-size: 12px; font-weight: 750; }
.archive-list { display: grid; gap: 20px; }
.archive-empty { grid-column:1/-1; margin:0; padding:24px; border:1px dashed var(--line); border-radius:16px; color:var(--muted); text-align:center; line-height:1.5; }
.archive-item { width: 100%; padding: 18px; border-radius: 18px; background: var(--surface); overflow: hidden; }
.archive-copy time { display: block; color: #e06a6d; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.archive-copy h2 { margin: 8px 0 0; font-size: clamp(25px, 7vw, 34px); line-height: 1.05; letter-spacing: -.03em; }
.archive-copy p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.archive-mosaic { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 78px); gap: 4px; overflow: hidden; border-radius: 13px; background: #222; }
.archive-photo { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; background: #222; }
.archive-photo.image-unavailable { background: #242424; }
.archive-photo:first-child { grid-column: span 2; grid-row: span 2; }
.archive-mosaic[data-count="10"] { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, 78px); }
.archive-mosaic[data-count="10"] .archive-photo:first-child { grid-column: auto; grid-row: auto; }
.archive-actions { margin-top: 13px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.archive-open, .archive-spotify { width: 100%; min-height: 46px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.archive-open { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.archive-spotify { border: 0; background: var(--spotify); color: #08110b; }
.archive-dialog {
  position: fixed;
  inset: max(12px, var(--safe-top)) max(12px, var(--safe-right)) max(12px, var(--safe-bottom)) max(12px, var(--safe-left));
  width: auto; max-width: 680px; height: auto; max-height: none; margin: auto;
  padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 90px rgba(0,0,0,.75);
}
.archive-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.archive-dialog-shell { width: 100%; height: 100%; max-height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.archive-dialog-shell::-webkit-scrollbar { display: none; }
.archive-dialog-header { position: sticky; z-index: 2; top: 0; min-height: 92px; padding: 20px 68px 17px 20px; background: rgba(21,21,21,.96); border-bottom: 1px solid var(--line); }
.archive-dialog-header .overline { margin-bottom: 7px; }
.archive-dialog-header h2 { margin: 0; font-size: clamp(24px, 7vw, 34px); line-height: 1.02; letter-spacing: -.03em; }
.archive-dialog-header button { position: absolute; top: 17px; right: 14px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.archive-dialog-photos { display: grid; gap: 18px; padding: 18px 18px calc(26px + var(--safe-bottom)); }
.archive-dialog-photo-card { overflow: hidden; border-radius: 16px; background: var(--surface-2); }
.archive-dialog-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #222; }
.archive-dialog-photo-copy { padding: 14px 16px 12px; }
.archive-dialog-photo-copy p { margin: 0; color: #e0dcd4; font-family: Georgia, serif; font-size: 16px; line-height: 1.3; }
.archive-photo-source { display: inline-flex; min-height: 44px; margin-top: 5px; align-items: center; color: #8fc8e9; font-size: 11px; line-height: 1.35; text-decoration: none; }
.about-lead { margin: 0 0 28px; color: #d0ccc4; font-family: Georgia, serif; font-size: 21px; line-height: 1.45; }
.method-list { margin: 0; }
.method-list div { padding: 19px 0; border-top: 1px solid var(--line); }
.method-list dt { margin-bottom: 6px; font-size: 13px; font-weight: 750; }
.method-list dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.privacy-note { margin-top: 29px; color: #8fc8e9; font-size: 13px; }

.loading-view, .error-view { min-height: 100%; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.loading-mark { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(to bottom, var(--red) 0 52%, var(--blue) 52%); animation: breathe 1.5s ease-in-out infinite; }
.loading-view p { color: var(--muted); font-size: 13px; }
.error-view h1 { max-width: 420px; }
.error-view p { color: var(--muted); line-height: 1.5; }
.error-view button { min-height: 46px; margin-top: 14px; padding: 0 19px; border: 0; border-radius: 999px; background: var(--ink); color: #111; font-weight: 750; }

.tabbar {
  position: absolute; z-index: 10; inset: auto 0 0; height: calc(var(--nav) + var(--safe-bottom));
  padding: 0 max(12px, var(--safe-right)) var(--safe-bottom) max(12px, var(--safe-left));
  display: grid; grid-template-columns: repeat(3, minmax(110px, 220px)); justify-content: center; align-items: stretch;
  background: #101010; border-top: 1px solid var(--line);
}
@media (max-width: 700px) {
  .tabbar { grid-template-columns: repeat(3, 1fr); }
}
.tab { min-width: 44px; min-height: 44px; border: 0; background: none; color: #7f7d78; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 700; cursor: pointer; }
.tab span { height: 17px; font-size: 16px; line-height: 1; }
.tab.active { color: var(--ink); }
.tab.active span { color: #df5559; }

.install-hint { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(var(--nav) + var(--safe-bottom) + 12px); max-width: 480px; margin: auto; padding: 18px 46px 17px 18px; background: #f5f1e8; color: #171717; border-radius: 16px; box-shadow: 0 16px 50px rgba(0,0,0,.55); }
.install-hint strong { font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.install-hint p { margin: 6px 0 0; color: #5c5955; font-size: 12px; line-height: 1.4; }
.install-hint button { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: none; color: #555; font-size: 25px; }

:focus-visible { outline: 2px solid #70b8df; outline-offset: 3px; }
.view:focus-visible { outline: none; }
@keyframes breathe { 50% { transform: scale(.92); opacity: .72; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (min-width: 1000px) {
  :root { --top: 72px; --nav: 0px; }
  .topbar {
    padding-inline: 34px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  }
  .desktop-nav { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .desktop-nav-button { min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 750; transition: color .18s ease, background .18s ease, border-color .18s ease; }
  .desktop-nav-button:hover { color: var(--ink); background: var(--surface); }
  .desktop-nav-button.active { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
  .topbar-actions { justify-self: end; gap: 12px; }
  .topbar-date { font-size: 11px; }
  .content { bottom: 0; }
  .tabbar { display: none; }
  .view { width: min(calc(100% - clamp(44px, 6vw, 112px)), 1440px); padding: clamp(32px, 3vw, 48px) 0 clamp(68px, 6vw, 96px); }

  #todayView:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(320px, .78fr);
    column-gap: clamp(20px, 2.3vw, 38px);
  }
  .edition-heading {
    grid-column: 1;
    grid-row: 1;
    min-height: clamp(390px, 32vw, 460px);
    padding: clamp(24px, 2.5vw, 36px) clamp(24px, 3.5vw, 52px) clamp(30px, 3vw, 44px) 3px;
    border-top: 4px solid var(--red);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .edition-heading h1 { max-width: 900px; font-size: clamp(56px, 5.45vw, 88px); line-height: .96; }
  .intro { max-width: 820px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(16px, 1.3vw, 19px); }
  .song-feature { grid-column: 2; grid-row: 1; min-height: clamp(390px, 32vw, 460px); height: 100%; padding: clamp(24px, 2.5vw, 34px); }
  .song-feature h2 { font-size: clamp(42px, 4vw, 58px); }
  .record { width: clamp(260px, 24vw, 340px); right: clamp(-88px, -6vw, -58px); top: clamp(-72px, -5vw, -48px); }

  .photo-gallery { grid-column: 1 / -1; margin-top: clamp(22px, 2.2vw, 34px); }
  .gallery-heading { padding-bottom: 17px; }
  .gallery-heading h2 { font-size: clamp(38px, 3.5vw, 50px); }
  .gallery-counter { display: none; }
  .photo-track {
    display: grid;
    gap: 8px;
    overflow: visible;
    border-radius: 0;
  }
  .photo-track[data-count="5"] { grid-template-columns: 1.35fr .65fr .65fr; grid-template-rows: repeat(2, 240px); }
  .photo-track[data-count="10"] { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(3, clamp(174px, 14vw, 210px)); grid-auto-flow: dense; }
  .photo-slide {
    min-width: 0;
    height: 100%;
    border-radius: 14px;
    position: relative;
    scroll-snap-align: none;
  }
  .photo-track[data-count="5"] .photo-slide:first-child { grid-row: 1 / 3; }
  .photo-track[data-count="10"] .photo-slide:first-child { grid-column: span 2; grid-row: span 2; }
  .photo-track[data-count="10"] .photo-slide:nth-child(2) { grid-column: span 2; }
  .photo-track[data-count="10"] .photo-slide:nth-child(3) { grid-row: span 2; }
  .photo-slide img { width: 100%; height: 100%; aspect-ratio: auto; }
  .photo-info-toggle {
    display: grid; place-items: center; position: absolute; z-index: 3; top: 10px; right: 10px;
    width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
    background: rgba(8,8,8,.58); color: rgba(255,255,255,.9); font: 700 15px/1 Georgia, serif;
    box-shadow: 0 5px 18px rgba(0,0,0,.28); backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(-3px); transition: opacity .16s ease, transform .16s ease, background .16s ease;
    cursor: pointer;
  }
  .photo-slide:hover .photo-info-toggle, .photo-slide:focus-within .photo-info-toggle, .photo-slide.details-open .photo-info-toggle { opacity: 1; transform: translateY(0); }
  .photo-info-toggle:hover { background: rgba(8,8,8,.8); }
  .photo-slide figcaption {
    position: absolute;
    inset: auto 0 0;
    min-height: 0;
    padding: 42px 14px 12px;
    border: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.86));
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .photo-slide:hover figcaption, .photo-slide.details-open figcaption, .photo-slide figcaption:focus-within { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .photo-slide figcaption p {
    display: -webkit-box; margin-bottom: 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    font-size: clamp(12px, .95vw, 14px); line-height: 1.22;
  }
  .photo-slide figcaption a { display: block; overflow-wrap: anywhere; color: #c5c1ba; font-size: 10px; line-height: 1.3; }
  .gallery-controls { display: none; }

  .story-block { grid-column: 1; padding: 56px 36px 42px 3px; }
  .story-block h2 { font-size: 48px; }
  .story-block > p:not(.overline) { font-size: 19px; }
  .news-section { grid-column: 2; margin-top: 48px; }
  .news-section-heading h2 { font-size: 48px; }
  .news-block { padding: 29px 27px 27px; }
  .news-block h2 { font-size: 38px; }
  .news-briefs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 18px;
    border-block: 1px solid var(--line);
  }
  .news-brief { min-width: 0; padding: 26px 20px 24px; border-right: 1px solid var(--line); border-bottom: 0; }
  .news-brief:last-child { border-right: 0; }
  .news-brief h3 { font-size: 25px; }
  .edition-footer { grid-column: 1 / -1; }

  .archive-view, .about-view { width: min(calc(100% - clamp(44px, 6vw, 112px)), 1240px); }
  .archive-search { grid-template-columns: minmax(280px,2fr) minmax(150px,1fr) minmax(170px,1fr) auto; align-items: end; }
  .photo-map-section { padding: 26px 28px; }
  .map-preview { display: grid; grid-template-columns: minmax(260px,.85fr) minmax(280px,1.15fr); }
  .map-preview img { height: 100%; aspect-ratio: auto; }
  .map-preview-copy { align-self: center; padding: 25px; }
  .archive-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .archive-item { display: flex; flex-direction: column; }
  .archive-actions { margin-top: auto; }
  .archive-mosaic { grid-template-rows: repeat(2, 98px); }
  .archive-dialog { max-width: 1040px; }
  .archive-dialog-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-dialog-photo-card:first-child { grid-column: 1 / -1; }
}

@media (min-width: 1000px) and (max-width: 1199px) {
  #todayView:not([hidden]) { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); }
  .edition-heading, .song-feature { min-height: 380px; }
  .edition-heading h1 { font-size: clamp(54px, 5.7vw, 68px); }
  .song-feature h2 { font-size: clamp(40px, 4.3vw, 48px); }
  .song-reason { font-size: 13px; }
  .photo-track[data-count="10"] { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, 168px); }
}

@media (min-width: 1000px) and (hover: none) and (pointer: coarse) {
  .photo-info-toggle { opacity: .72; transform: none; }
}

@media (min-width: 760px) and (max-width: 999px) {
  .view { padding-top: 45px; }
  .song-feature { min-height: 430px; padding: 38px; }
  .photo-slide img { aspect-ratio: 3 / 2; }
  .reading { padding-inline: 35px; }
  .archive-mosaic { grid-template-rows: repeat(2, 118px); }
}
@media (max-height: 700px) and (max-width: 520px) {
  :root { --top: 52px; --nav: 61px; }
  .view { padding-top: 22px; }
  .edition-heading { padding-bottom: 21px; }
  .edition-heading h1 { font-size: 34px; }
  .song-feature { min-height: 330px; }
}
@media (max-width: 350px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand-mark { width: 23px; height: 23px; }
  .topbar-date { font-size: 9px; letter-spacing: 0; }
}
@media (max-width: 375px) {
  .topbar-actions { gap: 3px; }
  .topbar-date { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.15; }
  .topbar-date-separator { display: none; }
}
@media (min-width: 520px) { .topbar-date { font-size: 12px; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .spotify-playlist-button.busy svg { animation: none; opacity: .55; } }
