/* dekmantelselectors.com: the Selectors identity on the festival shell.
   A bare hero of rotating photos with scribbles, the wordmark centred at
   the top, the tickets pill low in the frame; the information section on
   the solid canvas below. Akzidenz-Grotesk Extended, medium, in capitals
   for labels; ABC Whyte for running text.

   Colour and faces come from the theme on <html> (--dk-canvas, --dk-ink,
   --dk-accent, --dk-on-accent, --dk-surface, --dk-muted, --dk-display,
   --dk-text); the fallbacks in var() are the placeholder site's brown and
   white. Type over photography stays white.

   Scale discipline (site.css): ONE type scale, 11 caps / 13 meta / 15 body
   / 17 title / 22-26 section / 40 feature / 64 display. Spacing steps are
   the --sp-* roles from /tokens.css and nothing else. */

@font-face {
  font-family: "Akzidenz Grotesk Extended";
  src: url("/sites/selectors/fonts/berthold_akzidenz_grotesk_extended-webfont.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Akzidenz Grotesk Extended";
  src: url("/sites/selectors/fonts/berthold_akzidenz_grotesk_medium_extended-webfont.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "ABC Whyte";
  src: url("/fonts/Whyte-Book.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --se-canvas: var(--dk-canvas, #322b25);
  --se-ink: var(--dk-ink, #ffffff);
  --se-accent: var(--dk-accent, #ffffff);
  --se-on-accent: var(--dk-on-accent, #322b25);
  --se-muted: var(--dk-muted, rgba(255, 255, 255, 0.6));
  --se-display: var(--dk-display, "Akzidenz Grotesk Extended"), "Akzidenz Grotesk Extended", "Helvetica Neue", Arial, sans-serif;
  --se-text: var(--dk-text, "ABC Whyte"), "ABC Whyte", -apple-system, "Helvetica Neue", sans-serif;
  --photo-ink: #ffffff;
}

* { box-sizing: border-box; }
html { background: var(--se-canvas); overflow-x: hidden; scrollbar-width: thin; }
body {
  margin: 0;
  background: var(--se-canvas);
  color: var(--se-ink);
  font: 15px/1.65 var(--se-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
a, button, summary { transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* Labels: the extended face, medium, capitals, tracked. */
.label, h1, h2, h3, .fest-nav a, .fest-cta, .fest-btn, .btn, .fest-footer, .fest-hero-place, .fest-hero-dates, .fest-faq summary {
  font-family: var(--se-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
h1, h2, h3 { margin: 0; }

/* Pills: a hairline in the ink, filled on hover. */
.fest-nav a, .fest-cta, .fest-btn, .btn {
  display: inline-block;
  border: 1px solid currentColor;
  padding: var(--sp-sm) var(--sp-xl);
  font-size: 13px;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}
.fest-cta:hover, .fest-btn:hover, .btn:hover, .fest-nav a:hover, .fest-nav a.active { background: currentColor; }
.fest-cta:hover, .fest-btn:hover, .btn:hover, .fest-nav a:hover, .fest-nav a.active { color: var(--se-on-accent); background: var(--se-accent); border-color: var(--se-accent); }

/* Header: fixed, transparent. On the home only the tickets pill shows;
   the wordmark lives in the hero. */
.fest-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-xl) var(--gutter);
  pointer-events: none;
}
.fest-header > * { pointer-events: auto; }
.fest-header .wordmark { display: flex; }
.wordmark-selectors { width: 160px; height: auto; }
.fest-nav { display: flex; gap: var(--sp-xs); margin-left: var(--sp-md); }
.fest-cta { margin-left: auto; }
.fest-burger { display: none; }
[data-page="home"] .fest-header .wordmark, [data-page="home"] .fest-nav { display: none; }
[data-page="home"] .fest-header .fest-cta { display: none; }

/* Home hero: photos rotate under the wordmark; scribbles ride each photo
   near its edges. Type over the photos is white by rule. */
.fest-hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: var(--se-canvas);
  color: var(--photo-ink);
}
.fest-hero-media { position: absolute; inset: 0; }
.fest-bg-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s var(--ease); }
.fest-bg-layer.is-on { opacity: 1; }
.fest-bg-layer > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.fest-scribble { position: absolute; width: auto; height: auto; max-width: 22vw; max-height: 44vh; pointer-events: none; }
.fest-scribble-0 { left: 3%; top: 6%; }
.fest-scribble-1 { right: 4%; bottom: 8%; }
.fest-scribble-2 { left: 5%; bottom: 10%; }
.fest-scribble-3 { right: 3%; top: 10%; }
.fest-scribble-4 { left: 40%; bottom: 4%; }
.fest-scribble-5 { right: 30%; top: 4%; }
.fest-hero-body { position: absolute; inset: 0; text-align: center; }
.fest-hero-mark { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); width: min(70vw, 560px); }
.fest-hero-mark img { width: 100%; height: auto; }
.fest-hero-title {
  position: absolute;
  top: calc(18% + min(70vw, 560px) * 0.22 + var(--sp-lg));
  left: 0;
  right: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.fest-hero-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fest-hero-place, .fest-hero-dates { display: block; font-size: 13px; }
.fest-hero-cta { position: absolute; bottom: 18%; left: 0; right: 0; display: flex; justify-content: center; gap: var(--sp-xs); }
.fest-hero-cta .fest-btn { color: var(--photo-ink); border-color: var(--photo-ink); }
.fest-hero-cta .fest-btn:hover { background: var(--photo-ink); color: #322b25; }

/* Information section on the solid canvas. */
.fest-about, .fest-page {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: calc(var(--sp-huge) * 2) var(--gutter);
}
.fest-page { padding-top: calc(var(--sp-huge) * 2 + var(--sp-xxl)); }
.fest-page h1, .fest-about h2 { font-size: 26px; letter-spacing: 0.03em; margin-bottom: var(--sp-xxl); }
.fest-empty { color: var(--se-muted); }
.fest-body .block-text, .fest-body .block-intro { max-width: none; padding: 0; font-size: 15px; line-height: 1.65; }
.fest-body p { margin: 0 0 var(--sp-xl); }
.fest-body a { border-bottom: 1px solid var(--se-muted); }
.fest-body a:hover { border-bottom-color: var(--se-ink); }
.fest-body ul, .fest-body ol { padding-left: 1.4em; margin: 0 0 var(--sp-xl); }
.fest-body h2 { font-size: 17px; margin: var(--sp-xxl) 0 var(--sp-sm); }
.fest-body h3 { font-size: 13px; margin: var(--sp-xl) 0 var(--sp-xs); }
.fest-body figure { margin: var(--sp-xl) 0; }

/* FAQ. */
.fest-faq-group { margin-bottom: var(--sp-xxl); }
.fest-faq-group h2 { font-size: 13px; color: var(--se-muted); margin-bottom: var(--sp-sm); }
.fest-faq { border-top: 1px solid var(--se-muted); }
.fest-faq:last-child { border-bottom: 1px solid var(--se-muted); }
.fest-faq summary { cursor: pointer; list-style: none; padding: var(--row-y) 0; font-size: 13px; display: flex; justify-content: space-between; gap: var(--sp-md); }
.fest-faq summary::-webkit-details-marker { display: none; }
.fest-faq summary::after { content: "+"; }
.fest-faq[open] summary::after { content: "–"; }
.fest-faq-answer { padding: 0 0 var(--sp-md); }

/* Footer: two rows of tracked capitals, 12px. */
.fest-footer {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sp-huge);
  font-size: 11px;
}
.foot-row { display: flex; flex-direction: column; gap: var(--sp-md); }
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--sp-xl); }
.foot-nav a:hover { text-decoration: underline; }
.foot-social { display: none; }
.foot-mark { margin: var(--sp-md) 0 0; color: var(--se-muted); }

/* Consent banner (app.js). */
#dk-consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  max-width: 360px;
  background: var(--se-ink);
  color: var(--se-canvas);
  padding: var(--sp-sm) var(--sp-md);
  font-size: 13px;
  z-index: 50;
}
#dk-consent p { margin: 0 0 var(--sp-sm); }
#dk-consent button {
  font: 500 11px var(--se-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--ctl-y) var(--ctl-x);
  margin-right: var(--sp-xs);
  border: 1px solid var(--se-canvas);
  background: var(--se-canvas);
  color: var(--se-ink);
  cursor: pointer;
}
#dk-consent button[data-consent="denied"] { background: transparent; color: var(--se-canvas); }

@media (max-width: 768px) {
  .fest-header { padding: var(--sp-md); }
  .wordmark-selectors { width: 120px; }
  .fest-nav {
    display: none;
    position: absolute;
    top: calc(100% + var(--sp-tight));
    right: var(--sp-md);
    flex-direction: column;
    gap: var(--sp-hair);
    background: var(--se-canvas);
    border: 1px solid var(--se-muted);
    padding: var(--sp-snug);
    min-width: 190px;
    margin: 0;
  }
  .fest-nav.open { display: flex; }
  .fest-nav a { border: 0; }
  .fest-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-tight);
    width: 42px;
    height: 36px;
    border: 1px solid currentColor;
    background: transparent;
    color: var(--se-ink);
    padding: 0;
    cursor: pointer;
  }
  [data-page="home"] .fest-burger { display: none; }
  .fest-burger span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
  .fest-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .fest-burger.open span:nth-child(2) { opacity: 0; }
  .fest-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .fest-scribble { max-width: 34vw; max-height: 30vh; }
  .fest-hero-cta { bottom: 12%; }
}

/* Programme (core/pages/programme.ts): the artist grid by day. A card is
   the photo with its decoration sprite from the graphic set, the name,
   then stage and time. The sprite sits where the platform's placement
   hints put it (inline style); a currentColor sprite paints the accent
   through a mask, a fixed one is an image. The grid and the timetable run
   wider than the article measure. */
.prog-page, .tt-page, .fa-page { max-width: 1400px; }
.fa-page { max-width: var(--article-w); }
.prog-switch { display: flex; align-items: baseline; gap: var(--sp-md); margin: calc(-1 * var(--sp-md)) 0 var(--sp-xxl); font-size: 13px; font-family: var(--se-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.prog-switch .is-current { color: var(--se-muted); }
.prog-switch a { text-decoration: underline; }
.prog-switch a:hover { opacity: 0.7; }
.prog-day, .tt-day { margin-bottom: var(--sp-huge); }
.prog-day h2, .tt-day h2 { font-size: 17px; margin: 0 0 var(--sp-lg); }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-xl) var(--sp-md); }
.prog-card { display: flex; flex-direction: column; gap: var(--sp-tight); min-width: 0; }
a.prog-card:hover .prog-name { opacity: 0.7; }
.prog-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--dk-secondary, #201b17);
  color: var(--se-accent);
  margin-bottom: var(--sp-xs);
}
.prog-photo > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.prog-photo-empty { display: block; width: 100%; height: 100%; background: var(--dk-secondary, #201b17); opacity: 0.35; }
.prog-deco { position: absolute; display: block; max-width: none; pointer-events: none; }
.prog-deco.is-mask {
  background: currentColor;
  -webkit-mask: var(--deco) center / contain no-repeat;
  mask: var(--deco) center / contain no-repeat;
}
.prog-name { font-family: var(--se-display); font-size: 13px; line-height: 1.15; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.prog-kind, .prog-meta { font-size: 13px; color: var(--se-muted); }
.prog-page.is-empty .prog-soon { font-size: 22px; margin: 0 0 var(--sp-xl); }
.prog-prev { font-size: 15px; }
.prog-prev span { color: var(--se-muted); }
.prog-prev a { text-decoration: underline; }
.prog-prev a:hover { opacity: 0.7; }

/* Timetable: stages as columns, a row per start time, Amsterdam times.
   The table scrolls inside its own box; the time column and the stage
   row stay put. */
.tt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13px; }
.tt th, .tt td { text-align: left; vertical-align: top; padding: var(--sp-xs) var(--sp-sm); border-top: 1px solid var(--se-ink); min-width: 170px; }
.tt thead th { font-family: var(--se-display); font-size: 11px; border-top: 0; position: sticky; top: 0; background: var(--se-canvas); z-index: 2; padding-bottom: var(--sp-sm); }
.tt .tt-time { min-width: 64px; width: 64px; white-space: nowrap; font-variant-numeric: tabular-nums; position: sticky; left: 0; background: var(--se-canvas); z-index: 1; }
.tt thead .tt-time { z-index: 3; }
.tt-slot { display: flex; flex-direction: column; gap: var(--sp-hair); margin-bottom: var(--sp-xs); }
.tt-slot:last-child { margin-bottom: 0; }
.tt-name { font-family: var(--se-display); font-size: 11px; line-height: 1.15; }
.tt-name a:hover { opacity: 0.7; }
.tt-when, .tt-kind { font-size: 11px; color: var(--se-muted); }

/* Artist page on this site: the photo with its sprite, the bio, links
   and the sets at this festival by edition. */
.fa-hero { aspect-ratio: 3 / 2; margin-bottom: var(--sp-xl); }
.fa-page h1 { margin-bottom: var(--sp-xl); }
.artist-links { list-style: none; padding: 0; margin: var(--sp-xl) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-md); font-size: 13px; }
.artist-links a { text-decoration: underline; }
.artist-links a:hover { opacity: 0.7; }
.fa-appearances { margin-top: var(--sp-xxl); }
.fa-appearances h2 { font-size: 17px; margin: 0 0 var(--sp-lg); }
.fa-edition { margin-bottom: var(--sp-xl); }
.fa-edition h3 { font-size: 17px; margin: 0 0 var(--sp-xs); }
.fa-edition h3 a { text-decoration: underline; }
.fa-edition ul { list-style: none; padding: 0; margin: 0; }
.fa-edition li { display: flex; flex-direction: column; gap: var(--sp-hair); padding: var(--sp-xs) 0; border-top: 1px solid var(--se-ink); font-size: 15px; }
.fa-where { font-size: 13px; color: var(--se-muted); }
.fa-where a { text-decoration: underline; }

@media (max-width: 768px) {
  .prog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg) var(--sp-sm); }
  .prog-day h2, .tt-day h2, .fa-appearances h2 { font-size: 15px; }
  .tt th, .tt td { min-width: 140px; }
}
