:root {
  --bg: #f6f4f0;
  --fg: #1f1d1a;
  --muted: #6b665e;
  --line: #e2ddd4;
  --card: #fff;
  --accent: #a4471f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --fg: #ece8e1;
    --muted: #9c968c;
    --line: #2a2825;
    --card: #1c1b19;
    --accent: #e0895e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
main, .hero, .bar, .foot { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

.hero { padding-top: 56px; padding-bottom: 8px; }
.hero h1, .album-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
}
.lead { max-width: 46em; font-size: 1.1rem; margin: 0 0 12px; }
.meta { color: var(--muted); margin: 0 0 24px; font-size: .95rem; }
.years { display: flex; flex-wrap: wrap; gap: 4px 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.years a { text-decoration: none; color: var(--muted); }
.years a:hover { color: var(--accent); }

.year { scroll-margin-top: 16px; }
.year h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin: 40px 0 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.albums {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.albums a { display: flex; flex-direction: column; text-decoration: none; }
.albums img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px; background: var(--line); margin-bottom: 8px;
  transition: opacity .2s;
}
.albums a:hover img { opacity: .85; }
.albums a:hover .t { color: var(--accent); }
.albums .t { font-weight: 600; line-height: 1.3; }
.albums .sub, .albums .n { color: var(--muted); font-size: .9rem; }

.bar { padding-top: 20px; }
.home { color: var(--muted); text-decoration: none; }
.home:hover { color: var(--accent); }
.album-head { padding: 24px 0 8px; }
.desc { max-width: 46em; }
.desc p { margin: 0 0 10px; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.grid a { display: block; }
.grid img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  background: var(--line); border-radius: 3px;
}
.grid a:hover img, .grid a:focus-visible img { opacity: .85; }
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .albums { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.pager { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0; }
.pager a { color: var(--muted); text-decoration: none; max-width: 48%; }
.pager a:hover { color: var(--accent); }
.foot { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; padding-bottom: 32px; }
.foot p { margin: 0; }
.nf { padding-top: 80px; min-height: 50vh; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(10, 10, 10, .96); color: #eee;
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y pinch-zoom;
}
.lb[hidden] { display: none; }
.lb img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; user-select: none; }
.lb button {
  position: absolute; border: 0; background: rgba(0, 0, 0, .35); color: #eee;
  font: 28px/1 system-ui, sans-serif; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
}
.lb button:hover, .lb button:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
.lb .x { top: 12px; right: 12px; }
.lb .p { left: 12px; top: calc(50% - 24px); }
.lb .n { right: 12px; top: calc(50% - 24px); }
.lb .c { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 12px; background: rgba(0, 0, 0, .55); font-size: .85rem; color: #ddd; }
@media (hover: none) { .lb .p, .lb .n { display: none; } }
body.lb-open { overflow: hidden; }
