/* Vinyl Curator archive site — single stylesheet, no frameworks. */

:root {
  --paper: #faf7f2;
  --card: #ffffff;
  --ink: #211d18;
  --muted: #6d655a;
  --line: #e4ddd2;
  --accent: #a4581c;
  --accent-ink: #7c3f10;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17150f;
    --card: #201d16;
    --ink: #ece7de;
    --muted: #a89d8d;
    --line: #38332a;
    --accent: #d98b4a;
    --accent-ink: #e8a266;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent); }

/* header / footer */
.site-head { border-bottom: 1px solid var(--line); }
.site-head nav {
  max-width: 62rem; margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; gap: 1.5rem; align-items: baseline;
}
.site-head a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.site-head a[aria-current] { color: var(--ink); }
.site-head .brand {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  letter-spacing: 0.01em; margin-right: auto;
}
.site-foot { border-top: 1px solid var(--line); margin-top: 4rem; }
.site-foot p {
  max-width: 62rem; margin: 0 auto; padding: 0.9rem 1.25rem;
  color: var(--muted); font-size: 0.85rem;
}
.site-foot .method { padding-bottom: 0; }

main { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

h1 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0.2rem 0 0.6rem; }
h2 {
  font-family: var(--serif); font-weight: 500; font-size: 1.25rem;
  margin: 2.4rem 0 0.7rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.lede { color: var(--muted); max-width: 40rem; }

/* landing */
.landing .hero { padding: 5rem 0 3rem; }
.landing h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.landing .contact { color: var(--muted); font-size: 0.95rem; margin-top: 2.2rem; }
.button {
  display: inline-block; margin-top: 1rem; padding: 0.65rem 1.2rem;
  border: 1px solid var(--accent-ink); border-radius: 999px;
  text-decoration: none; font-size: 0.95rem;
}

/* archive index */
.archive-head { padding-top: 2.5rem; }
.archive-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.filter-row { margin: 1.2rem 0 0; }
#filter {
  width: 100%; max-width: 26rem; padding: 0.55rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 0.95rem;
}
#filter:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.card-grid {
  margin-top: 1.8rem;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
}
.card {
  text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: border-color 120ms ease;
}
.card:hover { border-color: var(--accent); }
.card .cover { aspect-ratio: 1; background: var(--line); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { padding: 0.65rem 0.8rem 0.8rem; }
.card .a { font-size: 0.8rem; color: var(--muted); margin: 0; }
.card .t { font-family: var(--serif); font-size: 0.98rem; line-height: 1.3; margin: 0.1rem 0 0.25rem; }
.card .y { font-size: 0.78rem; color: var(--muted); margin: 0; }
.no-match { color: var(--muted); padding: 2rem 0; }

/* album page */
.album-head { padding-top: 2.5rem; }
.album-head .artist {
  margin: 0; color: var(--muted); font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.album-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.album-head .subtitle { color: var(--muted); margin: 0; }

.gallery { margin-top: 1.8rem; }
.gallery .hero-shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery .strip {
  display: flex; gap: 0.6rem; margin-top: 0.6rem; overflow-x: auto;
  padding-bottom: 0.3rem; scrollbar-width: thin;
}
.gallery .strip img {
  height: 5.5rem; width: auto; border-radius: 6px; border: 1px solid var(--line);
  cursor: zoom-in; flex: 0 0 auto;
}
.gallery .hero-shot img { cursor: zoom-in; width: 100%; }

.details table { border-collapse: collapse; width: 100%; max-width: 40rem; }
.details th, .details td {
  text-align: left; vertical-align: top; padding: 0.35rem 0.9rem 0.35rem 0;
  border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.details th { color: var(--muted); font-weight: 500; white-space: nowrap; width: 11rem; }

.matrix pre, .chronology pre {
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.7;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.9rem 1.1rem; overflow-x: auto; white-space: pre-wrap; margin: 0;
}

.prose { white-space: pre-line; max-width: 44rem; }

.tracklist { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.tracklist .side h3 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 0 0 0.3rem; font-weight: 600;
}
.tracklist .side pre {
  margin: 0; font: inherit; font-size: 0.95rem; white-space: pre-line;
}

.condition dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.2rem; margin: 0; }
.condition dt { color: var(--muted); font-size: 0.95rem; }
.condition dd { margin: 0; font-size: 0.95rem; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10, 8, 5, 0.93);
  display: flex; align-items: center; justify-content: center;
  z-index: 10; cursor: zoom-out; padding: 1rem 4.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.lightbox figure img {
  max-width: 100%; max-height: calc(100vh - 6rem);
  width: auto; height: auto; cursor: pointer;
}
.lightbox figcaption {
  display: flex; gap: 1.2rem; align-items: baseline;
  color: #d8d0c3; font-size: 0.88rem;
}
.lightbox .lb-count { color: #948b7c; font-size: 0.8rem; }
.lb-btn, .lb-close {
  position: absolute; z-index: 11; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #f2ede4;
  border: 0; border-radius: 999px; font-family: inherit;
}
.lb-btn {
  top: 50%; transform: translateY(-50%);
  width: 2.9rem; height: 2.9rem; font-size: 1.9rem; line-height: 1;
}
.lb-btn:hover, .lb-close:hover { background: rgba(255, 255, 255, 0.24); }
.lb-prev { left: 0.9rem; }
.lb-next { right: 0.9rem; }
.lb-close {
  top: 0.9rem; right: 0.9rem;
  width: 2.4rem; height: 2.4rem; font-size: 1.4rem; line-height: 1;
}
@media (max-width: 40rem) {
  .lightbox { padding: 0.5rem 3.2rem; }
  .lb-btn { width: 2.4rem; height: 2.4rem; font-size: 1.6rem; }
}
