/* ---------- Fonts (self-hosted, no external requests) ---------- */
/* IBM Plex Sans: body text. IBM Plex Mono: small labels and accents. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plex-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plex-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plex-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plex-sans-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plex-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plex-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("../fonts/plex-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("../fonts/plex-sans-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/plex-mono-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/plex-mono-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/plex-mono-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Colours & sizes ---------- */
:root {
  /* Warm off-white / beige base */
  --bg: #f6f2ea;
  --surface: #fffdf9;
  --surface-alt: #eee8dc;
  --line: #e2dacb;
  --text: #1c1f24;
  --muted: #5b5d61;

  /* Tilburg University colours (from the official logo file) */
  --blue: #0b3b6a;
  --blue-dark: #082c50;
  --blue-soft: #e3e9f0;
  --bronze: #ae8904;
  --bronze-text: #85690a; /* slightly darker bronze, readable at small sizes */

  --red: #b42318;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 10px;
  --max: 1040px;
  --text-max: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Keep linked headings clear of the sticky header */
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--bronze); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 600; }
h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2.2em; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.8em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--bronze); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--text-max); }

/* ---------- Header & tabs ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--blue);
  text-decoration: none;
}
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-alt); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }

/* ---------- Page layout ---------- */
main { padding: 56px 0 80px; }
.page-intro { color: var(--muted); font-size: 1.1rem; max-width: var(--text-max); }

/* Home hero */
.hero { padding: 40px 0 8px; text-align: center; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  letter-spacing: 0.01em;
  color: var(--blue);
  margin-bottom: 0.2em;
}
.hero .subtitle { font-size: clamp(1.15rem, 2.5vw, 1.4rem); color: var(--muted); margin-bottom: 28px; }
.hero .subtitle::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--bronze);
  margin: 24px auto 0;
}
.hero .notice {
  display: inline-block;
  margin: 0 0 44px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--red);
  background: #fdecea;
  color: var(--red);
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 56px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--bronze);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  text-align: center;
}
.stat .num { display: block; font-family: var(--mono); font-size: 2.4rem; font-weight: 500; color: var(--blue); line-height: 1.15; }
.stat .label { color: var(--muted); font-size: 0.95rem; }

.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  background: var(--surface-alt);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
  margin: 0;
}

/* Cards / panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 24px 0;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.terms-section { margin-top: 72px; }
.terms-section h2 { margin-top: 0; }
.terms-section .panel { margin-top: 16px; }
.terms ol { padding-left: 1.6em; }
.terms li { margin-bottom: 0.8em; padding-left: 0.4em; }
.terms li::marker { font-family: var(--mono); color: var(--bronze-text); font-weight: 500; }

.callout {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout > :last-child { margin-bottom: 0; }

/* Table */
.table-wrap { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; background: var(--surface-alt); }
td ul { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
td ul li { margin-bottom: 0; }
td .measure { display: block; }
td .measure + .measure { margin-top: 4px; }

/* Stimulus cards */
.stimulus {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 20px 0;
}
.stimulus h3 { margin-top: 0; }
.stimulus ul { margin-bottom: 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 200px)); gap: 12px; justify-content: end; }
.gallery img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-alt);
}
.gallery.video { grid-template-columns: minmax(0, 360px); }
.gallery.video img { aspect-ratio: auto; height: auto; background: #000; }
.stimulus.no-image { grid-template-columns: 1fr; }

/* Steps on download page */
.step-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin-bottom: 4px;
}
.step h2 { margin-top: 0; }
.step { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }

.email-template {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 0.95rem;
  margin: 16px 0;
}
.email-template p:last-child { margin-bottom: 0; }
.email-meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }

.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.button {
  display: inline-block;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--blue-dark); text-decoration: none; }
.button.secondary { background: transparent; color: var(--blue); }
.button.secondary:hover { background: var(--blue-soft); }

/* FAQ */
.faq-group { margin-top: 40px; }
.faq-group h2 { margin-top: 0; margin-bottom: 12px; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 10px 0;
}
details[open] { border-color: #d3c8b4; }
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 24px;
  font-weight: 500;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--bronze);
}
details[open] summary::after { content: "\2212"; }
details .answer { padding: 0 24px 20px; color: var(--text); }
details .answer > :last-child { margin-bottom: 0; }

/* Contact */
.people { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 40px; }
.people li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--bronze); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.people strong { display: block; font-weight: 600; }
.people span { color: var(--muted); font-size: 0.92rem; }
.email-big { font-family: var(--mono); font-size: 1.15rem; font-weight: 500; }

/* Placeholders that still need content - remove once filled in */
.todo {
  background: #fff4c2;
  border: 1px dashed #c99a00;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 0.9em;
  color: #6b5200;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-header .container { flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
  .nav { flex-wrap: wrap; margin: 6px -10px 0; padding-bottom: 10px; }
  .nav a { padding: 6px 10px; }
  main { padding: 36px 0 56px; }
  .stats { grid-template-columns: 1fr; }
  .stimulus { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .gallery { justify-content: start; grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 22px; }
  th, td { padding: 12px 14px; }
}
