/* =========================================================
   BALLPINNETJE — ESOTERIE
   Versie 8

   Wereld: Onderzoeken
   Doel: intro + bibliotheek van bestaande esoteriestukken.
   ========================================================= */


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

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

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

  --silver-soft: #dfe3e8;
  --silver-deep: #9fa9b7;

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

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

  --max-width: 1180px;

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


/* =========================================================
   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
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--header);

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

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


.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. HERBRUIKBARE EYEBROW
   ========================================================= */

.eyebrow {
  margin:
    0
    0
    0.5rem;

  color: var(--blue);

  font-size: 0.86rem;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}



/* =========================================================
   6. VAST ONDERZOEKSPAD
   ========================================================= */

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


/* =========================================================
   7. HERO
   ========================================================= */

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

  margin-inline: auto;

  padding:
    clamp(1.8rem, 3vw, 3rem)
    0
    clamp(2.4rem, 4vw, 4rem);

  display: grid;

  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(250px, 0.8fr);

  align-items: center;

  gap:
    clamp(
      2rem,
      6vw,
      6rem
    );
}


.hero h1 {
  margin: 0;

  color: var(--blue);

  font-size:
    clamp(
      4rem,
      10vw,
      8.2rem
    );

  line-height: 0.9;

  letter-spacing: -0.07em;
}


.hero-line {
  margin:
    1.4rem
    0
    0;

  color: var(--yellow-dark);

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

  font-weight: 700;
}


.hero-line span {
  color: var(--blue);
  font-weight: 850;
}


.hero-text {
  max-width: 690px;

  margin:
    1.15rem
    0
    0;

  color: var(--muted);

  font-size:
    clamp(
      1.03rem,
      1.75vw,
      1.2rem
    );
}


.hero-mark {
  width:
    clamp(
      230px,
      24vw,
      300px
    );

  aspect-ratio: 1 / 1;
  min-height: 0;

  display: grid;
  place-items: center;

  justify-self: center;
  align-self: center;

  padding:
    clamp(
      1.4rem,
      2.5vw,
      2rem
    );

  overflow: hidden;

  border:
    1px solid
    rgba(6, 43, 116, 0.24);

  border-radius: 34px;

  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.24),
	 rgba(255, 255, 255, 0.76),
      rgba(105, 125, 157, 0.66) 44%,
      rgba(56, 74, 107, 0.48) 100%
    ),
    linear-gradient(
      145deg,
      #9faebe,
      #7f8fa5
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.44),
    inset 0 -14px 30px
    rgba(36, 47, 65, 0.11),
    8px 16px 32px
    rgba(24, 35, 55, 0.20);
}


.hero-mark img {
  width:
    clamp(
      130px,
      14vw,
      170px
    );

  max-width: 64%;
  max-height: 64%;

  display: block;
  object-fit: contain;

  margin: 0 auto;

  filter:
    drop-shadow(
      0 0 14px
      rgba(242, 196, 0, 0.28)
    )
    drop-shadow(
      0 10px 18px
      rgba(6, 43, 116, 0.28)
    );
}


/* =========================================================
   8. INTRO
   ========================================================= */

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

  margin-inline: auto;

  padding:
    0
    0
    clamp(1.2rem, 2vw, 2rem);

  display: grid;

  grid-template-columns:
    1fr
    minmax(420px, 610px)
    1fr;

  gap: 2rem;

  align-items: start;
}




.intro-card {
  grid-column: 2;

  padding:
    clamp(
      1.6rem,
      3vw,
      2.1rem
    );

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

  border-radius: 28px;

  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(255, 255, 255, 0.58),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #cfdcf3 0%,
      #dbe4ef 52%,
      #e6e9ee 100%
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.82),
    inset 0 -12px 28px
    rgba(10, 63, 168, 0.05),
    10px 20px 38px
    rgba(24, 35, 55, 0.16);
}


.intro-card h2 {
  margin: 0;

  color: var(--blue-dark);

  font-size:
    clamp(
      1.55rem,
      2.6vw,
      2.1rem
    );

  line-height: 1.08;
}


.intro-card p:not(.eyebrow) {
  color: var(--muted);

  font-size:
    clamp(
      1.08rem,
      1.5vw,
      1.18rem
    );

  line-height: 1.72;
}


.intro-card p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   8. BIBLIOTHEEK
   ========================================================= */

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

  margin-inline: auto;

  padding:
    clamp(1.1rem, 1.8vw, 1.7rem)
    0
    clamp(1.5rem, 2.5vw, 2.4rem);

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


.library-heading {
  max-width: 760px;

  margin-bottom:
    clamp(
      1.5rem,
      3vw,
      2.4rem
    );
}


.library-heading h2 {
  margin: 0;

  color: var(--blue-dark);

  font-size:
    clamp(
      2.2rem,
      5vw,
      4rem
    );

  line-height: 1;

  letter-spacing: -0.05em;
}


.library-heading p:not(.eyebrow) {
  margin:
    0.7rem
    0
    0;

  color: var(--muted);
}


/* Alleen de artikelenlijst scrolt; de bibliotheekkop blijft erboven staan.
   De scrollbalk is verborgen, maar scrollen blijft mogelijk. */
.library-list {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none; /* Firefox */

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

.library-list::-webkit-scrollbar {
  display: none; /* Chrome, Edge en Safari */
}

.library-list:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}


.library-item {
  min-height: 78px;

  display: grid;

  grid-template-columns:
    170px
    minmax(0, 1fr)
    48px;

  align-items: center;

  gap: 1rem;

  padding:
    1rem
    0.4rem;

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

  transition:
    background var(--transition),
    padding var(--transition);
}


.library-item:hover {
  padding-left: 0.9rem;
  padding-right: 0.9rem;

  background:
    rgba(255, 255, 255, 0.23);
}


.library-item time {
  color: var(--muted);

  font-size: 0.94rem;
  font-weight: 650;
}


.library-item h3 {
  margin: 0;

  font-size:
    clamp(
      1rem,
      1.8vw,
      1.2rem
    );

  line-height: 1.28;
}


.library-item h3 a {
  color: var(--blue-dark);

  text-decoration: none;
}


.library-arrow {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  justify-self: end;

  color: var(--blue);

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

  border-radius: 50%;

  text-decoration: none;
  font-weight: 800;

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


.library-item:hover .library-arrow {
  transform: translateX(3px);

  background: var(--blue-soft);
}


/* =========================================================
   9. FOOTER
   ========================================================= */

.site-footer {
  margin-top: 0.8rem;

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


/* =========================================================
   10. DESKTOP
   ========================================================= */

@media (min-width: 821px) {

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


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

}


/* =========================================================
   11. TABLET
   ========================================================= */

@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;
  }


  .hero-mark {
    width:
      clamp(
        220px,
        62vw,
        270px
      );
  }


  .intro-zone {
    grid-template-columns: 1fr;
  }


  .intro-card {
    grid-column: 1;
  }

}


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

@media (max-width: 820px) {

  /* Op tablet en mobiel scrolt de pagina zelf, niet de artikelenlijst. */
  .library-list {
    max-height: none;
    overflow-y: visible;
    overscroll-behavior-y: auto;
  }

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


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

}


/* =========================================================
   13. MOBIEL
   ========================================================= */

@media (max-width: 620px) {

  .hero {
    padding-top: 1.6rem;
  }


  .hero h1 {
    font-size:
      clamp(
        3.4rem,
        17vw,
        5.8rem
      );
  }


  .hero-mark {
    width:
      min(
        76vw,
        248px
      );

    padding: 1.25rem;

    border-radius: 28px;
  }


  .hero-mark img {
    width:
      min(
        44vw,
        145px
      );
  }


  .library-item {
    min-height: 0;

    grid-template-columns:
      1fr
      42px;

    gap:
      0.35rem
      0.75rem;

    padding:
      1rem
      0.2rem;
  }


  .library-item time {
    grid-column: 1;

    font-size: 0.85rem;
  }


  .library-item h3 {
    grid-column: 1;

    font-size: 1rem;
  }


  .library-arrow {
    grid-column: 2;
    grid-row: 1 / 3;

    align-self: center;
  }

}


/* =========================================================
   14. KLEIN MOBIEL
   ========================================================= */

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


  .hero-line {
    font-size: 1rem;
  }


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


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

}


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

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

  html {
    scroll-behavior: auto;
  }


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

    animation-duration:
      0.01ms !important;
  }

}


/* =========================================================
   16. UITGELICHT OP DE ESOTERIE-LANDINGSPAGINA
   ========================================================= */
.featured {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(1.2rem, 2.4vw, 2rem) 0 clamp(2rem, 3vw, 3rem);
  border-top: 1px solid rgba(10, 63, 168, 0.10);
}
.featured-heading { margin-bottom: 1.1rem; }
.featured-heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.featured-list { border-top: 1px solid rgba(10, 63, 168, 0.16); }
.featured-more, .library-back a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.35rem;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}
.featured-more:hover, .library-back a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   17. LOSSE BIBLIOTHEEKPAGINA — SCROLLPRINCIPE WEBLOG
   De vaste wereldheader en het vaste kruimelpad zijn behouden.
   Alleen de bibliotheekkop is sticky, niet de artikelenlijst.
   ========================================================= */
.bibliotheek-sticky {
  position: sticky;
  top: calc(var(--header-height) + var(--breadcrumb-height));
  z-index: 900;
  background: var(--silver-soft);
}
.bibliotheek-intro {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding: clamp(1.35rem, 2.4vw, 2rem) 0 clamp(.9rem, 1.7vw, 1.35rem);
}
.bibliotheek-intro h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.065em;
}
.bibliotheek-divider {
  width: min(calc(100% - 2rem), var(--max-width));
  height: 2px;
  margin: 0 auto;
  background: rgba(200, 159, 0, .82);
}
.library-page .library-full {
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 0;
}
/* Overschrijf de oude 320px-scroller UITSLUITEND op de losse bibliotheek. */
.library-page .library-list {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-width: auto;
  border-top: 0;
}
.library-page .library-item {
  grid-template-columns: minmax(120px, 155px) minmax(0, 1fr) 48px;
  gap: clamp(1.25rem, 4vw, 3rem);
}
.library-back { margin: 0; }
@media (max-width: 620px) {
  .bibliotheek-intro { padding: 1.1rem 0 .8rem; }
  .bibliotheek-intro h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .library-page .library-item {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: .35rem .75rem;
  }
}
