/* N3ST – one pager
   Kleuren en typografie volgens N3ST Brand Guidelines v2.
   Koppen en labels: Titillium Web Regular, het web-alternatief voor N27 (N27 heeft geen webfontlicentie).
   Bodytekst: Bitter. Beide SIL Open Font License.
   Content is geboxed op max. 1280 px; achtergronden lopen door over de volle breedte. */

@font-face {
  font-family: "Titillium Web";
  src: url("../fonts/titillium-web-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Kleur */
  --n3st-groundwork-black: #00081F;
  --n3st-charge-yellow: #FBDD00;
  --n3st-chalk-grey: #E8EAF2;

  --color-bg-page: var(--n3st-groundwork-black);
  --color-bg-accent: var(--n3st-charge-yellow);
  --color-text: var(--n3st-chalk-grey);
  --color-accent: var(--n3st-charge-yellow);
  --color-on-accent: var(--n3st-groundwork-black);

  /* Typografie */
  --font-heading: "Titillium Web", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Bitter", Georgia, serif;

  /* Layout */
  --content-max: 1280px;

  /* Mobiel (basis) */
  --gutter: 20px;
  --space-top: 20px;
  --space-section: 40px;
  --space-bottom: 64px;
  --space-columns: 40px;
  --footer-pad: 24px;
  --footer-logo-h: 24px;

  --intro-size: 20px;    --intro-lh: 30px;
  --heading-size: 22px;  --heading-lh: 26px;
  --label-size: 12px;    --label-lh: 16px;
  --body-size: 16px;     --body-lh: 24px;
}

/* Tablet */
@media (min-width: 768px) {
  :root {
    --gutter: 48px;
    --space-top: 48px;
    --space-section: 52px;
    --space-bottom: 80px;
    --footer-pad: 32px;
    --footer-logo-h: 28px;

    --intro-size: 24px;    --intro-lh: 34px;
    --heading-size: 24px;  --heading-lh: 28px;
    --label-size: 13px;    --label-lh: 17px;
    --body-size: 17px;     --body-lh: 26px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  :root {
    --gutter: 80px;
    --space-top: 80px;
    --space-section: 64px;
    --space-bottom: 96px;
    --footer-pad: 40px;
    --footer-logo-h: 32px;

    --intro-size: 30px;    --intro-lh: 42px;
    --heading-size: 28px;  --heading-lh: 32px;
    --label-size: 14px;    --label-lh: 18px;
    --body-size: 18px;     --body-lh: 28px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
.main {
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--space-top) var(--gutter) var(--space-bottom);
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
}

/* Hero-logo */
.hero {
  margin: 0;
  color: var(--color-accent);
  line-height: 0;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.logo--horizontal {
  display: none;
}

@media (min-width: 768px) {
  .logo--horizontal { display: block; }
  .logo--square { display: none; }
}

/* Intro */
.intro {
  margin: 0;
  max-width: 880px;
  font-size: var(--intro-size);
  line-height: var(--intro-lh);
  font-weight: 400;
}

.intro__payoff {
  color: var(--color-accent);
}

/* Contactkolommen */
.contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-columns);
}

@media (min-width: 1024px) {
  .contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.contact {
  border-top: 2px solid var(--color-accent);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 767px) {
  .contact { padding-top: 16px; gap: 16px; }
}

.contact__name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--heading-size);
  line-height: var(--heading-lh);
  letter-spacing: -0.01em;
  color: var(--color-accent);
}

.contact__rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__rows div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__rows dt {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--label-size);
  line-height: var(--label-lh);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact__rows dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact__person {
  font-weight: 700;
}

/* Links */
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Footer */
.footer {
  flex-shrink: 0;
  background: var(--color-bg-accent);
  color: var(--color-on-accent);
  padding: var(--footer-pad) var(--gutter);
}

.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 767px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer__social {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-on-accent);
  font-size: var(--body-size);
  line-height: var(--body-lh);
}

.footer__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer__social span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.footer__social:focus-visible {
  outline-color: var(--color-on-accent);
}

.logo--footer {
  width: auto;
  height: var(--footer-logo-h);
}
