/* Base layout — subpagina's (niet homepage) */
@font-face {
  font-family: "Epicene Bold";
  src: url("../fonts/epicene-text-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Epicene Regular";
  src: url("../fonts/epicene-text-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-variant-numeric: proportional-nums;
}

body {
  font-family: var(--chodo-font-sans);
  background: #fff;
  color: #000;
  min-height: 100vh;
  padding: 0 var(--chodo-page-gutter) 24px;
  padding-top: 158px;
}

html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-logo {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 320px;
  height: 130px;
  line-height: 0;
}

.page-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: calc(100% - (var(--chodo-page-gutter) * 2));
  background: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: #85cbfa;
}

main {
  width: 100%;
}

.hidden {
  display: none !important;
}

.chodo-name-word {
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Tekst in flex-gecentreerde titels: normale regelafbreking met name-lock spans */
.chodo-title-text {
  display: block;
  text-align: inherit;
  max-width: 100%;
  min-width: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.image-caption,
.overlay-caption {
  font-family: var(--chodo-font-sans);
  font-size: var(--chodo-text-ui-xs-size);
  font-weight: 400;
  line-height: var(--chodo-leading-ui-xs-caption);
  letter-spacing: var(--chodo-tracking-ui);
  color: #000;
}

.image-caption {
  margin: 8px 0 0;
  text-align: left;
}

.overlay-caption {
  text-align: center;
}

@media (max-width: 980px) {
  .page-logo {
    width: 239px;
    height: 96px;
  }

  body:not(.page-home) {
    padding-top: 114px;
  }
}

/* Tablet: iets groter logo op subpagina's (641–1024) */
@media (min-width: 641px) and (max-width: 1024px) {
  .page-logo {
    width: 300px;
    height: 122px;
  }

  body:not(.page-home) {
    padding-top: 128px;
  }
}
