/* =========================================================
   BALLPINNETJE — Weblog | v2
   Gebaseerd op dezelfde architectuur als Home.
   ========================================================= */

:root {
  --blue: #0a3fa8;
  --blue-dark: #062b74;
  --blue-soft: #eaf1ff;

  --yellow: #f2c400;
  --yellow-dark: #c89f00;

  --silver-soft: #e8ebef;
  --ink: #171717;
  --muted: #626262;
  --line: #cfd5dd;

  --paper: #ffffff;
  --header: rgba(203, 210, 220, 0.96);
  --footer: #cbd2dc;

  --max-width: 1180px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--silver-soft);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.8rem 1rem;
  color: white;
  background: var(--blue-dark);
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

/* HEADER ===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(6, 43, 116, 0.16);
  background: var(--header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-name {
  color: var(--yellow-dark);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.brand-name strong {
  color: var(--blue);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.7rem 0.9rem;
  color: var(--muted);
  border-radius: 999px;
  font-size: 1.05rem;
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition);
}

.main-nav a:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

/* INHOUD ===================================================== */

.page-intro,
.updates {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

/* "Splitsen" zoals vastzetten in Excel:
   op desktop blijft dit blok onder de vaste header staan,
   terwijl de updates eronder scrollen. */
.weblog-sticky {
  position: sticky;
  top: 95px;
  z-index: 900;
  background: var(--silver-soft);
}

.page-intro {
  padding: clamp(1.35rem, 2.4vw, 2rem) 0 clamp(0.9rem, 1.7vw, 1.35rem);
}

.breadcrumb {
  margin-bottom: clamp(1rem, 1.8vw, 1.4rem);
}

.breadcrumb ol {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  list-style: none;
}

.breadcrumb a {
  color: var(--blue);
  text-underline-offset: 4px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.intro-slot {
  min-height: clamp(1.5rem, 3vw, 2.4rem);
}

.weblog-divider {
  width: min(calc(100% - 2rem), var(--max-width));
  height: 2px;
  margin: 0 auto;
  background: rgba(200, 159, 0, 0.82);
}

/* ACTUELE REGELS ============================================= */

.updates {
  padding-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.8rem);
}

.update-list {
  border-top: 0;
}

.update-item {
  display: grid;
  grid-template-columns: minmax(120px, 155px) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 1.8rem) 0;
  border-bottom: 1px solid rgba(6, 43, 116, 0.14);
}

.update-item time {
  color: var(--blue-dark);
  font-weight: 800;
  white-space: nowrap;
}

.update-item p {
  max-width: 800px;
  margin: 0;
  color: #39414a;
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
}

.update-item:hover p {
  color: var(--ink);
}

.back-home {
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
}

.back-home a {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.back-home a:hover {
  color: var(--blue);
}

/* FOOTER ===================================================== */

.site-footer {
  margin-top: 0.5rem;
  padding: 3rem 0 1.5rem;
  color: var(--ink);
  background: var(--footer);
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand-name {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1.2;
}

.brand-blue {
  color: var(--blue);
}

.brand-yellow {
  color: var(--yellow-dark);
}

.footer-inner p {
  margin: 0.3rem 0 0;
  color: #4f5966;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 1.5rem;
}

.footer-nav a {
  color: var(--blue);
  text-underline-offset: 4px;
}

.copyright {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #4f5966;
  border-top: 1px solid rgba(6, 43, 116, 0.14);
  font-size: 0.9rem;
}

.footer-signatuur {
  width: 150px;
  max-width: 70%;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

/* RESPONSIVE ================================================= */

@media (min-width: 821px) {
  .header-inner {
    min-height: 95px;
  }

  .brand-name {
    font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  }
}

@media (max-width: 820px) {
  .header-inner {
    gap: 1rem;
  }

  .weblog-sticky {
    top: 76px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 1rem;
  }

  .site-footer {
    margin-top: 1rem;
    padding: 2rem 0 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-brand-name {
    font-style: italic;
  }

  .footer-brand-name .brand-blue,
  .footer-brand-name .brand-yellow {
    color: var(--ink);
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 0.35rem 1rem;
  }

  .copyright {
    margin-top: 1.25rem;
    padding-top: 1rem;
    gap: 0.9rem;
  }
}

@media (max-width: 620px) {
  .page-intro {
    padding: 1.1rem 0 0.8rem;
  }

  .breadcrumb {
    margin-bottom: 0.85rem;
  }

  .intro-slot {
    min-height: 1.35rem;
  }

  .page-intro h1 {
    font-size: clamp(3.5rem, 20vw, 5.7rem);
  }

  .update-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1.2rem 0 1.35rem;
  }

  .update-item time {
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .footer-brand-name {
    font-size: 1.05rem;
  }

  .footer-inner p,
  .footer-nav {
    font-size: 0.95rem;
  }

  .copyright {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
  }

  .copyright span {
    max-width: 215px;
  }

  .footer-signatuur {
    width: 110px;
    max-width: 34%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 68px;
  }

  .weblog-sticky {
    top: 68px;
  }

  .brand-name {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
