/* ============================================================
   BALDERSTONE — MAIN STYLESHEET
   v1.0 · April 2026

   Leeswijzer:
   1. Design tokens (variabelen)
   2. Reset & base
   3. Typografie
   4. Layout helpers (container, grid)
   5. Nav
   6. Buttons
   7. Badges & labels
   8. Cards (level, post, category)
   9. Section header
   10. Hero
   11. Stats strip
   12. Category section (level select)
   13. Newsletter
   14. Footer
   15. Article (post detail)
   16. Filters
   17. Animations
   18. Utility classes
   19. Responsive breakpoints
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* Colors — kern */
    --ink:         #1a1a1a;
    --ink-soft:    #2a2a2a;
    --paper:       #faf8f3;
    --bone:        #f5f1e8;

    /* Colors — mint accent */
    --mint:        #3ddc97;
    --mint-dark:   #0a3d2c;
    --mint-deep:   #062a1e;

    /* Colors — ondersteunend */
    --accent-orange: #ff6b35;
    --accent-yellow: #ffd23f;

    /* Colors — utility */
    --muted: #6b6b6b;
    --line:  #e5e1d6;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'DM Mono', ui-monospace, monospace;
    --font-pixel:   'Press Start 2P', monospace;
    --font-pixel-sm:'Silkscreen', monospace;
    --font-pixel-vt:'VT323', monospace;

    /* Spacing */
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  24px;
    --space-lg:  40px;
    --space-xl:  60px;
    --space-2xl: 80px;
    --space-3xl: 120px;

    /* Containers */
    --container-narrow:  680px;
    --container-default: 1200px;
    --container-wide:    1320px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fast: 0.1s;
    --base: 0.15s;
    --slow: 0.2s;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--mint-dark);
    outline-offset: 2px;
}

/* Pixel-SVG rendering */
.pixel {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}


/* ============================================================
   3. TYPOGRAFIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1;
}

h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

h4 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

p { line-height: 1.6; }

.lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.overline {
    font-family: var(--font-pixel-sm);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mint-dark);
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

/* Pixel word accent in koppen */
.pixel-word {
    font-family: var(--font-pixel);
    font-size: 0.58em;
    background: var(--mint);
    color: var(--mint-deep);
    padding: 4px 10px;
    display: inline-block;
    line-height: 1.3;
    transform: translateY(-6px);
    border: 2px solid var(--ink);
}

/* Highlighter underline in koppen */
h1 mark, h2 mark, h3 mark {
    background: var(--accent-yellow);
    padding: 0 4px;
    color: var(--ink);
}

h1 em, h2 em {
    font-style: normal;
    background: linear-gradient(180deg, transparent 60%, var(--mint) 60%);
    padding: 0 2px;
}


/* ============================================================
   4. LAYOUT HELPERS
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-default);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow { max-width: var(--container-narrow); }
.container-wide   { max-width: var(--container-wide); }

.section {
    padding: clamp(56px, 8vw, 80px) 0;
}

.section-dark {
    background: var(--ink);
    color: var(--paper);
}

.section-bone {
    background: var(--bone);
}

/* Grids — featured en archief */
.level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* ============================================================
   5. NAV
   ============================================================ */
.nav {
    background: var(--ink);
    color: var(--paper);
    border-bottom: 3px solid var(--ink);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: var(--container-default);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.nav-logo {
    background: var(--mint);
    color: var(--mint-deep);
    padding: 16px 20px;
    font-family: var(--font-pixel);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 3px solid var(--ink);
    transition: background var(--base) var(--ease);
    text-decoration: none;
}

.nav-logo:hover {
    background: var(--paper);
}

.nav-links {
    display: flex;
    list-style: none;
    flex: 1;
}

.nav-links li {
    border-right: 1px solid var(--ink-soft);
}

.nav-links a {
    display: block;
    padding: 18px 22px;
    font-family: var(--font-pixel-sm);
    font-weight: 700;
    font-size: 13px;
    color: var(--paper);
    letter-spacing: 0.05em;
    transition: all var(--base) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--mint);
    color: var(--mint-deep);
}

.nav-status {
    margin-left: auto;
    padding: 18px 20px;
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    color: var(--mint);
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid var(--ink-soft);
}

.nav-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--mint);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.mobile-menu-btn {
    display: none;
    background: var(--mint);
    color: var(--mint-deep);
    padding: 0 20px;
    font-family: var(--font-pixel);
    font-size: 12px;
    margin-left: auto;
    border: none;
    cursor: pointer;
}

/* Mobile nav overlay (active when .nav-open) */
.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    z-index: 200;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.nav-open .nav-links li {
    border-right: none;
    border-bottom: 1px solid var(--ink-soft);
    width: 100%;
    text-align: center;
}

.nav-open .nav-links a {
    padding: 20px;
    font-size: 16px;
}

.nav-open .mobile-menu-btn {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    height: 56px;
}


/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: var(--font-pixel-sm);
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--ink);
    letter-spacing: 0.05em;
    transition: all var(--fast) var(--ease);
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 4px 4px 0 var(--mint);
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--mint);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-mint {
    background: var(--mint);
    color: var(--mint-deep);
    box-shadow: 4px 4px 0 var(--ink);
}

.btn-mint:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}

/* Text link met arrow */
.link-arrow {
    font-family: var(--font-pixel-sm);
    font-size: 12px;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--base) var(--ease);
}

.link-arrow:hover {
    color: var(--mint-dark);
    gap: 10px;
}


/* ============================================================
   7. BADGES & LABELS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--ink);
    letter-spacing: 0.05em;
}

.badge-mint {
    background: var(--mint);
    color: var(--mint-deep);
}

.badge-ink {
    background: var(--ink);
    color: var(--mint);
    border-color: var(--ink);
}

.badge-live {
    font-family: var(--font-pixel-sm);
    font-size: 12px;
    color: var(--mint-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 0;
}

.badge-live::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--mint);
    animation: blink 1s steps(2) infinite;
}


/* ============================================================
   8. CARDS
   ============================================================ */

/* Level-card — zwart, voor featured posts */
.level-card {
    background: var(--ink);
    color: var(--paper);
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--slow) var(--ease);
    text-decoration: none;
}

.level-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--mint);
}

.level-card-top {
    background: var(--mint);
    color: var(--mint-deep);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    font-weight: 700;
    border-bottom: 3px solid var(--ink);
}

.level-card-img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--mint-dark), var(--ink));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--ink);
}

.level-card-img svg {
    width: 60%;
    height: 60%;
    image-rendering: pixelated;
}

.level-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 4px;
    pointer-events: none;
}

/* Varianten voor level-card backgrounds */
.img-chatgpt    { background: linear-gradient(135deg, #0a3d2c, #1a1a1a); }
.img-claude     { background: linear-gradient(135deg, #5a3a1a, #1a1a1a); }
.img-midjourney { background: linear-gradient(135deg, #2a1a3d, #1a1a1a); }
.img-automate   { background: linear-gradient(135deg, #3d2a1a, #1a1a1a); }
.img-coding     { background: linear-gradient(135deg, #1a2a3d, #1a1a1a); }
.img-writing    { background: linear-gradient(135deg, #3d1a2a, #1a1a1a); }

.level-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.level-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--paper);
}

.level-card-body p {
    font-family: var(--font-pixel-vt);
    font-size: 18px;
    line-height: 1.3;
    color: #c8c8c0;
    margin-bottom: 20px;
    flex: 1;
}

.level-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px dashed #444;
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    color: var(--mint);
}

.level-card-meta .read {
    color: #888;
}

/* Post-card — lichter, voor archief */
.post-card {
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--base) var(--ease);
    text-decoration: none;
}

.post-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--mint);
}

.post-card-img {
    aspect-ratio: 16/10;
    background: var(--bone);
    border-bottom: 2px solid var(--ink);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-img svg {
    width: 50%;
    height: 50%;
    image-rendering: pixelated;
}

.post-card-img > img,
.level-card-img > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post-card achtergrond varianten */
.post-card-img.bg-mint   { background: var(--mint); }
.post-card-img.bg-orange { background: var(--accent-orange); }
.post-card-img.bg-yellow { background: var(--accent-yellow); }
.post-card-img.bg-bone   { background: var(--bone); }

.post-card-img .cat-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ink);
    color: var(--mint);
    padding: 3px 8px;
    font-family: var(--font-pixel-sm);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.post-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-body h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

.post-card-body p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 16px;
    flex: 1;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

/* Category-tile — voor level select section */
.cat-tile {
    background: var(--ink-soft);
    border: 2px solid #333;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all var(--base) var(--ease);
    text-decoration: none;
    color: inherit;
}

.cat-tile:hover {
    border-color: var(--mint);
    background: var(--mint-deep);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--mint);
}

.cat-tile .world {
    font-family: var(--font-pixel-sm);
    font-size: 10px;
    color: var(--mint);
    letter-spacing: 0.1em;
}

.cat-tile .icon {
    font-size: 36px;
    line-height: 1;
    margin: 6px 0;
}

.cat-tile h3 {
    font-family: var(--font-pixel);
    font-size: 11px;
    line-height: 1.5;
    color: var(--paper);
}

.cat-tile .count {
    font-family: var(--font-pixel-vt);
    font-size: 16px;
    color: #888;
}

.cat-tile.locked {
    opacity: 0.45;
    pointer-events: none;
}

.cat-tile.locked::after {
    content: "🔒";
    font-size: 14px;
}


/* ============================================================
   9. SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--ink);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.section-header .num {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--mint-deep);
    background: var(--mint);
    padding: 6px 10px;
    border: 2px solid var(--ink);
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.section-header .link {
    margin-left: auto;
    font-family: var(--font-pixel-sm);
    font-size: 12px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--base) var(--ease);
    text-decoration: none;
}

.section-header .link:hover {
    color: var(--mint-dark);
    gap: 10px;
}

/* Op donkere secties */
.section-dark .section-header {
    border-bottom-color: var(--mint);
}

.section-dark .section-header h2 {
    color: var(--paper);
}

.section-dark .section-header .link {
    color: var(--mint);
}

/* Cat-section (donker, zelfde aanpassing als section-dark) */
.cat-section .section-header {
    border-bottom-color: var(--mint);
}

.cat-section .section-header h2 {
    color: var(--paper);
}

.cat-section .section-header .link {
    color: var(--mint);
}


/* ============================================================
   10. HERO
   ============================================================ */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--mint);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--mint);
    padding: 6px 12px;
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--mint);
    animation: pulse 2s infinite;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-lead strong {
    font-weight: 600;
    background: linear-gradient(180deg, transparent 60%, var(--mint) 60%);
    padding: 0 2px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-meta {
    display: flex;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.hero-meta strong {
    color: var(--mint-dark);
    font-weight: 500;
}

/* Mascotte */
.hero-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-mascot svg {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.mascot-float {
    animation: float 4s ease-in-out infinite;
}

.mascot-bubble {
    position: absolute;
    top: 10%;
    right: -10px;
    background: var(--paper);
    border: 2px solid var(--ink);
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    box-shadow: 3px 3px 0 var(--ink);
    max-width: 180px;
    line-height: 1.4;
}

.mascot-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--paper);
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
}


/* ============================================================
   11. STATS STRIP
   ============================================================ */
.stats {
    background: var(--bone);
    padding: 40px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat {
    text-align: center;
    padding: 20px;
    border-right: 2px dashed var(--ink);
}

.stat:last-child {
    border-right: none;
}

.stat .v {
    font-family: var(--font-pixel);
    font-size: clamp(22px, 3vw, 28px);
    color: var(--mint-deep);
    margin-bottom: 8px;
}

.stat .l {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}


/* ============================================================
   12. CATEGORY SECTION (LEVEL SELECT STYLE)
   ============================================================ */
.cat-section {
    background: var(--ink);
    color: var(--paper);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cat-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.cat-intro {
    font-family: var(--font-pixel-vt);
    font-size: 22px;
    color: #c8c8c0;
    margin-bottom: 40px;
    max-width: 600px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}


/* ============================================================
   13. NEWSLETTER
   ============================================================ */
.newsletter-section {
    padding: 80px 0;
}

.newsletter {
    background: var(--ink);
    color: var(--paper);
    padding: 48px;
    border: 3px solid var(--ink);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: var(--mint);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.newsletter-left {
    position: relative;
    z-index: 1;
}

.newsletter .pre {
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    color: var(--mint);
    letter-spacing: 0.2em;
    margin-bottom: 14px;
}

.newsletter h3 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--paper);
}

.newsletter h3 em {
    font-family: var(--font-pixel);
    font-size: 20px;
    font-style: normal;
    color: var(--mint);
    background: var(--mint-deep);
    padding: 2px 8px;
    display: inline-block;
    border: 2px solid var(--mint);
}

.newsletter p {
    font-family: var(--font-pixel-vt);
    font-size: 20px;
    color: #c8c8c0;
    line-height: 1.4;
}

.newsletter-form {
    position: relative;
    z-index: 1;
}

.newsletter-form form {
    display: flex;
    border: 2px solid var(--mint);
}

.newsletter-form input {
    flex: 1;
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: 15px;
    background: var(--paper);
    color: var(--ink);
    border: none;
    outline: none;
    min-width: 0;
}

.newsletter-form button {
    padding: 16px 22px;
    background: var(--mint);
    color: var(--mint-deep);
    font-family: var(--font-pixel-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--base) var(--ease);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--paper);
}

.newsletter-note {
    font-family: var(--font-pixel-sm);
    font-size: 10px;
    color: #888;
    margin-top: 12px;
    letter-spacing: 0.1em;
}


/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
    background: var(--ink);
    color: var(--paper);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 2px dashed #333;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo {
    font-family: var(--font-pixel);
    font-size: 18px;
    color: var(--mint);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-tagline {
    font-family: var(--font-pixel-vt);
    font-size: 19px;
    color: #aaa;
    max-width: 300px;
    line-height: 1.4;
}

.footer-col h4 {
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    color: var(--mint);
    margin-bottom: 18px;
    letter-spacing: 0.15em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 13px;
    transition: color var(--base) var(--ease);
}

.footer-col a:hover {
    color: var(--mint);
}

.footer-bottom {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    color: #666;
    letter-spacing: 0.05em;
}


/* ============================================================
   15. ARTICLE (post detail pagina)
   ============================================================ */
.article {
    padding: 60px 0;
}

/* Article layout: TOC sidebar + main content */
.article-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0 var(--space-lg);
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.article-header {
    grid-column: 2;
    margin-bottom: var(--space-xl);
}

.article-meta-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--ink);
    flex-wrap: wrap;
    gap: 10px;
}

.article-header h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    margin-bottom: 16px;
}

.article-dek {
    font-size: 19px;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px dashed var(--ink);
}

.article-author .avatar {
    width: 44px;
    height: 44px;
    background: var(--mint);
    border: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--mint-deep);
}

.article-author strong {
    display: block;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
}

.article-author span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

/* Article TOC sidebar */
.article-toc {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 80px;
    align-self: start;
    padding-top: 6px;
}

/* Desktop: force details open, hide toggle */
.article-toc-details {
    display: block;
}
.article-toc-details[open] > .article-toc-title::after,
.article-toc-details:not([open]) > .article-toc-title::after { content: none; }

.article-toc-title {
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    font-weight: 700;
    color: var(--mint-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
    list-style: none;
    cursor: default;
}
.article-toc-title::-webkit-details-marker { display: none; }
.article-toc-title::marker { content: ""; }

.article-toc ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-toc a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    padding: 4px 0 4px 12px;
    border-left: 2px solid var(--line);
    transition: all var(--base) var(--ease);
}

.article-toc a:hover {
    color: var(--mint-dark);
    border-left-color: var(--mint);
}

/* Article body styling */
.article-body {
    grid-column: 2;
    max-width: 800px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.article-body > * {
    margin-bottom: 1.4em;
}

.article-body h2 {
    font-size: 28px;
    margin-top: 2em;
    margin-bottom: 0.6em;
    color: var(--ink);
}

.article-body h3 {
    font-size: 22px;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    color: var(--ink);
}

.article-body p {
    margin-bottom: 1.4em;
}

.article-body a {
    color: var(--mint-dark);
    text-decoration: underline;
    text-decoration-color: var(--mint);
    text-underline-offset: 3px;
    transition: color var(--base) var(--ease);
}

.article-body a:hover {
    color: var(--ink);
}

.article-body strong {
    font-weight: 600;
    color: var(--ink);
}

.article-body blockquote {
    border-left: 4px solid var(--mint);
    padding-left: 24px;
    margin: 2em 0;
    font-size: 21px;
    line-height: 1.5;
    color: var(--ink);
    font-weight: 500;
}

.article-body code {
    background: var(--bone);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: var(--font-mono);
}

.article-body pre {
    background: var(--ink);
    color: var(--mint);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 2px solid var(--ink);
    font-size: 14px;
    line-height: 1.5;
}

.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.article-body ul, .article-body ol {
    padding-left: 28px;
    margin-bottom: 1.4em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body img,
.article-body figure {
    margin: 2em -40px;
    max-width: calc(100% + 80px);
}

.article-body > *:first-child {
    margin-top: 0;
}

.article-body figure img {
    margin: 0;
    max-width: 100%;
}

.article-body figcaption {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 10px;
}

/* FAQ accordion — binnen de article-content grid, volgt de article-body kolom */
.article-faq {
    grid-column: 2;
    max-width: 800px;
    margin-top: var(--space-2xl);
}

.article-faq .section-header {
    margin-bottom: var(--space-md);
}

.article-faq .section-header h2 {
    font-size: 28px;
}

.faq-accordion {
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}

.faq-item {
    border-bottom: 1px dashed var(--ink);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item > .faq-question {
    list-style: none;
    cursor: pointer;
    padding: 20px 48px 20px 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    transition: color var(--base) var(--ease);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }

.faq-question::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-pixel-sm);
    font-size: 22px;
    font-weight: 400;
    color: var(--mint-dark);
    line-height: 1;
    transition: transform var(--base) var(--ease);
}

.faq-item[open] > .faq-question {
    color: var(--mint-dark);
}

.faq-item[open] > .faq-question::after {
    content: "−";
}

.faq-question:hover {
    color: var(--mint-dark);
}

.faq-question:focus-visible {
    outline: 2px solid var(--mint-dark);
    outline-offset: 4px;
}

.faq-answer {
    padding: 0 48px 20px 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.faq-answer p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .faq-question,
    .faq-question::after {
        transition: none;
    }
}


/* ============================================================
   16. FILTERS (category chips)
   ============================================================ */
.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.filters .chip {
    padding: 8px 14px;
    font-family: var(--font-pixel-sm);
    font-size: 12px;
    border: 2px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    transition: all var(--base) var(--ease);
    text-decoration: none;
}

.filters .chip:hover {
    background: var(--bone);
}

.filters .chip.active {
    background: var(--ink);
    color: var(--mint);
}


/* ============================================================
   16b. ABOUT PAGE
   ============================================================ */
.about-bio {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.avatar-large {
    width: 96px;
    height: 96px;
    font-size: 32px;
}

.about-bio-text h2 {
    font-size: 32px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.about-bio-text p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 1em;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.mission-card {
    padding: var(--space-lg);
    border: 2px solid var(--line);
    background: var(--paper);
}

.mission-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.mission-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.mission-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}


/* ============================================================
   16c. CONTACT FORM
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-pixel-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 2px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    transition: border-color var(--base) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mint);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full { width: 100%; justify-content: center; }

.form-feedback {
    padding: 16px 20px;
    margin-bottom: var(--space-lg);
    font-size: 15px;
    line-height: 1.5;
    border: 2px solid;
}

.form-success {
    border-color: var(--mint);
    background: #f0fdf7;
    color: var(--mint-dark);
}

.form-error {
    border-color: var(--accent-orange);
    background: #fff7f0;
    color: #8b3a00;
}


/* ============================================================
   17. BREADCRUMB
   ============================================================ */
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: var(--line);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color var(--base) var(--ease);
}

.breadcrumb a:hover {
    color: var(--mint-dark);
}

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


/* ============================================================
   18. ARCHIVE HEROES & TOOL PAGES
   ============================================================ */

/* Archive hero (tools, kennisbank, junior) */
.archive-hero {
    background: var(--ink);
    color: var(--paper);
    padding: var(--space-xl) 0 var(--space-lg);
}

.archive-hero .breadcrumb a,
.archive-hero .breadcrumb li { color: var(--muted); }
.archive-hero .breadcrumb a:hover { color: var(--mint); }
.archive-hero .breadcrumb [aria-current="page"] { color: var(--paper); }

.archive-hero h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    margin-bottom: 16px;
    color: var(--paper);
}

.archive-hero-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 640px;
}

/* Junior hero accent */
.archive-hero-junior { border-bottom: 4px solid var(--accent-yellow); }

/* Tool hero (sub-pages) */
.tool-hero {
    background: var(--ink);
    color: var(--paper);
    padding: var(--space-xl) 0 var(--space-lg);
}

.tool-hero .breadcrumb a,
.tool-hero .breadcrumb li { color: var(--muted); }
.tool-hero .breadcrumb a:hover { color: var(--mint); }
.tool-hero .breadcrumb [aria-current="page"] { color: var(--paper); }

.tool-hero-inner {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.tool-hero-logo {
    flex-shrink: 0;
    border: 2px solid var(--mint);
    padding: 8px;
    background: var(--mint-deep);
}

.tool-hero h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    margin-bottom: 12px;
    color: var(--paper);
}

.tool-hero-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 16px;
}

.tool-hero-link {
    font-family: var(--font-pixel-sm);
    font-size: 12px;
    color: var(--mint);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color var(--base) var(--ease);
}
.tool-hero-link:hover { color: var(--paper); }

/* Tool sub-category tiles */
.tool-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.tool-sub-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: var(--space-lg) var(--space-md);
    border: 2px solid var(--ink);
    background: var(--paper);
    text-decoration: none;
    transition: all var(--base) var(--ease);
}

.tool-sub-tile:hover {
    border-color: var(--mint);
    transform: translateY(-2px);
}

.tool-sub-tile h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--ink);
}

.tool-sub-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}

.tool-sub-icon {
    font-size: 40px;
    line-height: 1;
    display: inline-block;
    filter: grayscale(0.15);
}

.tool-sub-tile-active {
    background: var(--mint);
    border-color: var(--ink);
}

.tool-sub-tile-active .tool-sub-count {
    color: var(--mint-deep);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px dashed var(--line);
}

.pagination-btn {
    font-family: var(--font-pixel-sm);
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 10px 18px;
    border: 2px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    transition: all var(--base) var(--ease);
}

.pagination-btn:hover {
    background: var(--ink);
    color: var(--mint);
}

.pagination-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.pagination-info {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--muted);
}

/* Junior parent disclaimer */
.junior-parent-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    border: 2px solid var(--accent-yellow);
    background: var(--bone);
}

.junior-parent-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.junior-parent-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.junior-parent-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

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

/* No results message */
.no-results {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--muted);
    text-align: center;
    padding: var(--space-xl) 0;
}


/* ============================================================
   19. THEME: JUNIOR (yellow/orange accent overrides)
   ============================================================ */
.theme-junior .badge-mint {
    background: var(--accent-yellow);
    color: var(--ink);
}

.theme-junior .chip.active {
    background: var(--ink);
    color: var(--accent-yellow);
}

.theme-junior .post-card:hover {
    border-color: var(--accent-yellow);
}

.theme-junior .btn-primary {
    background: var(--accent-yellow);
    color: var(--ink);
}
.theme-junior .btn-primary:hover {
    background: var(--accent-orange);
    color: var(--paper);
}

.theme-junior .section-header .num {
    color: var(--accent-yellow);
}


/* ============================================================
   20. ANIMATIONS
   ============================================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes blink {
    50% { opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================
   18. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.hidden { display: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 999;
    padding: 12px 20px;
    background: var(--mint);
    color: var(--mint-deep);
    font-family: var(--font-pixel-sm);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus {
    top: 8px;
}


/* ============================================================
   19. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* < 900px — kleine desktop, grote tablet */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-mascot { max-width: 280px; margin: 0 auto; }
    .mascot-bubble { display: none; }
    .level-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .article-body img, .article-body figure { margin: 2em 0; max-width: 100%; }
    .tool-sub-grid { grid-template-columns: repeat(2, 1fr); }
}

/* < 768px — tablet en grote mobiel */
@media (max-width: 768px) {
    .nav-links, .nav-status { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-logo { font-size: 11px; padding: 14px 16px; }

    .newsletter { grid-template-columns: 1fr; padding: 32px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }

    .level-card-body h3 { font-size: 18px; }
    .post-card-body h3 { font-size: 17px; }

    /* TOC: collapsible block, closed by default */
    .article-content {
        display: block;
        max-width: 800px;
        padding: 0 var(--space-md);
    }
    .article-header { margin-bottom: var(--space-md); }
    .article-toc {
        position: static;
        margin-bottom: var(--space-md);
        padding: 0;
    }
    .article-toc-details {
        background: var(--bone);
        border: 2px solid var(--line);
    }
    .article-toc-title {
        cursor: pointer;
        padding: 14px 20px;
        margin-bottom: 0;
        border-bottom: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .article-toc-title::after {
        content: "▸" !important;
        font-size: 14px;
        color: var(--muted);
        transition: transform var(--base) var(--ease);
    }
    .article-toc-details[open] > .article-toc-title {
        border-bottom: 2px solid var(--line);
        margin-bottom: 0;
    }
    .article-toc-details[open] > .article-toc-title::after {
        content: "▾" !important;
    }
    .article-toc ol { gap: 6px; padding: 14px 20px; }
    .article-toc a { border-left: none; padding-left: 0; }
}

/* < 600px — mobiel */
@media (max-width: 600px) {
    .section { padding: 56px 0; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) {
        border-bottom: 2px dashed var(--ink);
        padding-bottom: 28px;
    }
    .stat:nth-child(3), .stat:nth-child(4) { padding-top: 28px; }

    .level-grid, .card-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }

    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }

    .tool-hero-inner { flex-direction: column; }
    .tool-sub-grid { grid-template-columns: 1fr; }
    .junior-parent-card { flex-direction: column; }
    .pagination { gap: var(--space-sm); }
    .pagination-btn { padding: 8px 12px; font-size: 11px; }

    .about-bio { flex-direction: column; gap: var(--space-md); }
    .mission-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */
