/* Home page: Werk van de dag and Het archief. Prototype B, scoped to .home-today and .home-archive. */

/* ---------- Werk van de dag ---------- */
.home-today .code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.home-today .code .bar { display: block; width: clamp(120px, 14vw, 200px); height: 14px; background: var(--cc, var(--ink)); flex: none; }
.home-today .code .cat { font-family: var(--f-caps); font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--ink-2); }
.home-today .bignum a { text-decoration: none; }
.home-today .decoded h1 { margin: 18px 0 8px; }
.home-today .decoded .day { margin: 0 0 14px; font-size: 16px; color: var(--ink-2); }
.home-today .decoded .day strong { color: var(--ink); font-weight: 700; }
.home-today .decoded p { margin: 0 0 22px; color: var(--ink-2); max-width: 46ch; font-size: 18px; }
.home-today .decoded p.day { margin-bottom: 14px; }
.home-today .stage img:not(.banner) { width: min(100%, 780px); aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .home-today .stage img.rise { animation: kmtv-rise 1.6s var(--ease) both; }
  @keyframes kmtv-rise { from { transform: translateY(14%); } to { transform: none; } }
}

/* ---------- Het archief ---------- */
.band { border-top: 1px solid var(--hair); padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 80px); }
.band-head p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.home-archive .tools { display: grid; grid-template-columns: 1fr minmax(240px, 420px); gap: 16px 32px; align-items: end; margin-bottom: 20px; }
.home-archive .active-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 52px; color: var(--ink-2); }
.home-archive .search label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 15px; }
.home-archive .search .field { position: relative; }
.home-archive .search input {
  width: 100%; min-height: 52px; padding: 0 16px 0 46px; background: var(--black-2); color: var(--ink);
  border: 1px solid var(--hair-strong); font: inherit; font-size: 18px; border-radius: 0; caret-color: var(--ink);
}
.home-archive .search input::placeholder { color: var(--ink-3); }
.home-archive .search svg { position: absolute; left: 15px; top: 16px; width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2; pointer-events: none; }

/* The links to the blocks of 100. Without JavaScript they jump to the block; every block is on the page. */
.home-archive .blocks { display: flex; flex-wrap: wrap; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: clamp(24px, 3vw, 40px); }
.home-archive .blocks a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--ink-2); text-decoration: none;
  border-right: 1px solid var(--hair); font-family: var(--f-num); font-stretch: 62%; font-weight: 700; font-size: 19px;
}
.home-archive .blocks a:hover { color: var(--black); background: var(--ink); }

.home-archive .index-block { margin-bottom: clamp(32px, 4vw, 56px); scroll-margin-top: calc(var(--head-h) + 16px); }
.home-archive .index-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 8px; padding-bottom: 10px;
  border-bottom: 1px solid var(--hair-strong); font-weight: 400;
}
.home-archive .index-head .num { font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.home-archive .index-head .count { color: var(--ink-2); font-size: 15px; }
.home-archive .index { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 3vw, 48px); }
.home-archive .index li { break-inside: avoid; border-bottom: 1px solid var(--hair); }
.home-archive .index a {
  display: grid; grid-template-columns: 5ch minmax(0, 1fr); gap: 14px; align-items: center; min-height: 48px; padding: 6px 0;
  text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.home-archive .index .no { font-family: var(--f-num); font-stretch: 62%; font-weight: 800; font-size: 22px; }
.home-archive .index .tt { min-width: 0; font-size: 17px; line-height: 1.3; }
.home-archive .index .tt b { font-weight: 700; }
.home-archive .index .tt span { color: var(--ink-2); }
.home-archive .index a:hover, .home-archive .index a:focus-visible { background: var(--cc, var(--ink)); color: var(--on-cc); }
.home-archive .index a:hover .tt span, .home-archive .index a:focus-visible .tt span { color: var(--on-cc); }
.home-archive .index a:focus-visible { outline-offset: 0; }

@media (max-width: 1180px) {
  .home-archive .index { columns: 1; }
}
@media (max-width: 900px) {
  .home-today .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-today .stage { order: -1; max-height: 70vh; }
  .home-today .stage img:not(.banner) { width: min(92%, 520px); }
  .home-today .today { padding-bottom: 32px; }
  .home-today .bignum { font-size: clamp(9rem, 44vw, 18rem); }
  .home-archive .tools { grid-template-columns: minmax(0, 1fr); }
  .home-archive .blocks a { flex: 1 0 25%; justify-content: center; padding: 0 8px; border-bottom: 1px solid var(--hair); }
}
