/*
Theme Name: Catalogus
Description: Klassiekemuziek.tv theme built from prototype B "Catalogus".
Version: 0.1.0
Requires PHP: 8.3
Text Domain: catalogus
*/

:root {
  --head-h: 73px;
  --black: #0a0a0a;
  --black-2: #151514;
  --ink: #f2f2ee;
  --ink-2: #b4b4ae;
  --ink-3: #8a8a84;
  --hair: rgba(242, 242, 238, 0.18);
  --hair-strong: rgba(242, 242, 238, 0.45);

  --sleeve: #f5f5f2;
  --sleeve-ink: #111110;
  --sleeve-ink-2: #474744;
  --sleeve-hair: rgba(17, 17, 16, 0.16);
  --field: #fff;

  --focus: var(--ink);
  --f-num: 'Archivo', system-ui, sans-serif;
  --f-caps: 'Archivo', system-ui, sans-serif;
  --f-body: 'Archivo', system-ui, sans-serif;
  --num-scale: 1;
  --on-cc: #0a0a0a;
  --sleeve-bg: #000;
  --thumb: #4a4a47;
  --thumb-hover: #6d6d68;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--thumb) var(--black); scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
::selection { background: var(--ink); color: var(--black); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--thumb); border: 3px solid var(--black); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--thumb-hover); }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 60; background: var(--ink); color: var(--black); padding: 10px 14px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.caps {
  font-family: var(--f-caps); font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; line-height: 1.3;
}
.num { font-family: var(--f-num); font-stretch: 62%; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid var(--hair); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; margin-right: auto; }
.brand svg { width: 18px; height: 26px; fill: currentColor; }
.brand span { font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; letter-spacing: 0.08em; font-size: 15px; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px;
  font: inherit; font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--black);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn:hover { background: var(--cc, var(--ink)); border-color: var(--cc, var(--ink)); color: var(--on-cc); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair-strong); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px);
  min-height: min(calc(100svh - 73px), 940px); padding-top: clamp(24px, 4vh, 48px);
}
.today { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; padding-bottom: clamp(32px, 5vh, 56px); }
.bignum {
  display: block; font-family: var(--f-num); font-stretch: 62%; font-weight: 900; line-height: 0.78; letter-spacing: -0.03em;
  font-size: calc(clamp(11rem, 25vw, 27rem) * var(--num-scale)); margin: 0 0 0.14em -0.04em; color: var(--ink);
}
.decoded { border-top: 1px solid var(--hair-strong); padding-top: 18px; }
.decoded h1 {
  margin: 18px 0 22px; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance;
}
.decoded .comp { display: block; font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.6em; margin-bottom: 4px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* The figure on its baseline */
.stage { position: relative; display: flex; align-items: flex-end; justify-content: center; min-width: 0; border-bottom: 1px solid var(--hair-strong); overflow: hidden; }
.stage img { display: block; height: auto; margin-bottom: -1px; }
/* The legacy header image is a wide photo, not a cut-out: it fills the stage until the cut-outs arrive. */
.stage img.banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; margin: 0; }

.sleeve .prefix { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); margin-bottom: auto; padding-bottom: 24px; }
.sleeve .stage-col { display: flex; flex-direction: column; min-width: 0; }
.sleeve .stage { flex: 1; min-height: 420px; }
.year { color: var(--ink-2); font-size: 16px; padding: 16px 0 clamp(32px, 5vh, 56px); }
.year h2 { margin: 0 0 8px; }
.year ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.year li { padding: 6px 0; display: grid; grid-template-columns: 5ch 1fr; gap: 12px; }
.year li b { font-family: var(--f-num); font-stretch: 62%; font-weight: 800; font-size: 20px; color: var(--ink); }

/* ---------- Bands ---------- */
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.band-head h2 {
  margin: 0; font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(30px, 4.2vw, 64px); line-height: 0.95;
}

/* ---------- Inner sleeve ---------- */
.inner { background: var(--sleeve); color: var(--sleeve-ink); --focus: #0a0a0a; }
.inner ::selection { background: #0a0a0a; color: var(--sleeve); }
.inner .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68ch) minmax(260px, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.inner .side-no { font-family: var(--f-num); font-stretch: 62%; font-weight: 900; font-size: 88px; line-height: .8; }
.inner .side-bar { height: 10px; width: 88px; background: var(--cc, var(--sleeve-ink)); margin: 14px 0 10px; }
.inner .aside-no .caps { color: var(--sleeve-ink-2); }
.inner .text { font-size: 20px; line-height: 1.65; min-width: 0; overflow-wrap: break-word; }
.inner .text h2 { font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 26px; line-height: 1.1; margin: 0 0 28px; }
.inner .text p { margin: 0 0 1.1em; }
.inner .text p:first-of-type::first-line { font-weight: 600; }
.inner .text img { height: auto; }
/* Editors typed the remark line as an inline 8pt span; the reading size rule overrides it. */
.inner .text p:has(> span[style*="8pt"]:only-child) { font-size: 17px; line-height: 1.5; color: var(--sleeve-ink-2); border-top: 1px solid var(--sleeve-hair); padding-top: 16px; margin-top: 32px; }
.inner .text span[style*="8pt"] { font-size: inherit !important; }
.liner { align-self: start; position: sticky; top: calc(var(--head-h) + 24px); }
.liner h2 { margin: 0 0 14px; font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.liner h2 i { display: block; width: 28px; height: 10px; background: var(--cc, var(--sleeve-ink)); }
.liner ol { list-style: none; margin: 0; padding: 0; counter-reset: nb; }
.liner li { counter-increment: nb; border-top: 1px solid var(--sleeve-hair); padding: 14px 0 16px; display: grid; grid-template-columns: 2.4ch 1fr; gap: 10px; font-size: 17px; line-height: 1.5; }
.liner li::before { content: counter(nb); font-family: var(--f-num); font-stretch: 62%; font-weight: 800; font-size: 20px; line-height: 1.25; }

/* ---------- Luister ---------- */
.listen { border-top: 1px solid var(--hair); }
.listen .wrap { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.listen .band-head { margin-bottom: 24px; }
/* The player stays a black object on every ground. */
.player {
  --black: #0a0a0a; --ink: #f2f2ee; --ink-2: #b4b4ae; --ink-3: #8a8a84;
  --hair: rgba(242, 242, 238, 0.18); --hair-strong: rgba(242, 242, 238, 0.45); --focus: #f2f2ee;
  position: relative; aspect-ratio: 16 / 9; background: var(--sleeve-bg); width: 100%;
}
.player + .player { margin-top: 24px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--sleeve-bg); color: var(--ink);
  display: grid; place-items: center; overflow: hidden;
}
.facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.55); transition: filter .5s var(--ease), transform .8s var(--ease); }
.facade .play {
  position: relative; display: inline-flex; align-items: center; gap: 16px; background: var(--ink); color: var(--black); min-height: 72px; padding: 0 32px;
  font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 16px;
  transition: background-color .2s var(--ease);
}
.facade .play svg { width: 20px; height: 20px; fill: currentColor; }
.facade:hover img { filter: grayscale(.2) contrast(1.05) brightness(.7); transform: scale(1.015); }
.facade:hover .play { background: var(--cc, var(--ink)); }
.player-note { color: var(--ink-3); font-size: 15px; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 15px; }
.site-foot .wrap { padding-top: 32px; padding-bottom: 32px; }
.site-foot p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .inner .wrap { grid-template-columns: minmax(0, 68ch) minmax(240px, 1fr); }
  .inner .aside-no { display: none; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .today { padding-bottom: 32px; }
  .bignum { font-size: clamp(9rem, 44vw, 18rem); }
  .inner .wrap { grid-template-columns: minmax(0, 1fr); }
  .liner { position: static; }
  .sleeve .stage { min-height: 0; }
  .stage img.banner { position: static; height: auto; }
}
@media (max-width: 620px) {
  .brand span { font-size: 13px; letter-spacing: 0.06em; }
  .inner .text { font-size: 19px; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .year ul { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
