/* Design system - custom CSS properties and utilities */
:root {
  /* Interior palette: warmed window light, concrete island and smoked glass */
  --paper: rgb(228 221 210);
  --concrete: rgb(175 158 136);
  --charcoal: rgb(51 41 33);
  --page-bg: var(--paper);
  --page-ink: var(--charcoal);
  --ink: var(--page-ink);
  --ink-soft: color-mix(in oklab, var(--ink) 80%, transparent);
  --rule: color-mix(in oklab, var(--ink) 22%, transparent);
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --animate-duration: 1.4s;
}

html {
  background-color: var(--page-bg);
  transition: background-color 140ms linear;
}

body {
  background: transparent;
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: color 1200ms var(--ease);
}

::selection {
  background: var(--paper);
  color: var(--charcoal);
}

/* Tones */
.tone-night { --ink: var(--paper); color: var(--ink); }
.site-header, .site-footer { --ink: var(--page-ink); color: var(--ink); }
.site-header { --ink: var(--paper); color: var(--ink); transition: background-color 700ms, color 700ms; }
.site-header.is-open { --ink: var(--page-ink); background-color: var(--page-bg); }
.site-footer { background-color: var(--page-bg); }
.site-header, .site-footer, .tone-night {
  --ink-soft: color-mix(in oklab, var(--ink) 80%, transparent);
  --rule: color-mix(in oklab, var(--ink) 22%, transparent);
}
main { --ink: var(--page-ink); }

/* Typography */
.display {
  font-family: 'Unbounded', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.24;
}

.label {
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.chapter-heading {
  font-family: 'Unbounded', Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}

.body-copy { max-width: 58ch; color: var(--ink-soft); }
.text-ink-soft { color: var(--ink-soft); }
.border-rule { border-color: var(--rule); }
.artist-list { font-size: 23px; line-height: 1.4; }

/* Layout */
.container-ed { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section-ed { padding-block: 72px; scroll-margin-top: 64px; }
#kunst, #verhaal, #ontwerp, #praktisch, #contact { scroll-margin-top: 64px; }
.section-intro { display: grid; gap: 28px; margin-bottom: 40px; }

@media (min-width: 768px) {
  .container-ed { padding-inline: 40px; }
  .section-ed { padding-block: 88px; }
  .chapter-heading { font-size: 36px; }
  .section-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-bottom: 48px; align-items: start; }
  .artist-list { font-size: 26px; }
}

@media (min-width: 1200px) {
  .chapter-heading { font-size: 44px; }
  .artist-list { font-size: 32px; }
}

@media (max-width: 374px) {
  .chapter-heading { font-size: 26px; }
}

.facts li + li::before { content: '—'; margin-right: 0.5rem; }

/* Quiet link underline */
.link-quiet { position: relative; display: inline-block; }
.link-quiet::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}
.link-quiet:hover::after, .link-quiet:focus-visible::after { transform: scaleX(1); }

/* Scroll reveal (animate.css classes are added by script.js) */
.reveal { opacity: 0; }
.reveal.animate__animated { opacity: 1; }

/* Pricing tables */
.price-table { width: 100%; table-layout: fixed; font-size: 0.75rem; }
.price-table th, .price-table td { padding-block: 1rem; border-bottom: 1px solid var(--rule); text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.price-table thead th { padding-top: 0; font-weight: 500; }
.price-table th:first-child { text-align: left; padding-right: 0.5rem; }
.price-table-holidays th:first-child { width: 42%; }

@media (min-width: 640px) {
  .price-table { font-size: 0.875rem; }
}

/* Splide carousels: dot pagination, the active dot is a pill that fills while autoplay runs */
.carousel { --progress: 0; }

.carousel-dots {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 0;
}

.carousel-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 2rem;
  margin: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  transform: none;
  transition: width 300ms ease;
}

.carousel-dot::before {
  content: '';
  box-sizing: border-box;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  transition: width 300ms ease, background-color 300ms ease;
}

.carousel-dot.is-active {
  width: 3.5rem;
  transform: none;
  background: transparent;
}

.carousel-dot.is-active::before {
  width: 3rem;
  border-width: 0;
  background: linear-gradient(var(--ink) 0 0) no-repeat left / calc(var(--progress) * 100%) 100% var(--rule);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; transition: none; }
  .reveal { opacity: 1 !important; }
  .animate__animated { animation: none !important; }
}
