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

body {
    font-family: Georgia, 'Times New Roman', serif;
    color: #2c2c2c;
    background: #faf9f6;
    line-height: 1.7;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.intro {
    font-size: 15px;
    color: #555;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 32px 0;
}

#projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 28px 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: #aaa;
}

.card-top {
    flex: 1;
}

.card-nummer {
    font-size: 13px;
    color: #bbb;
    font-family: 'Courier New', monospace;
    margin-bottom: 12px;
}

.card-naam {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-beschrijving {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.card {
    cursor: pointer;
}

/* Modal + tijdlijn */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 19, 16, 0.55);
    z-index: 100;
    padding: 24px;
    overflow-y: auto;
}
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
    background: #faf9f6;
    border-radius: 6px;
    max-width: 560px;
    width: 100%;
    margin: 6vh auto;
    padding: 32px 32px 28px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}
.modal-close:hover { color: #2c2c2c; }
.modal-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.modal-desc { font-size: 14px; color: #555; margin-bottom: 24px; }
.modal-tl-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-family: 'Courier New', monospace;
    margin-bottom: 14px;
}
.timeline { list-style: none; }
.tl-item {
    position: relative;
    padding: 0 0 18px 20px;
    border-left: 2px solid #e3e0d8;
}
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2c5f8a;
}
.tl-meta {
    font-size: 12px;
    color: #888;
    font-family: 'Courier New', monospace;
    margin-bottom: 3px;
}
.tl-note { font-size: 14px; color: #3a3a3a; line-height: 1.55; }
.modal-link-wrap { margin-top: 22px; }

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.card-tag {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-link {
    font-size: 13px;
    color: #2c5f8a;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #999;
}

/* ---------- Gate (toegangspoort vóór de landingspagina) ---------- */
.gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}
.gate-inner {
    max-width: 560px;
    width: 100%;
}
.gate-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 10px;
}
.gate-name {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}
.gate-actions {
    min-height: 48px;
}
.gate-btn {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    color: #2c2c2c;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 10px 28px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.gate-btn:hover {
    border-color: #2c5f8a;
    background: #f4f2ec;
}
.gate-form {
    display: none;
    justify-content: center;
    gap: 8px;
}
.gate-form.show {
    display: flex;
}
.gate-input {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    color: #2c2c2c;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 10px 14px;
    width: 220px;
    max-width: 60vw;
}
.gate-input:focus {
    outline: none;
    border-color: #2c5f8a;
}
.gate-error {
    margin-top: 14px;
    font-size: 14px;
    color: #a3402f;
    min-height: 20px;
}
.gate-form.shake {
    animation: gate-shake 0.35s ease;
}
@keyframes gate-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
@media (max-width: 540px) {
    .gate-title { font-size: 30px; }
}

@media (max-width: 540px) {
    main {
        padding: 40px 16px 60px;
    }

    h1 {
        font-size: 24px;
    }

    #projects {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
        padding: 20px 18px;
    }

    .card-tag {
        font-size: 12px;
    }

    .card-link {
        font-size: 14px;
        padding: 8px 0;
    }
}
