/* ============================================================
   SCHAAKPRAAT.CSS  —  v1.0
   Gedeeld door: blog.html + blog-[artikel].html
   Pas hier de stijl aan en alle pagina's volgen automatisch.
   ============================================================ */


/* ============================================================
   1. CSS-VARIABELEN
   ============================================================ */
:root {
    /* Papier & inkt */
    --ink:           #1a1209;
    --ink-soft:      #3d2f1a;
    --ink-muted:     #7a6a55;
    --paper:         #f5eedf;
    --paper-dark:    #ede4cf;
    --paper-mid:     #e4d8bf;
    --paper-shadow:  #d6c9aa;

    /* Lijnen */
    --rule:          #c8b89a;
    --rule-heavy:    #8c7355;

    /* Accenten */
    --gold:          #b8892a;
    --gold-light:    #d4af37;
    --title-color:   #6b1414;
    --red-accent:    #6b1414;

    /* Footer — warm donkerbruin, past bij de sepia-sfeer */
    --footer-bg:     #1e1208;
    --footer-mid:    #2d1e0f;
    --footer-text:   rgba(245, 238, 223, 0.75);
    --footer-title:  #f5eedf;
    --footer-accent: #d4af37;

    /* Fonts */
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'Libre Baskerville', Georgia, serif;
    --font-ui:       'Montserrat', sans-serif;

    /* Layout */
    --max-width:     1200px;
    --sidebar-width: 260px;
}


/* ============================================================
   2. RESET & BASIS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* Subtiele papier-textuur over de hele pagina */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9000;
    opacity: 0.5;
}


/* ============================================================
   3. MASTHEAD
   ============================================================ */
.masthead {
    background-color: var(--paper);
    border-bottom: 4px double var(--rule-heavy);
    position: sticky;
    top: 0;
    z-index: 50;
}

.masthead-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 40px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-ui);
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.masthead-meta a { color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
.masthead-meta a:hover { color: var(--gold); }
.masthead-meta-left::before { content: '— '; color: var(--rule-heavy); }
.masthead-meta-right::after  { content: ' —'; color: var(--rule-heavy); }

.masthead-title-area { text-align: center; padding: 28px 40px 18px; }

/* De krantentitel — op blog.html een <h1>, op artikelpagina's een <a> */
.newspaper-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    color: var(--title-color);
    line-height: 0.93;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s;
}
.newspaper-title:hover { opacity: 0.85; }

.masthead-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
    color: var(--rule-heavy);
    font-size: 1rem;
}
.masthead-ornament::before,
.masthead-ornament::after {
    content: '';
    flex: 1;
    max-width: 280px;
    height: 1px;
    background: var(--rule-heavy);
}

.tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.96rem;
    color: var(--ink-muted);
}

/* Navigatiebalk */
.masthead-nav {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--rule);
    background: var(--paper-mid);
}
.masthead-nav a {
    font-family: var(--font-ui);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 10px 24px;
    border-right: 1px solid var(--rule);
    transition: background 0.2s, color 0.2s;
    display: block;
}
.masthead-nav a:first-child { border-left: 1px solid var(--rule); }
.masthead-nav a:hover  { background: var(--paper); color: var(--ink); }
.masthead-nav a.active { background: var(--ink);   color: var(--paper); }


/* ============================================================
   4. HAMBURGER & MOBIEL MENU OVERLAY
   ============================================================ */
.hamburger {
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.nav-overlay.is-open { display: flex; }
.nav-overlay a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--paper);
    text-decoration: none;
    padding: 16px 40px;
    border-bottom: 1px solid rgba(200,184,154,0.2);
    width: 100%;
    text-align: center;
    transition: color 0.2s, background 0.2s;
}
.nav-overlay a:first-child { border-top: 1px solid rgba(200,184,154,0.2); }
.nav-overlay a:hover  { color: var(--gold-light); background: rgba(255,255,255,0.04); }
.nav-overlay a.active { color: var(--gold-light); }

.nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--paper);
    font-size: 2rem;
    cursor: pointer;
    padding: 4px 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.nav-close:hover { opacity: 1; }


/* ============================================================
   5. GEDEELDE INHOUD-ELEMENTEN
   ============================================================ */

/* Sierlijke scheidingslijn met label */
.section-rule {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    margin-top: 8px;
}
.section-rule::before, .section-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule-heavy);
}
.section-rule span {
    font-family: var(--font-ui);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}
.section-rule span:hover { color: var(--gold); }

/* Rubriek-label  ◆ TACTIEK */
.post-kicker {
    font-family: var(--font-ui);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red-accent);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.post-kicker::before { content: '◆'; font-size: 0.4rem; }

/* Lees-verder link */
.read-more-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
    width: fit-content;
}
.read-more-link::after { content: ' →'; margin-left: 4px; }
.read-more-link:hover  { color: var(--gold); border-color: var(--gold-light); }

/* Post-meta (datum / categorie balk) */
.post-meta {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    color: var(--ink-muted);
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}


/* ============================================================
   6. GEDEELDE ZIJBALK-STIJLEN
   ============================================================ */
.sidebar-block {
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--rule);
}
.sidebar-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-heading {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border-top: 3px solid var(--ink);
    padding-top: 10px;
    margin-bottom: 14px;
}

/* Archief-boom */
.archive-year { margin-bottom: 6px; }
.archive-year-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2px;
    user-select: none;
    transition: color 0.2s;
    gap: 8px;
}
.archive-year-label:hover,
.archive-year-label.active-filter { color: var(--gold); }
.archive-year-label .year-text { flex: 1; }
.archive-year-label .arrow {
    font-size: 0.6rem;
    color: var(--ink-muted);
    transition: transform 0.22s;
    flex-shrink: 0;
}
.archive-year.open .arrow { transform: rotate(90deg); }

.archive-months { list-style: none; padding-left: 4px; display: none; }
.archive-year.open .archive-months { display: block; }
.archive-months li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.2s;
}
.archive-months li a:hover,
.archive-months li a.active-filter { color: var(--gold); font-weight: 700; }

.count {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    color: var(--ink-muted);
    background: var(--paper-shadow);
    padding: 1px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Citaat-blok */
.sidebar-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.7;
    text-align: center;
    padding: 8px 4px;
    position: relative;
}
.sidebar-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--paper-shadow);
    font-family: var(--font-display);
    position: absolute;
    top: -14px;
    left: -6px;
    line-height: 1;
    pointer-events: none;
}
.sidebar-quote cite {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.63rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-style: normal;
    margin-top: 10px;
}

.sidebar-about {
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.7;
}


/* ============================================================
   7. FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--footer-bg);
    background-image: linear-gradient(to bottom, var(--footer-mid) 0%, var(--footer-bg) 100%);
    margin-top: 60px;
    border-top: 3px double var(--rule-heavy);
    position: relative;
    overflow: hidden;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}
.footer-column h3 {
    font-family: var(--font-display);
    color: var(--footer-title);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212,175,55,0.35);
}
.footer-column p,
.footer-column li {
    margin-bottom: 0.6rem;
    line-height: 1.8;
    color: var(--footer-text);
    font-family: var(--font-body);
    font-size: 0.88rem;
}
.footer-column ul  { list-style: none; padding: 0; }
.footer-column a   { color: var(--footer-text); text-decoration: none; transition: color 0.25s; }
.footer-column a:hover { color: var(--footer-accent); }
.footer-column address { font-style: normal; color: whitesmoke; }
.footer-column .copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.55;
    font-family: var(--font-ui);
    letter-spacing: 0.06em;
}
.footer-bottom {
    border-top: 1px solid rgba(200,184,154,0.15);
    padding: 12px 24px;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245,238,223,0.3);
}


/* ============================================================
   8. ANIMATIES
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.masthead { animation: fadeUp 0.4s ease both; }


/* ============================================================
   9. RESPONSIVE — gedeeld
   ============================================================ */
@media (max-width: 720px) {
    .masthead-meta       { padding: 7px 16px; font-size: 0.62rem; }
    .masthead-title-area { padding: 20px 16px 14px; }
    .newspaper-title     { font-size: clamp(3rem, 12vw, 5rem); }
    .tagline             { font-size: 0.85rem; }
    .masthead-nav        { display: none; }
    .hamburger           { display: block; }
    .footer-inner        { padding: 36px 16px 24px; }
}
@media (max-width: 420px) {
    .masthead-meta-left         { display: none; }
    .masthead-meta-right::after { content: ''; }
    .newspaper-title            { font-size: clamp(2.6rem, 14vw, 4rem); }
}
