:root {
  --color-bg: #ffffff;
  --color-text: #12213f;
  --color-muted: #58607a;
  --color-primary: #2c40a9;
  --color-accent: #ff1414;
  --radius: 8px;
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 16px;
  --gap-4: 24px;
  --max-width: 88ch;
  --container-pad: 2rem;
  --font-heading: "Orbitron", "Oswald", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
  --font-body: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page container */
.wrapper,
body > article {
  max-width: var(--max-width);
  padding: 0 var(--container-pad);
  margin: 0 auto;
}

/* Links */
a,
a:visited {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 20, 20, 0.16);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover,
a:focus {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
  outline: 3px solid rgba(44, 64, 169, 0.08);
  outline-offset: 3px;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

h1 {
  font-size: clamp(2.2rem, 3.5rem + 1.5vw, 4.5rem);
  font-weight: 700;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 2rem var(--container-pad);
  text-align: center;
}
h2 {
  font-size: clamp(1.35rem, 1.8rem + 0.6vw, 2rem);
  font-weight: 600;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

em,
strong {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0 6px;
  border-radius: 4px;
}

/* Full-bleed helpers */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.full-bleed img {
  width: 100%;
  display: block;
}

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

/* Postcard grid */
.postcard.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gap-2);
  justify-items: center;
  align-items: start;
}
.postcard.grid img {
  width: 140px;
  height: auto;
  display: block;
}

/* Physical items */
.physical-items.grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: var(--gap-2);
  align-items: start;
}
.physical-items.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Opsomming (cards) */
.opsomming {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-3);
}
.opsomming > section {
  background-color: #f7f8fb;
  padding: var(--gap-3);
  font-family: monospace;
  text-align: center;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
}
.opsomming img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
}

.twee-kolommen {
  grid-column: span 2;
}

/* Swiper slide captions */
.slideshow .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slideshow .swiper-slide img {
  max-width: 70%;
  height: auto;
}
.slide-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 8px;
  border: 0.5px solid rgba(44, 64, 169, 0.12);
}

/* Tijdlijn image */
img[src*="Tijdlijn" i],
img[src*="tijdlijn" i] {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .physical-items.grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-template-rows: none;
  }
  .postcard.grid img {
    width: 120px;
  }
  .wrapper,
  body > article {
    padding: 0 1rem;
  }
}

.small {
  display: inline-block;
}
.robot-gif-container {
  float: right;
  width: 250px;
  margin: 0 0 1rem 1.5rem;
}

.robot-gif-container img {
  width: 100%;
  height: auto;
}
.hero-gif-container {
  width: 180px !important;
}
