:root {
    --page-bg: #ffffff;
    --page-fg: #1a1a1a;
    --page-muted: #666666;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;

    background: var(--page-bg);
    color: var(--page-fg);

    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
}

/* Rustige tekstpagina (About, individuele projectpagina's) */

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 140px 24px 60px;
}

.page h1 {
    /* Vloeiend van ±34px (smalle telefoon) tot 63px (laptop/desktop),
       geen harde breakpoint-sprong meer. line-height als verhouding
       (74/63 ≈ 1.17) schaalt automatisch mee. */
    font-size: clamp(34px, 3.3vw + 21px, 63px);
    line-height: 1.17;
    font-weight: 400;
    margin-bottom: 28px;
}

.page p {
    font-size: 18px;
    line-height: 23px;
    font-weight: 400;
    color: var(--page-muted);
    margin-bottom: 1em;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;

    color: var(--page-muted);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--page-fg);
}

/* -----------------------------------------------------------------
   Projects-overzicht: tekstlijst met zwevende hover-preview,
   geïnspireerd op de Work-pagina van het Keo-sjabloon.
   ----------------------------------------------------------------- */

.work-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 160px 24px 120px;
}

.work-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.work-list-items li {
    border-top: 1px solid #e5e5e5;
}

.work-list-items li:last-child {
    border-bottom: 1px solid #e5e5e5;
}

.work-list-items a {
    display: block;
    padding: 22px 0;

    color: var(--page-fg);
    text-decoration: none;

    /* Vloeiend van ±24px (smalle telefoon) tot 40px (laptop/desktop). */
    font-size: clamp(24px, 1.8vw + 16.7px, 40px);
    line-height: 1.2;
    font-weight: 400;

    transition: opacity 200ms ease;
}

.work-list-items:hover a {
    opacity: 0.35;
}

.work-list-items a:hover,
.work-list-items a:focus-visible {
    opacity: 1;
}

.work-preview {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 25;

    width: 320px;
    aspect-ratio: 4 / 3;

    border-radius: 6px;
    overflow: hidden;
    background: #000;

    pointer-events: none;

    opacity: 0;
    transform: translate(0, -50%) scale(0.97);
    transition: opacity 200ms ease, transform 200ms ease;
}

.work-preview.visible {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
}

.work-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-preview .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    height: 100%;

    background: linear-gradient(135deg, #2a2a2e, #17171a);
    color: rgba(255, 255, 255, 0.35);

    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Previous/Next-navigatie onderaan een individuele projectpagina */

.project-nav {
    max-width: 720px;
    margin: 60px auto 0;
    padding: 32px 24px 80px;

    display: flex;
    justify-content: space-between;
    gap: 24px;

    border-top: 1px solid #e5e5e5;
}

.project-nav a {
    color: var(--page-fg);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-nav a:hover,
.project-nav a:focus-visible {
    color: var(--page-muted);
}

.project-nav .direction {
    display: block;
    color: var(--page-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.project-nav .next {
    text-align: right;
}
