/* Type scale */
:root {
    --font-xs:      0.8125rem; /* 13px — credits, kleine labels */
    --font-sm:      0.875rem;  /* 14px — hints, dates, captions, buttons */
    --font-base:    1rem;      /* 16px — body text, nav, inputs */
    --font-md:      1.125rem;  /* 18px — taglines, subheadings */
    --font-lg:      1.375rem;  /* 22px — section headings (h2) */
    --font-xl:      1.75rem;   /* 28px — h1 mobile */
    --font-2xl:     2.25rem;   /* 36px — h1 desktop */
    --font-display: 3rem;      /* 48px — result highlights */
    --font-hero:    5rem;      /* 80px — grote resultatencijfers */
}

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

body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: var(--font-base);
    background: #f9f6f2;
    color: #2c2c2c;
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Site Navigation
   ======================================== */
.site-nav {
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.site-nav-logo:hover {
    color: #7c956c;
}

.site-nav-logo img {
    display: block;
}

/* Desktop nav links */
.site-nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-nav-links a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
    color: #7c956c;
}

/* Hamburger checkbox + toggle — hidden on desktop */
.site-nav-checkbox {
    display: none;
}

.site-nav-toggle {
    display: none;
}

/* Mobile nav */
@media (max-width: 700px) {
    .site-nav-inner {
        flex-wrap: wrap;
    }

    .site-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        display: block;
        width: 22px;
        height: 2px;
        background: #2c2c2c;
        border-radius: 2px;
        transition: transform 0.2s, opacity 0.2s;
    }

    .hamburger {
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .hamburger::before {
        top: -7px;
    }

    .hamburger::after {
        top: 7px;
    }

    /* Animate to X when open */
    .site-nav-checkbox:checked ~ .site-nav-toggle .hamburger {
        background: transparent;
    }

    .site-nav-checkbox:checked ~ .site-nav-toggle .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .site-nav-checkbox:checked ~ .site-nav-toggle .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Hide links by default on mobile */
    .site-nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0.5rem 0 0.5rem;
    }

    /* Show links when checkbox is checked */
    .site-nav-checkbox:checked ~ .site-nav-links {
        display: flex;
    }

    .site-nav-links li {
        border-top: 1px solid #f0ece6;
    }

    .site-nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: var(--font-base);
    }
}

/* Main content area */
.site-main {
    flex: 1;
}

/* Page content spacing (replaces body padding) */
.container,
.container-text {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.container-text {
    max-width: 640px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: var(--font-2xl);
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.tagline {
    color: #666;
    font-size: var(--font-md);
    max-width: 480px;
    margin: 0 auto;
}

/* Calculator */
.calculator {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    margin: 0;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-hint {
    font-size: var(--font-sm);
    color: #888;
    margin-bottom: 0.5rem;
}

input[type="number"] {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: var(--font-md);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.2s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #7c956c;
}

/* Result */
.result {
    text-align: center;
    padding: 1.5rem;
    background: #f9f6f2;
    border-radius: 12px;
}

.result-number {
    font-family: 'Libre Baskerville', serif;
    font-size: var(--font-hero);
    font-weight: 700;
    color: #7c956c;
    line-height: 1;
}

.result-label {
    font-size: var(--font-lg);
    color: #666;
    margin-bottom: 1.5rem;
}

.result-details {
    font-size: var(--font-sm);
    color: #666;
    text-align: left;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.result-details p {
    margin-bottom: 0.4rem;
}

.result-details p:last-child {
    margin-bottom: 0;
}

/* Share section */
.share-section {
    margin-top: 1rem;
}

.share-text {
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: var(--font-sm);
    margin-bottom: 0.75rem;
    text-align: left;
}

.copy-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: var(--font-sm);
    font-weight: 600;
    background: #7c956c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #6a8359;
}

/* Tool cards grid */
.tool-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.tool-cards .intro {
    margin-top: 0;
}

/* Intro section */
.intro {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.intro h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: var(--font-lg);
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.intro p {
    margin-bottom: 1rem;
    color: #444;
}

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

/* FAQ section */
.faq {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.faq h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: var(--font-lg);
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: var(--font-base);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

.faq-item p {
    color: #555;
    font-size: var(--font-sm);
}

.content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.content h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: var(--font-lg);
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #1a1a1a;
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 1rem;
    color: #444;
}

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

.content ul:not(.post-list),
.content ol {
    margin-bottom: 1rem;
    padding-left: 0;
    list-style: none;
}

.content ul:not(.post-list) li,
.content ol li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.content ul:not(.post-list) li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #7c956c;
    font-weight: 700;
}

.content ol {
    counter-reset: list-counter;
}

.content ol li {
    counter-increment: list-counter;
}

.content ol li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #7c956c;
    font-size: var(--font-sm);
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: var(--font-sm);
}

.content thead {
    background: #f9f6f2;
}

.content th {
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    color: #2c2c2c;
    border-bottom: 2px solid #7c956c;
}

.content td {
    padding: 0.75rem 1rem;
    color: #444;
    border-bottom: 1px solid #f0ece6;
}

.content tbody tr:hover {
    background: #faf8f5;
}

.content a {
    color: #7c956c;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

/* Reading stats */
.reading-stats {
    background: #f9f6f2;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.reading-stats h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: var(--font-md);
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.reading-stats ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    padding-left: 0;
    margin-bottom: 0;
}

.reading-stats li {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-align: center;
    padding-left: 1rem;
    margin-bottom: 0;
}

.reading-stats li::before {
    display: none;
}

.reading-stats .year {
    font-size: var(--font-xs);
    color: #888;
}

.reading-stats .count {
    font-family: 'Libre Baskerville', serif;
    font-size: var(--font-lg);
    font-weight: 700;
    color: #7c956c;
}

.reading-stats .label {
    font-size: var(--font-xs);
    color: #666;
}

/* Advertise block */
.advertise-block {
    margin-top: 3rem;
    padding: 2rem;
    background: #fdf3e7;
    border: 2px solid #f0dcc5;
    border-radius: 12px;
    text-align: center;
}

.advertise-label {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #d4883a;
    margin-bottom: 0.75rem;
}

.advertise-text {
    color: #2c2c2c;
    margin-bottom: 1.5rem;
}

.advertise-btn {
    display: block;
    max-width: 400px;
    margin: 0 auto 1rem;
    padding: 0.9rem 2rem;
    background: #fffaf5;
    color: #2c2c2c;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.2s;
}

.advertise-btn:hover {
    background: #fff5eb;
}

.advertise-email {
    font-size: var(--font-sm);
    color: #666;
}

.advertise-email a {
    color: #2c2c2c;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 2.5rem 1.5rem 1.5rem;
    background: white;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.06);
}

.site-footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0ece6;
    margin-bottom: 1rem;
}

.footer-logo .site-nav-logo {
    font-size: var(--font-sm);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #7c956c;
}

.footer-support {
    color: #666;
    font-size: var(--font-sm);
    text-align: center;
}

.footer-support p {
    margin-bottom: 0.5rem;
}

.footer-support .bmc-btn-container .bmc-btn {
    transform: scale(0.8);
    transform-origin: center;
}

.footer-credit {
    text-align: center;
    color: #999;
    font-size: var(--font-xs);
}

.footer-credit a {
    color: #7c956c;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-support {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   Blog styles
   ======================================== */

/* Blog listing */
.post-list {
    list-style: none;
}

.post-list-item {
    padding: 1rem 0;
    
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.post-list-item + .post-list-item {
    border-top: 1px solid #e0e0e0;
}

.post-list-item a {
    font-weight: 600;
    color: #7c956c;
    text-decoration: none;
}

.post-list-item a:hover {
    text-decoration: underline;
}

.post-list-description {
    color: #666;
    font-size: var(--font-sm);
    margin-top: 0.25rem;
}

.post-list-item time {
    color: #888;
    font-size: var(--font-xs);
    white-space: nowrap;
}

/* Blog post content */
.content h3 {
    font-size: var(--font-md);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

/* Mobile layout */
@media (max-width: 700px) {
    :root {
        --font-display: 2.5rem;
        --font-hero: 4rem;
    }

    .container {
        max-width: 100%;
    }

    .calculator {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .result {
        order: 2;
    }

    h1 {
        font-size: var(--font-xl);
    }

    .post-list-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tool-cards {
        grid-template-columns: 1fr;
    }
}
