@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Hier staan de standaardkleuren en het lettertype voor de hele website. */
:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f7f8fb;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    --blue: #2563eb;
    --blue-dark: #0649c9;
    --ink: #172033;
    --muted: #596276;
    --line: #e2e6ef;
    --soft-blue: #f0f3ff;
    --frame-blue: #168bff;
}

html {
    scroll-behavior: smooth;
}

/* Hiermee krijgen elementen een voorspelbare grootte. */
* {
    box-sizing: border-box;
}


/* De pagina gebruikt de volledige breedte van het scherm. */
body {
    width: 100%;
    margin: 0;
    background: #fff;
    font-size: 13px;
}

/* Links hebben geen standaard onderstreping. Bij toetsenbordgebruik is wel te zien waar je bent. */
a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

/* De balk bovenaan bevat het logo, de navigatielinks en de beschikbaarheidsstatus. */
.site-header {
    min-height: 47px;
    padding: 8px 3.7%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border: 2px solid var(--frame-blue);
    border-bottom: 2px dashed var(--frame-blue);
    background: #fff;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.brand-mark,
.profile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: white;
    background: #0752d5;
    font-weight: 700;
}

.brand-mark {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    font-size: 6px;
}

.main-nav {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    height: 100%;
    display: inline-flex;
    align-items: center;
    color: #343b4b;
    font-size: 8px;
    border-bottom: 2px solid transparent;
}

/* De actieve link krijgt een blauwe lijn, zodat duidelijk is welke pagina of sectie open is. */
.nav-link.active {
    color: #111827;
    border-bottom-color: var(--blue);
    font-weight: 600;
}

.header-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #e0e5f4;
    border-radius: 999px;
    background: #f0f2ff;
    color: #111827;
    font-size: 7px;
    white-space: nowrap;
}

.theme-toggle {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 22px;
    flex: 0 0 auto;
    cursor: pointer;
}

.theme-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.theme-toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border: 1px solid #d9deeb;
    border-radius: 999px;
    background: #e9edff;
    color: #172033;
    transition: background-color 200ms ease, border-color 200ms ease;
}

.theme-toggle-input:focus-visible + .theme-toggle-track {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.theme-icon {
    z-index: 1;
    font-size: 11px;
    line-height: 1;
}

.theme-icon-moon {
    color: #a7b0c2;
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(23 32 51 / 25%);
    transition: transform 200ms ease;
}

.theme-toggle-input:checked + .theme-toggle-track .theme-toggle-thumb {
    transform: translateX(18px);
}

.theme-toggle-input:checked + .theme-toggle-track {
    border-color: #3b4b6a;
    background: #263650;
    color: #fff;
}

.theme-toggle-input:checked + .theme-toggle-track .theme-icon-sun {
    color: #a7b0c2;
}

.theme-toggle-input:checked + .theme-toggle-track .theme-icon-moon {
    color: #172033;
}

.status-dot {
    width: 5px;
    height: 5px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #10b981;
}

/* Dit is de rand om de inhoud en de stippellijnen tussen de onderdelen. */
main {
    border-right: 2px dashed var(--frame-blue);
    border-left: 2px dashed var(--frame-blue);
}

.section-frame {
    border-bottom: 2px dashed var(--frame-blue);
}

/* Het eerste grote onderdeel: de introductietekst en de profielkaart naast elkaar. */
.hero {
    min-height: 352px;
    padding: 32px 2.2% 38px 3.7%;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr);
    align-items: start;
    gap: 2.5%;
}

.hero-copy {
    padding-top: 21px;
}

.eyebrow {
    margin: 0;
    color: #0649c9;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.hero-label {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef0ff;
    color: #222b40;
    font-size: 8px;
    letter-spacing: 0;
    text-transform: none;
}

.hero-label > span:first-child {
    font-size: 11px;
}

.eyebrow-divider {
    color: #818ba0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    max-width: 470px;
    margin: 5px 0 9px;
    font-size: clamp(24px, 3.3vw, 35px);
    line-height: 1.16;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: #0752d5;
    text-decoration: underline;
    text-decoration-color: #9db8ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.intro-card {
    max-width: 510px;
    padding: 14px 13px 12px;
    border: 1px solid #dfe3f7;
    border-radius: 8px;
    background: #f2f3ff;
}

.intro-card > p {
    margin: 0 0 11px;
    color: #293247;
    font-size: 9px;
}

.intro-meta {
    padding-top: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e3e6f4;
    color: #414a5d;
    font-size: 7px;
}

.blue-icon {
    margin-right: 3px;
    color: #0752d5;
    font-size: 10px;
}

.meta-separator {
    color: #8992a4;
}

.hero-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Deze regels geven de knoppen in de introductie hun vorm en kleur. */
.button {
    min-height: 25px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d9deeb;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 500;
}

.button-primary {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.button-outline {
    background: white;
    color: #172033;
}

.text-action {
    padding: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #343b4b;
    font-size: 8px;
}

/* De profielkaart toont de naam, school en andere gegevens. */
.profile-card {
    margin-top: 0;
    padding: 15px 13px 12px;
    border: 1px solid #dfe3ec;
    border-radius: 9px;
    background: #a0bced;
}

.profile-heading {
    padding-bottom: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #eef0f4;
}

.profile-avatar {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    font-size: 10px;
}

.profile-heading h2 {
    margin: 0 0 2px;
    font-size: 11px;
    letter-spacing: -0.025em;
}

.profile-heading p {
    margin: 0 0 4px;
    color: #50596b;
    font-size: 8px;
}

.school-tag {
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #bcebd7;
    border-radius: 999px;
    background: #ebfff5;
    color: #07875b;
    font-size: 7px;
}

.school-tag .status-dot {
    width: 4px;
    height: 4px;
}

.profile-details {
    margin: 7px 0 0;
}

.profile-details > div {
    min-height: 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #f0f1f5;
    font-size: 8px;
}

.profile-details > div:last-child {
    border-bottom: 0;
}

.profile-details dt {
    color: #586174;
}

.profile-details dd {
    margin: 0;
    text-align: right;
}

code {
    padding: 3px 5px;
    border-radius: 3px;
    background: #f0f2ff;
    color: #172033;
    font-family: inherit;
    font-size: 7px;
    font-weight: 700;
}

code.blue-code {
    color: #0752d5;
}

.green-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #079564;
}

/* Hier wordt het projectenonderdeel en de indeling van de projectkaarten opgemaakt. */
.projects {
    min-height: 290px;
    padding: 25px 2.1% 27px;
}

.section-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.section-label {
    margin-bottom: 5px;
}

.section-label span {
    margin-right: 4px;
}

.section-heading h2,
.contact-heading h2 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.section-description,
.contact-heading > p:last-child {
    margin: 0;
    color: #5b6477;
    font-size: 9px;
}

.all-projects {
    padding-bottom: 4px;
    color: #0649c9;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.project-card {
    min-height: 121px;
    padding: 15px 13px 11px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.project-tag {
    min-height: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    background: #f0f3ff;
    color: #0752d5;
    font-size: 7px;
    font-weight: 600;
}

.charity-tag {
    background: #e5f4ff;
    color: #0876bd;
}

.empty-tag {
    width: 17px;
}

.project-card h3 {
    margin: 8px 0 6px;
    font-size: 11px;
    letter-spacing: -0.02em;
}

.project-card > p {
    margin: 0 0 12px;
    color: #5e6676;
    font-size: 8px;
}

.project-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eff0f4;
    color: #424b5e;
    font-size: 7px;
}

.code-button {
    padding: 6px 8px;
    border-radius: 5px;
    background: #edf0ff;
    color: #0649c9;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

/* Dit onderdeel toont manieren om contact op te nemen, zoals e-mail of Discord. */
.contact-section {
    min-height: 336px;
    padding: 52px 3% 39px;
}

.contact-heading {
    text-align: center;
}

.contact-heading .section-label {
    margin-bottom: 6px;
}

.contact-heading h2 {
    margin-bottom: 6px;
}

.contact-grid {
    max-width: 790px;
    margin: 21px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.contact-card {
    min-height: 158px;
    padding: 13px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.contact-icon {
    width: 27px;
    height: 27px;
    margin-bottom: 7px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f0f2ff;
    color: #0752d5;
    font-size: 12px;
}

.contact-card h3 {
    min-height: 16px;
    margin: 0 0 5px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.contact-card:first-child h3 {
    min-height: 27px;
    margin-bottom: 2px;
}

.contact-card p {
    margin: 0 0 9px;
    color: #5b6477;
    font-size: 8px;
}

.copy-button {
    width: 100%;
    min-height: 20px;
    margin-top: auto;
    padding: 4px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 5px;
    background: #f0f2ff;
    color: #111827;
    font: inherit;
    font-size: 7px;
    cursor: pointer;
}

.discord-name {
    color: var(--blue);
    cursor: default;
    user-select: text;
}

.discord-hint {
    margin: 4px 0 0;
    color: #5b6477;
    font-size: 7px;
}

.copy-button + .copy-button {
    margin-top: 5px;
}

.copy-secondary {
    background: #e9edff;
    font-weight: 600;
}

.mail-button {
    background: var(--blue);
    color: #fff;
    font-weight: 600;
}

/* Onderaan staat de voettekst met extra links. */
.site-footer {
    min-height: 47px;
    padding: 12px 2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    color: #596276;
    font-size: 7px;
}

.site-footer p {
    margin: 0;
}

.site-footer p span {
    padding: 0 2px;
}

.site-footer nav {
    display: flex;
    gap: 15px;
    color: #172033;
    font-weight: 500;
    white-space: nowrap;
}

/* Dit kleine bericht blijft rechtsonder in beeld, bijvoorbeeld na het kopieren van tekst. */
.toast {
    position: fixed;
    right: max(12px, calc((100vw - 960px) / 2 + 12px));
    bottom: 10px;
    z-index: 2;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 6px;
    background: #172033;
    box-shadow: 0 5px 18px rgb(23 32 51 / 18%);
    color: #fff;
    font-size: 10px;
}

.toast > span {
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    border: 1px solid #aeb8cc;
    border-radius: 50%;
    font-size: 9px;
}

.toast[hidden] {
    display: none;
}

/* Op een smal scherm komen onderdelen onder elkaar en wordt de navigatie aangepast. */
@media (max-width: 620px) {
    .site-header {
        min-height: 56px;
        grid-template-columns: 1fr auto;
        padding: 8px 12px;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        gap: 25px;
        min-height: 29px;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .hero {
        min-height: 0;
        padding: 25px 18px 28px;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero h1 {
        max-width: 440px;
        font-size: clamp(28px, 8vw, 38px);
    }

    .projects {
        min-height: 0;
        padding: 24px 16px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 15px;
    }

    .contact-section {
        min-height: 0;
        padding: 35px 16px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 12px;
        line-height: 1.6;
    }
}

body:has(.theme-toggle-input:checked) {
    background: #111827;
    color: #e5e7eb;
    transition: background-color 200ms ease, color 200ms ease;
}

body:has(.theme-toggle-input:checked) .site-header,
body:has(.theme-toggle-input:checked) .site-footer,
body:has(.theme-toggle-input:checked) .project-card,
body:has(.theme-toggle-input:checked) .contact-card {
    border-color: #374151;
    background: #1f2937;
    color: #e5e7eb;
}

body:has(.theme-toggle-input:checked) .main-nav .nav-link,
body:has(.theme-toggle-input:checked) .site-footer nav,
body:has(.theme-toggle-input:checked) .project-card h3,
body:has(.theme-toggle-input:checked) .contact-card h3 {
    color: #e5e7eb;
}

body:has(.theme-toggle-input:checked) .nav-link.active {
    color: #fff;
}

body:has(.theme-toggle-input:checked) .availability,
body:has(.theme-toggle-input:checked) .hero-label,
body:has(.theme-toggle-input:checked) .intro-card,
body:has(.theme-toggle-input:checked) code,
body:has(.theme-toggle-input:checked) .contact-icon,
body:has(.theme-toggle-input:checked) .copy-button,
body:has(.theme-toggle-input:checked) .copy-secondary,
body:has(.theme-toggle-input:checked) .code-button {
    border-color: #374151;
    background: #263650;
    color: #dbeafe;
}

body:has(.theme-toggle-input:checked) .profile-card {
    border-color: #374151;
    background: #263650;
    color: #f3f4f6;
}

body:has(.theme-toggle-input:checked) .intro-card > p,
body:has(.theme-toggle-input:checked) .intro-meta,
body:has(.theme-toggle-input:checked) .profile-details dt,
body:has(.theme-toggle-input:checked) .profile-heading p,
body:has(.theme-toggle-input:checked) .section-description,
body:has(.theme-toggle-input:checked) .contact-heading > p:last-child,
body:has(.theme-toggle-input:checked) .project-card > p,
body:has(.theme-toggle-input:checked) .contact-card p,
body:has(.theme-toggle-input:checked) .discord-hint,
body:has(.theme-toggle-input:checked) .site-footer {
    color: #aeb8c8;
}

body:has(.theme-toggle-input:checked) .hero h1,
body:has(.theme-toggle-input:checked) .section-heading h2,
body:has(.theme-toggle-input:checked) .contact-heading h2,
body:has(.theme-toggle-input:checked) .profile-heading h2 {
    color: #f9fafb;
}

body:has(.theme-toggle-input:checked) .profile-details > div,
body:has(.theme-toggle-input:checked) .intro-meta,
body:has(.theme-toggle-input:checked) .project-footer {
    border-color: #374151;
}

body:has(.theme-toggle-input:checked) .project-tag,
body:has(.theme-toggle-input:checked) .charity-tag {
    background: #263650;
    color: #bfdbfe;
}