/* lentekabinet.com: the Lentekabinet identity on the festival shell.
   Script display face (Lentekabinet Faunus) for titles, Satyr10 for
   running text, 60px-radius pills, a full-bleed hero video on the home.

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

   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: "Lentekabinet Faunus";
  src: url("/sites/lentekabinet/fonts/LentekabinetFaunus-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satyr10";
  src: url("/sites/lentekabinet/fonts/Satyr10-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MalaTestaCK";
  src: url("/sites/lentekabinet/fonts/malatestack.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lentekabinet Script";
  src: url("/sites/lentekabinet/fonts/Lentekabinet-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --lk-canvas: var(--dk-canvas, #fef461);
  --lk-ink: var(--dk-ink, #00859b);
  --lk-accent: var(--dk-accent, #fef461);
  --lk-on-accent: var(--dk-on-accent, #00859b);
  --lk-surface: var(--dk-surface, #c2ffba);
  --lk-secondary: var(--dk-secondary, #00859b);
  --lk-muted: var(--dk-muted, #4d2154);
  --lk-display: var(--dk-display, "Lentekabinet Faunus"), "Lentekabinet Faunus", Georgia, serif;
  --lk-text: var(--dk-text, "Satyr10"), "Satyr10", Georgia, serif;
  --pill: 60px;
}

* { box-sizing: border-box; }
html {
  background: var(--lk-canvas);
  overflow-x: hidden;
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--lk-canvas);
  color: var(--lk-ink);
  font: 17px/1.45 var(--lk-text);
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;
  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; }
h1, h2, h3 {
  font-family: var(--lk-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
}
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; }
}

/* Pills: nav links, the call to action, buttons. */
.pill, .fest-nav a, .fest-cta, .fest-btn, .btn {
  display: inline-block;
  border-radius: var(--pill);
  padding: var(--ctl-y) var(--sp-lg) var(--sp-xs);
  font-family: var(--lk-display);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}
.fest-nav a { background: var(--lk-surface); color: var(--lk-secondary); }
.fest-nav a:hover, .fest-nav a.active { background: var(--lk-secondary); color: var(--lk-surface); }
.fest-cta, .fest-btn, .btn { background: var(--lk-accent); color: var(--lk-on-accent); }
.fest-cta:hover, .fest-btn:hover, .btn:hover { background: var(--lk-on-accent); color: var(--lk-accent); }

/* Header: fixed over the page, transparent, pointer events only on its
   controls so the hero underneath stays reachable. */
.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-lg) var(--gutter);
  pointer-events: none;
}
.fest-header > * { pointer-events: auto; }
.fest-header .wordmark { display: flex; color: var(--lk-secondary); }
[data-page="home"] .fest-header .wordmark { color: var(--lk-surface); }
.wordmark-lk { width: auto; height: 40px; }
.fest-nav { display: flex; gap: var(--sp-xs); }
.fest-cta { margin-left: auto; }
.fest-burger { display: none; }

/* Home hero: the video fills the viewport; the title sits at the foot. */
.fest-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--lk-secondary);
}
.fest-hero-media { position: absolute; inset: 0; }
.fest-hero-media img, .fest-hero-video { width: 100%; height: 100%; object-fit: cover; }
.fest-bg-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s var(--ease); }
.fest-bg-layer.is-on { opacity: 1; }
.fest-hero-body {
  position: relative;
  padding: var(--sp-huge) var(--gutter);
  text-align: center;
  color: var(--lk-surface);
}
.fest-hero-mark { display: none; }
.fest-hero-title { font-size: 40px; }
/* "Lentekabinet 2027, Het Twiske. 15 to 16 May 2027": the punctuation is
   the sentence's, so it lives here and not in the shared markup. */
.fest-hero-name:has(+ .fest-hero-place)::after { content: ","; }
.fest-hero-place::after { content: "."; }
.fest-hero-dates { font-family: "MalaTestaCK", var(--lk-display); }
.fest-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-xs); margin-top: var(--sp-xl); }
/* The header pill already says sign up; the hero keeps the other links. */
[data-page="home"] .fest-hero-cta .fest-btn-signup { display: none; }

/* Inner pages: one measure, the section title in the display face. */
.fest-page, .fest-about {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: calc(var(--sp-huge) * 2) var(--gutter) var(--sp-huge);
}
.fest-page h1 { font-size: 64px; margin-bottom: var(--sp-xl); }
.fest-page h2, .fest-about h2 { font-size: 26px; margin: var(--sp-xxl) 0 var(--sp-sm); }
.fest-empty { color: var(--lk-muted); }
.fest-body .block-text, .fest-body .block-intro { max-width: none; padding: 0; font-size: 17px; line-height: 1.45; }
.fest-body p { margin: 0 0 var(--sp-md); }
.fest-body a { text-decoration: underline dotted; }
.fest-body a:hover { color: var(--lk-muted); }
.fest-body ul, .fest-body ol { padding-left: 1.4em; margin: 0 0 var(--sp-md); }
.fest-body h2 { font-size: 26px; }
.fest-body h3 { font-size: 22px; margin: var(--sp-xl) 0 var(--sp-xs); }
.fest-body figure { margin: var(--sp-xl) 0; }
.fest-body .block-button { margin: var(--sp-lg) 0; }

/* FAQ: accordions per group. */
.fest-faq-group { margin-bottom: var(--sp-xxl); }
.fest-faq { border-top: 1px solid var(--lk-ink); }
.fest-faq:last-child { border-bottom: 1px solid var(--lk-ink); }
.fest-faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--row-y) 0;
  font-family: var(--lk-display);
  font-size: 22px;
  line-height: 1;
  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: the secondary colour with surface type, links in one row. */
.fest-footer {
  background: var(--lk-secondary);
  color: var(--lk-surface);
  padding: var(--sp-xl) var(--gutter);
  font-size: 15px;
  text-align: center;
}
.foot-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-xs) var(--sp-md); }
.foot-nav { display: contents; }
.foot-nav a:hover, .foot-social a:hover { color: var(--lk-accent); }
.foot-social { display: flex; gap: var(--sp-xs); }
.foot-social svg { width: 18px; height: 18px; }
.foot-mark { margin: var(--sp-md) 0 0; font-size: 13px; }

/* Consent banner (app.js). */
#dk-consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  max-width: 360px;
  background: var(--lk-secondary);
  color: var(--lk-surface);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--sp-md);
  font-size: 13px;
  z-index: 50;
}
#dk-consent p { margin: 0 0 var(--sp-sm); }
#dk-consent button {
  font: 13px var(--lk-text);
  padding: var(--ctl-y) var(--ctl-x);
  margin-right: var(--sp-xs);
  border-radius: var(--pill);
  border: 1px solid var(--lk-surface);
  background: var(--lk-surface);
  color: var(--lk-secondary);
  cursor: pointer;
}
#dk-consent button[data-consent="denied"] { background: transparent; color: var(--lk-surface); }

/* Narrow screens: the nav folds into a burger; the pill and the burger
   sit top right, the logo top left, as the placeholder did. */
@media (max-width: 768px) {
  .fest-header { padding: var(--sp-sm) var(--sp-md); gap: var(--sp-xs); }
  .wordmark-lk { height: 22px; }
  .fest-nav a, .fest-cta, .fest-btn, .btn { font-size: 15px; padding: var(--sp-xs) var(--sp-md) var(--sp-xs); }
  .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(--lk-accent);
    border-radius: var(--sp-md);
    padding: var(--sp-snug);
    min-width: 190px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }
  .fest-nav.open { display: flex; }
  .fest-nav a { background: transparent; color: var(--lk-on-accent); border-radius: var(--sp-sm); }
  .fest-nav a:hover, .fest-nav a.active { background: var(--lk-on-accent); color: var(--lk-accent); }
  .fest-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-tight);
    width: 42px;
    height: 36px;
    border: 0;
    border-radius: var(--pill);
    background: var(--lk-accent);
    padding: 0;
    cursor: pointer;
  }
  .fest-burger span { display: block; width: 18px; height: 2px; background: var(--lk-on-accent); border-radius: 2px; 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-hero-title { font-size: 26px; }
  .fest-page h1 { font-size: 40px; }
  .fest-page, .fest-about { padding-top: calc(var(--sp-huge) + var(--sp-xl)); }
}

/* 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: 22px; font-family: var(--lk-display); }
.prog-switch .is-current { color: var(--lk-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: 40px; 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(--lk-secondary);
  color: var(--lk-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(--lk-secondary); 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(--lk-display); font-size: 22px; line-height: 1.15;  }
.prog-kind, .prog-meta { font-size: 13px; color: var(--lk-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(--lk-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(--lk-ink); min-width: 170px; }
.tt thead th { font-family: var(--lk-display); font-size: 17px; border-top: 0; position: sticky; top: 0; background: var(--lk-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(--lk-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(--lk-display); font-size: 15px; line-height: 1.15; }
.tt-name a:hover { opacity: 0.7; }
.tt-when, .tt-kind { font-size: 11px; color: var(--lk-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: 40px; 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(--lk-ink); font-size: 15px; }
.fa-where { font-size: 13px; color: var(--lk-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: 26px; }
  .tt th, .tt td { min-width: 140px; }
}
