/* Hallmark · genre: editorial · macrostructure: Ecosystem Index · theme: studied-DNA (source: https://creativeminseo.com/) · enrichment: user-supplied album covers · nav: N1 · footer: Ft2 · contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · icons: pass (30) · mobile: pass (34, 49, 50–57)
 * paper: oklch(98% 0.005 85) · accent: oklch(48% 0.22 267) · display: Cabinet Grotesk · body: General Sans · label: IBM Plex Mono · studied: yes · DNA-source: public reference URL
 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */

* { box-sizing: border-box; }

html,
body { overflow-x: clip; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.5;
  margin: 0;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: var(--space-2xs);
}

a:active { transform: translateY(1px); }

a[aria-disabled="true"] {
  color: var(--color-muted);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

.skip-link {
  background: var(--color-ink);
  color: var(--color-paper);
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  position: fixed;
  top: calc(var(--space-4xl) * -1);
  z-index: 2;
}

.skip-link:focus { top: var(--space-md); }

.issue { min-height: 100dvh; }

.topbar {
  background: var(--color-paper);
  border-block-end: var(--rule) solid var(--color-rule);
  position: sticky;
  top: 0;
  z-index: 1;
}

.topbar__inner,
.archive-main {
  margin-inline: auto;
  max-width: 76rem;
  padding-inline: clamp(var(--space-md), 4vw, var(--space-2xl));
}

.topbar__inner {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 3rem;
}

.topbar__name,
.topbar__nav a {
  align-items: center;
  display: inline-flex;
  min-height: 3rem;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.06em;
  padding-inline-end: var(--space-md);
}

.record__index,
.book__index {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0;
}

.books__head p,
.listening__head p {
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
}

.topbar__nav { display: flex; }

.topbar__nav a {
  border-inline-start: var(--rule) solid var(--color-rule);
  font-size: var(--text-sm);
  padding-inline: var(--space-sm);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

.visually-hidden {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.books h2,
.listening h2,
.book h3,
.record h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.06em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.books,
.listening {
  padding-block: var(--space-xl) clamp(var(--space-3xl), 10vw, var(--space-4xl));
  scroll-margin-top: calc(3rem + var(--space-md));
}

.books__head,
.listening__head {
  border-block-end: var(--rule) solid var(--color-rule);
  display: block;
  padding-block-end: var(--space-sm);
}

.books h2,
.listening h2 { font-size: clamp(var(--text-lg), 3.5vw, var(--text-xl)); line-height: 1; margin: 0; }

.books__head p,
.listening__head p { margin-block-start: var(--space-xs); white-space: nowrap; }

.book-reel-window {
  margin-block-start: var(--space-xl);
  overflow: clip;
}

.book-reel {
  display: flex;
  width: max-content;
}

.book-reel--ready {
  animation: sleeve-reel var(--dur-book-reel) linear infinite;
  will-change: transform;
}

.book-reel--paused { animation-play-state: paused; }

.book-list {
  align-items: stretch;
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0 var(--space-xl) 0 0;
}

.year-marker {
  align-items: center;
  display: flex;
  flex: 0 0 clamp(9.5rem, 20vw, 16rem);
  justify-content: center;
  padding-inline: var(--space-xs);
}

.year-marker span {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.1em;
  line-height: 0.8;
  white-space: nowrap;
}

.book {
  flex: 0 0 clamp(10rem, 20vw, 15rem);
  position: relative;
}

.book__index { margin-block-end: var(--space-xs); }

.book figure { margin: 0; min-width: 0; }

.book__trigger {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 0;
  text-align: start;
  width: 100%;
}

.book__trigger:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.book img {
  aspect-ratio: 2 / 3;
  background: var(--color-paper-alt);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.book__cover-fallback {
  align-items: flex-end;
  aspect-ratio: 2 / 3;
  background: var(--color-paper-alt);
  border: var(--rule) solid var(--color-rule);
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.88;
  overflow-wrap: anywhere;
  padding: var(--space-sm);
  width: 100%;
}


.book figcaption {
  border-block-end: var(--rule) solid var(--color-rule);
  display: grid;
  gap: var(--space-2xs);
  padding-block: var(--space-sm) var(--space-md);
}

.book h3 { font-size: var(--text-md); line-height: 1.05; margin: 0; }

.book__author { color: var(--color-muted); font-size: var(--text-sm); margin: 0; }

.book__date {
  color: var(--color-muted);
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  margin-block-start: var(--space-2xs);
}

.reading-dialog {
  background: var(--color-paper);
  border: var(--rule) solid var(--color-ink);
  color: var(--color-ink);
  max-height: calc(100dvh - var(--space-xl));
  max-width: min(34rem, calc(100% - var(--space-xl)));
  overflow: auto;
  padding: 0;
}

.reading-dialog::backdrop { background: rgb(16 16 16 / 48%); }

.reading-dialog__content {
  margin: 0;
  padding: var(--space-xl);
  position: relative;
}

.reading-dialog__close {
  background: var(--color-paper);
  border: var(--rule) solid var(--color-ink);
  color: var(--color-ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-2xs) var(--space-xs);
  position: absolute;
  right: var(--space-sm);
  top: var(--space-sm);
}

.reading-dialog__close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.reading-dialog__body { padding-inline-end: var(--space-3xl); }

.reading-dialog__eyebrow,
.reading-dialog__meta dt,
.reading-dialog__note h3 {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0;
}

.reading-dialog__index { margin-inline-start: var(--space-2xs); }

.reading-dialog h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 7vw, var(--text-2xl));
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.95;
  margin: var(--space-lg) 0 var(--space-sm);
  overflow-wrap: anywhere;
}

.reading-dialog__author { color: var(--color-muted); margin: 0; }

.reading-dialog__meta {
  border-block: var(--rule) solid var(--color-rule);
  margin: var(--space-lg) 0 0;
  padding-block: var(--space-sm);
}

.reading-dialog__meta div { display: flex; gap: var(--space-md); justify-content: space-between; }

.reading-dialog__meta dd { font-size: var(--text-sm); margin: 0; }

.reading-dialog__note { margin-block-start: var(--space-lg); }

.reading-dialog__note-copy { font-size: var(--text-sm); margin: var(--space-xs) 0 0; }

.album-reel-window {
  margin-block-start: var(--space-xl);
  overflow: clip;
}

.album-reel {
  display: flex;
  width: max-content;
}

.album-reel--ready {
  animation: sleeve-reel var(--dur-reel) linear infinite;
  will-change: transform;
}

.record-list {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0 var(--space-xl) 0 0;
}

.record {
  flex: 0 0 clamp(13rem, 28vw, 22rem);
  position: relative;
}

.record__index { margin-block-end: var(--space-xs); }

.record figure { margin: 0; min-width: 0; }

.record img { aspect-ratio: 1; display: block; height: auto; object-fit: cover; width: 100%; }

.record figcaption {
  border-block-end: var(--rule) solid var(--color-rule);
  display: grid;
  gap: var(--space-2xs);
  padding-block: var(--space-sm) var(--space-md);
}

.record h3 { font-size: var(--text-lg); line-height: 1.05; margin: 0; }

.record__artist { color: var(--color-muted); font-size: var(--text-sm); margin: 0; }

.record__date {
  color: var(--color-muted);
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  margin-block-start: var(--space-2xs);
}

@keyframes sleeve-reel {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (hover: hover) and (pointer: fine) {
  .topbar__nav a:hover { background: var(--color-ink); color: var(--color-paper); }
}

@media (min-width: 40rem) {
  .topbar__nav a { padding-inline: var(--space-md); }

  .book-list { gap: var(--space-2xl); padding-inline-end: var(--space-2xl); }

  .record-list { gap: var(--space-2xl); padding-inline-end: var(--space-2xl); }

}

@media (min-width: 60rem) {
  .album-reel-window { margin-inline-end: calc(clamp(var(--space-md), 4vw, var(--space-2xl)) * -1); }

  .book-reel-window { margin-inline-end: calc(clamp(var(--space-md), 4vw, var(--space-2xl)) * -1); }

  .book { flex-basis: clamp(12rem, 18vw, 15rem); }

  .record { flex-basis: clamp(16rem, 25vw, 22rem); }

}

@media (pointer: coarse) {
  .topbar__nav a { min-height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .album-reel--ready,
  .book-reel--ready { animation: none; transform: none; }

  *,
  *::before,
  *::after { transition-duration: 0ms !important; }
}
