/* =========================================================
   BALLPINNETJE — Esoterie artikelsjabloon | v4

   Gebaseerd op Gedichtsjabloon v4.
   Verschillen:
   - wereld Onderzoeken / Esoterie
   - tekst links uitgelijnd
   - ruimere leesbreedte
   - vast schrijverspad onder de hoofdheader
   - titel + datum staan in het artikel en scrollen mee
   ========================================================= */


/* =========================================================
   1. BASISVARIABELEN
   ========================================================= */

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

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

  --silver: #c3cad4;
  --silver-soft: #e8ebef;
  --silver-deep: #9fa9b7;

  --ink: #171717;
  --muted: #626262;
  --line: #cfd5dd;

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

  --max-width: 1180px;
  --reading-width: 880px;

  --header-height: 95px;
  --breadcrumb-height: 42px;

  --radius: 24px;

  --shadow:
    0 12px 38px
    rgba(0, 0, 0, 0.07);

  --transition:
    180ms ease;
}


/* =========================================================
   2. BASIS
   ========================================================= */

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


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  color: var(--ink);
  background: #dfe3e8;

  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;
}


/* =========================================================
   3. SKIPLINK
   ========================================================= */

.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;
}


/* =========================================================
   4. HEADER — wereld Onderzoeken
   ========================================================= */

.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: var(--header-height);

  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(--blue);

  font-size:
    clamp(
      1.55rem,
      2.4vw,
      2rem
    );

  font-weight: 850;

  letter-spacing: -0.035em;
}


.main-nav {
  display: flex;
  align-items: center;

  gap: 0.25rem;
}


.main-nav a {
  padding:
    0.7rem
    0.9rem;

  color: var(--muted);

  font-size: 1.05rem;

  text-decoration: none;

  border-radius: 999px;

  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}


.main-nav a:hover,
.main-nav a.active {
  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);
}


/* =========================================================
   5. VAST SCHRIJVERSPAD
   ========================================================= */

.site-breadcrumb {
  position: sticky;
  top: var(--header-height);
  z-index: 990;

  min-height: var(--breadcrumb-height);

  display: flex;
  align-items: center;

  border-bottom:
    1px solid
    rgba(6, 43, 116, 0.12);

  background:
    rgba(223, 227, 232, 0.96);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


.site-breadcrumb ol {
  width:
    min(
      calc(100% - 2rem),
      var(--max-width)
    );

  margin: 0 auto;
  padding: 0;

  display: flex;
  align-items: center;
  flex-wrap: nowrap;

  gap: 0.45rem;

  overflow-x: auto;
  overflow-y: hidden;

  color: var(--muted);

  font-size: 0.9rem;

  list-style: none;
  white-space: nowrap;

  scrollbar-width: none;
}


.site-breadcrumb ol::-webkit-scrollbar {
  display: none;
}


.site-breadcrumb a {
  color: var(--blue);

  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}


.site-breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}


/* =========================================================
   6. ARTIKELPAGINA
   ========================================================= */

.article-page {
  width:
    min(
      calc(100% - 2rem),
      var(--max-width)
    );

  margin-inline: auto;

  padding:
    clamp(
      1.4rem,
      2.7vw,
      2.3rem
    )
    0
    clamp(
      1.7rem,
      3vw,
      2.6rem
    );
}


.article-reader {
  width:
    min(
      100%,
      var(--reading-width)
    );

  margin-inline: auto;

  padding:
    clamp(
      2rem,
      5vw,
      4rem
    );

  position: relative;
  isolation: isolate;

  overflow: hidden;

  border:
    1px solid
    rgba(10, 63, 168, 0.18);

  border-radius: 32px;

  background: #cbd3dd;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.78),
    inset 0 -10px 24px
    rgba(10, 63, 168, 0.035),
    10px 18px 34px
    rgba(24, 35, 55, 0.16);
}


.article-reader::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background: rgba(203, 211, 221, 0.84);
      

  opacity: 0.38;

  pointer-events: none;
}


.article-reader > * {
  position: relative;
  z-index: 1;
}


/* =========================================================
   7. ARTIKELKOP — scrollt mee met het artikel
   ========================================================= */

.article-meta {
  max-width: 760px;

  margin:
    0
    auto
    clamp(1.8rem, 3vw, 2.6rem);

  padding-bottom:
    clamp(1.1rem, 2vw, 1.5rem);

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap:
    0.75rem
    1.5rem;

  border-bottom:
    1px solid
    rgba(10, 63, 168, 0.16);
}


.article-meta h1 {
  margin: 0;

  color: var(--blue-dark);

  font-size:
    clamp(
      1.65rem,
      3vw,
      2.0rem
    );

  line-height: 1.02;

  letter-spacing: -0.045em;
}


.article-meta time {
  flex: 0 0 auto;

  color: var(--muted);

  font-size: 0.92rem;
  font-weight: 700;

  white-space: nowrap;
}


/* =========================================================
   8. ARTIKELTEKST
   ========================================================= */

.article-text {
  max-width: 760px;

  margin-inline: auto;

  color: #2e3339;

  text-align: left;

  font-size:
    clamp(
      1.06rem,
      1.7vw,
      1.18rem
    );

  line-height: 1.82;
}


.article-text p {
  margin:
    0
    0
    1.55rem;
}


.article-text p:last-child {
  margin-bottom: 0;
}


.article-text h2 {
  margin:
    2.5rem
    0
    1rem;

  color: var(--blue-dark);

  font-size:
    clamp(
      1.5rem,
      3vw,
      2.1rem
    );

  line-height: 1.14;

  letter-spacing: -0.03em;
}


.article-text h3 {
  margin:
    2rem
    0
    0.8rem;

  color: var(--blue-dark);

  font-size:
    clamp(
      1.2rem,
      2.4vw,
      1.55rem
    );

  line-height: 1.2;
}


.article-text blockquote {
  margin:
    2rem
    0;

  padding:
    0.2rem
    0
    0.2rem
    1.3rem;

  color: #3a424d;

  border-left:
    3px solid
    var(--yellow-dark);

  font-style: italic;
}


/* =========================================================
   9. NAVIGATIE NA HET ARTIKEL
   ========================================================= */

.article-actions {
  margin-top:
    clamp(
      3rem,
      6vw,
      5rem
    );

  padding-top: 1.35rem;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  gap:
    1rem
    1.5rem;

  border-top:
    1px solid
    rgba(10, 63, 168, 0.16);
}


.article-actions a {
  color: var(--blue-dark);

  font-weight: 800;

  text-decoration: none;
}


.article-actions a:hover {
  color: var(--blue);

  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================================
   10. FOOTER — wereld Onderzoeken
   ========================================================= */

.site-footer {
  margin-top: 0;

  padding:
    3rem
    0
    1.5rem;

  color: var(--ink);
  background: var(--footer);
}


.footer-inner {
  width:
    min(
      calc(100% - 2rem),
      var(--max-width)
    );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    1.2fr
    auto;

  gap: 2rem;

  align-items: start;
}


.footer-brand {
  min-width: 0;
}


.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-world-active {
  color: var(--blue-dark);

  font-weight: 850;
}


.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;
}


/* =========================================================
   11. DESKTOP
   ========================================================= */

@media (min-width: 821px) {

  .header-inner {
    min-height: var(--header-height);
  }


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

}


/* =========================================================
   12. TABLET / MOBIELE NAVIGATIE
   ========================================================= */

@media (max-width: 820px) {

  :root {
    --header-height: 62px;
    --breadcrumb-height: 34px;
  }


  .menu-toggle {
    display: block;
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    border-radius: 12px;
  }


  .menu-toggle span {
    width: 20px;
    margin: 4px auto;
  }


  .header-inner {
    min-height: var(--header-height);

    gap: 0.75rem;
  }


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


  .site-breadcrumb ol {
    width:
      min(
        calc(100% - 1.4rem),
        var(--max-width)
      );

    gap: 0.35rem;

    font-size: 0.82rem;
  }


  .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: var(--shadow);
  }


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


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



  .article-reader {
    border-radius: 28px;
  }


  .site-footer {
    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-inner p {
    margin-top: 0.2rem;
  }


  .footer-nav {
    justify-content: flex-start;

    gap:
      0.35rem
      1rem;
  }


  .copyright {
    margin-top: 1.25rem;

    padding-top: 1rem;

    align-items: center;

    gap: 0.9rem;
  }

}


/* =========================================================
   13. KLEINER SCHERM
   ========================================================= */

@media (max-width: 560px) {









  .article-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;

    align-items: flex-start;
    flex-direction: column;

    gap: 0.45rem;
  }


  .article-meta h1 {
    font-size:
      clamp(
        1.45rem,
        6vw,
        1.5rem
      );
  }


  .article-meta time {
    font-size: 0.90rem;
  }


  .article-page {
    width:
      min(
        calc(100% - 1.2rem),
        var(--max-width)
      );

    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }


  .article-reader {
    padding:
      1.6rem
      1.35rem
      1.8rem;

    border-radius: 24px;

    box-shadow:
      inset 0 1px 0
      rgba(255, 255, 255, 0.72),
      4px 8px 18px
      rgba(24, 35, 55, 0.08);
  }


  .article-text {
    font-size: 1.10rem;
    line-height: 1.78;
  }


  .article-actions {
    flex-direction: column;
    align-items: flex-start;
  }


  .footer-brand-name {
    font-size: 1.05rem;
  }


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


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


  .copyright {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 0.75rem;

    font-size: 0.82rem;
  }


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


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

}


/* =========================================================
   14. ZEER KLEIN SCHERM
   ========================================================= */

@media (max-width: 480px) {

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


  .site-breadcrumb ol {
    width:
      min(
        calc(100% - 1rem),
        var(--max-width)
      );

    font-size: 0.8rem;
  }

}


/* =========================================================
   15. GEREDUCEERDE BEWEGING
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


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

    animation-duration:
      0.01ms !important;
  }

}
