/* Basic UiTPAS style for files.uitpas.be — no external dependencies.
   Every size and colour comes from the tokens below; the rest of the file
   only refers to those, and lets typography inherit from body. */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --purple: #3d2b7f;
  --pink: #ed1a57;
  --green: #26b075;
  --yellow: #f8d50d;

  /* neutrals */
  --text: #1f1a33;
  --muted: #5c5775;
  --bg: #f6f5fa;
  --surface: #fff;
  --line: #e2dfee;
  --warn-bg: #fffbe0;
  --info-bg: #e9f7f0;

  /* type scale (rem, base 16px) */
  --text-sm: 0.875rem;  /* 14px */
  --text-md: 1rem;      /* 16px */
  --text-lg: 1.25rem;   /* 20px */
  --text-xl: 1.5rem;    /* 24px */
  --text-2xl: 2rem;     /* 32px */

  /* spacing scale (4px grid) */
  --space-1: 0.25rem;   /* 4px  */
  --space-2: 0.5rem;    /* 8px  */
  --space-3: 1rem;      /* 16px */
  --space-4: 1.5rem;    /* 24px */
  --space-5: 2rem;      /* 32px */

  /* shapes */
  --radius: 8px;
  --border: 1px solid var(--line);
  --accent-width: 4px;
  --page-width: 880px;
}

/* ---------- 2. Base: set once, inherited everywhere ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font: var(--text-md) / 1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* one vertical rhythm for all text blocks */
h1, h2, h3, p, ul, .notice, .hero, .tiles {
  margin: 0 0 var(--space-3);
}
:is(h1, h2, h3, p, ul, .notice, .hero, .tiles):last-child { margin-bottom: 0; }

h1, h2, h3 {
  color: var(--purple);
  line-height: 1.25;
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); margin-top: var(--space-5); }
h3 { font-size: var(--text-lg); margin-top: var(--space-4); }

a {
  color: var(--purple);
  text-decoration-color: var(--pink);
  text-underline-offset: 0.2em;
}
a:hover { color: var(--pink); }

ul { padding-left: var(--space-4); }
li + li { margin-top: var(--space-1); }

.muted { color: var(--muted); }

/* ---------- 3. Layout ---------- */
/* header content, main and footer share the same column */
.site-header .inner,
main,
footer {
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

main { margin-block: var(--space-4); }

footer {
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- 4. Header ---------- */
.site-header {
  color: #fff;
  background: var(--purple);
  border-bottom: var(--accent-width) solid var(--pink);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}
/* links in the header take the header's white instead of purple */
.site-header a {
  color: inherit;
  text-decoration: none;
}
.site-header a:hover { text-decoration: underline; }

.brand {
  font-size: var(--text-xl);
  font-weight: 800;
}
.brand span { color: var(--pink); }
.brand small {
  margin-left: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 400;
  opacity: 0.8;
}

/* ---------- 5. Card ---------- */
.card {
  padding: var(--space-4);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
}
/* the first element in the card or hero never pushes down */
.card > :first-child,
.hero :first-child { margin-top: 0; }

.hero {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.hero img {
  flex-shrink: 0;
  width: 7.5rem;   /* 120px */
  height: auto;
}

/* ---------- 6. Link lists (navigation + downloads) ---------- */
ul.links {
  padding: 0;
  list-style: none;
  border-top: var(--border);
}
ul.links li {
  margin: 0;
  border-bottom: var(--border);
}
ul.links a {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-1);
  font-weight: 600;
  text-decoration: none;
}
ul.links a:hover { background: var(--bg); }
ul.links a::after {
  margin-left: auto;
  content: "\2192"; /* → */
  color: var(--pink);
}
ul.links a.download::after { content: "\2193"; } /* ↓ */
/* a .meta label takes the free space; the arrow then sits right after it */
ul.links .meta {
  margin-left: auto;
  font-weight: 400;
  color: var(--muted);
}
ul.links a:has(.meta)::after { margin-left: 0; }

/* ---------- 7. Tiles: big buttons with a logo (downloads, browser extensions) ---------- */
/* always a 3-column grid, so tiles in different groups line up */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-3);
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: var(--purple);
  border-bottom: var(--accent-width) solid var(--pink);
  border-radius: var(--radius);
}
.tile:hover,
.tile:focus-visible {
  color: #fff;
  background: var(--pink);
  border-bottom-color: var(--purple);
}

.tile-logo {
  width: var(--space-5);
  height: var(--space-5);
  margin-bottom: var(--space-2);
  fill: currentColor;
}
.tile-name { font-weight: 600; }
.tile-sub {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* ---------- 8. Notices ---------- */
.notice {
  padding: var(--space-3);
  background: var(--warn-bg);
  border-left: var(--accent-width) solid var(--yellow);
  border-radius: var(--radius);
}
.notice.info {
  background: var(--info-bg);
  border-left-color: var(--green);
}

/* ---------- 9. Small screens ---------- */
@media (max-width: 560px) {
  .card { padding: var(--space-3); }
  .hero img { display: none; }
  .tiles { grid-template-columns: 1fr; }
}
