/* ==========================================================================
   NBI — Gedeeld Stylesheet v3
   Nederlands Bitcoin Instituut · 2026
   ========================================================================== */

@font-face {
    font-family: 'Minion Pro';
    src: url('MinionPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Minion Pro';
    src: url('MinionPro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Minion Pro';
    src: url('MinionPro-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Minion Pro';
    src: url('MinionPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==================== CSS Variables ==================== */
:root {
    --navy: #1a2d5e;
    --navy-deep: #061240;
    --orange: #f26522;
    --orange-light: #ff8a50;
    --orange-dark: #c94d12;
    --white: #ffffff;
    --cream: #fefaf1;
    --cream-warm: #f6ecd7;
    --cream-deep: #ede2c8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --border: rgba(6, 18, 64, 0.1);
    --border-strong: rgba(6, 18, 64, 0.2);

    --serif: 'Minion Pro', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }

/* ==================== HEADER ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(254, 250, 241, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px 0;
}

.logo-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.logo-icon {
    width: 44px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: normal;
    line-height: 1.2;
    color: var(--navy);
    padding-top: 3px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: flex-end;
}

.header-nav a {
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.1px;
    transition: color 0.15s ease;
}

.header-nav a:hover,
.header-nav a.is-active { color: var(--orange); }

.header-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    color: var(--navy);
}

.header-toggle svg { display: block; margin: 0 auto; }

/* ==================== PAGE HEADER (alle subpagina's) ==================== */
.page-header {
    background: var(--navy);
    color: var(--cream);
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--orange);
}

.page-header::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-header-inner {
    max-width: 900px;
    position: relative;
}

.page-header-eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--orange);
    margin-bottom: 20px;
}

.page-header h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(44px, 5.5vw, 72px);
    line-height: 1.02;
    letter-spacing: -1.8px;
    color: var(--cream);
    margin-bottom: 20px;
}

.page-header .intro {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.45;
    color: var(--cream);
    opacity: 0.82;
    max-width: 720px;
}

/* ==================== SECTION PRIMITIVES ==================== */
.section-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--orange);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1;
    color: var(--navy);
    letter-spacing: -1px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 44px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--navy);
    gap: 24px;
    flex-wrap: wrap;
}

.section-link {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--navy);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.section-link:hover {
    color: var(--orange);
    border-color: var(--orange);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 28px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn svg { transition: transform 0.25s ease; }

.btn:hover svg { transform: translateX(4px); }

.btn-orange {
    background: var(--orange);
    color: var(--cream);
}
.btn-orange:hover {
    background: var(--navy);
    color: var(--cream);
}

.btn-navy {
    background: var(--navy);
    color: var(--cream);
}
.btn-navy:hover {
    background: var(--orange);
}

.link-under {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    padding-bottom: 3px;
    border-bottom: 2px solid var(--orange);
    transition: color 0.2s ease, gap 0.25s ease;
}

.link-under:hover {
    color: var(--orange);
    gap: 14px;
}

/* ==================== PROSE (leesbaar artikel) ==================== */
.content-prose {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.65;
    color: var(--gray-700);
}

.content-prose p { margin-bottom: 20px; }
.content-prose p:last-child { margin-bottom: 0; }

/* ==================== MINI COVERS (publicatiekaarten) ==================== */
.mini-cover {
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 32px -12px rgba(6, 18, 64, 0.25);
}

.mini-cover.variant-navy {
    background: var(--navy);
    color: var(--cream);
}

.mini-cover.variant-navy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(242, 101, 34, 0.22), transparent 55%);
}

.mini-cover.variant-cream {
    background: var(--cream-warm);
    color: var(--navy);
}

.mini-cover.variant-cream::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(6, 18, 64, 0.05) 28px,
            rgba(6, 18, 64, 0.05) 29px
        );
}

.mini-cover.variant-orange {
    background: var(--orange);
    color: var(--cream);
}

.mini-cover.variant-orange::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 70%, rgba(6, 18, 64, 0.25), transparent 55%);
}

.mini-cover-inner {
    position: absolute;
    inset: 0;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.mini-cover-mark {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    opacity: 0.75;
}

.mini-cover.variant-navy .mini-cover-mark { color: var(--orange); opacity: 1; }
.mini-cover.variant-orange .mini-cover-mark { color: var(--cream); opacity: 0.85; }

.mini-cover-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.mini-cover-edition {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* ==================== PUB CARD (gedeelde publicatiekaart) ==================== */
.pub-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 8px;
    transition: transform 0.25s ease;
}

.pub-card:hover {
    transform: translateY(-3px);
}

.pub-card:hover .mini-cover {
    box-shadow:
        0 24px 48px -18px rgba(6, 18, 64, 0.35),
        0 8px 20px -6px rgba(6, 18, 64, 0.2);
    transform: translateY(-2px);
}

.pub-card:hover .pub-card-title {
    color: var(--orange);
}

.pub-card--muted { opacity: 0.55; }

.pub-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.tag-brief,
.tag-commentary {
    padding: 4px 10px;
    font-size: 10px;
    color: var(--cream);
}
.tag-brief { background: var(--navy); }
.tag-commentary { background: var(--orange); }

.pub-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gray-500);
}

.pub-card-meta .date {
    color: var(--gray-600);
    letter-spacing: 1.5px;
    font-weight: 500;
}

.pub-card-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--navy);
    transition: color 0.2s ease;
}

.pub-card-excerpt {
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--gray-600);
}

.pub-card-author {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    padding-top: 2px;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--navy);
    color: var(--cream);
    padding: 72px 0 36px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 101, 34, 0.4), transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 56px;
}

.footer-brand .footer-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--cream);
    margin-bottom: 18px;
}

.footer-brand p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--cream);
    opacity: 0.65;
    line-height: 1.65;
    max-width: 340px;
}

.footer-col h4 {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 12px; }

.footer-col a {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--cream);
    opacity: 0.75;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-col a:hover {
    color: var(--orange);
    opacity: 1;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(254, 250, 241, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--cream);
    opacity: 0.6;
}

.footer-x {
    color: var(--cream);
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-x:hover {
    opacity: 1;
    color: var(--orange);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1060px) {
    .footer-top {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 840px) {
    .wrap, .wrap-narrow { padding: 0 24px; }

    .header-nav { display: none; }

    .header-toggle { display: block; }

    .page-header { padding: 56px 0 68px; }

    .page-header h1 { letter-spacing: -1px; }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-brand { grid-column: 1 / -1; }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .logo-text { font-size: 14px; }
    .logo-icon { width: 36px; height: 36px; }
    .page-header { padding: 44px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

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