/* ---------- Design tokens ---------- */
:root {
    --page-bg: linear-gradient(rgba(206, 98, 92, 0.22), rgba(206, 98, 92, 0.22)), #eda6a2 url("images/page-bg.jpg") left top / cover no-repeat;
    --coral: #ea8579; /* brand coral from the logo: decoration only, too light for text */
    --blush: #fcd9d6;
    --accent: #9c4a48; /* dusty deep rose, 6:1 on surface */
    --surface: #ffffff; /* matches the white of card-bg.jpg */
    --text: #6e4b47; /* body copy, 5.4:1 on surface */
    --heading: #b5453d; /* 5.2:1 on surface */
    --eyebrow: #a8483f; /* 4.8:1 on surface */
    --link-hover: #8f2f2a;
    --primary: #bf4f47; /* 5.2:1 with --primary-text */
    --primary-text: #fff7f5;
    --secondary-text: #a8402f; /* 5.8:1 on secondary */
    --focus: #a8402f;
    /* extra accents in the same warm family as the coral, so the variation stays gentle: all 4.5:1 or more with white text */
    --berry: #a3456a;
    --mauve: #86506f;
    --terracotta: #a85a34;
    --clay: #94604b;
    --rosewood: #8b4150;
    /* Font must match the Google Fonts <link> in every HTML file (now: Josefin Sans) */

    --font: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --radius-sm: 0.625rem;
    --radius-lg: 0.5rem;
    --edge-gap: clamp(2.5rem, 5vw, 4rem); /* same space under the header and above the footer */
    --target: 2.75rem; /* 44px minimum touch target */
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

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

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    padding: clamp(0.75rem, 4vw, 3.5rem);
    color: var(--text);
}

/* The pink background is fixed to the viewport, so the page is only as tall as its content */
html {
    background: #eda6a2;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--page-bg);
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
    padding: 0;
}

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

.skip-link {
    position: absolute;
    left: var(--space-2);
    top: -4rem;
    z-index: 10;
    padding: var(--space-1) var(--space-2);
    background: var(--primary);
    color: var(--primary-text);
    border-radius: var(--radius-sm);
    transition: top 0.2s ease;
}

    .skip-link:focus {
        top: var(--space-2);
    }

/* ---------- Layout shell ---------- */
.container {
    position: relative;
    width: min(100%, 75rem);
    margin-inline: auto;
    --pad-top: clamp(1.75rem, 4vw, 3rem);
    --pad-x: clamp(1.5rem, 7vw, 6rem);
    padding: var(--pad-top) var(--pad-x) clamp(2rem, 4vw, 3.5rem);
    background: var(--surface) url("images/card-bg.jpg") left bottom / max(100%, 56rem) auto no-repeat;
    border: 6px solid var(--surface);
    border-radius: 1.5rem;
    box-shadow: 0 0 0 1px rgba(168, 67, 63, 0.18), 0 24px 60px rgba(120, 40, 38, 0.32);
    overflow: hidden;
    container-type: inline-size;
    isolation: isolate;
}

/* ---------- Header ---------- */
.site-header {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(2rem, 5vw, 7rem);
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
}

.logo-butterfly {
    width: clamp(2.75rem, 9vw, 4.75rem);
    height: auto;
    filter: drop-shadow(1px 0 0 var(--surface)) drop-shadow(-1px 0 0 var(--surface)) drop-shadow(0 1px 0 var(--surface)) drop-shadow(0 -1px 0 var(--surface)) drop-shadow(0 0 7px var(--surface));
}

.logo-img {
    width: min(300px, 52vw);
    height: auto;
    filter: drop-shadow(1px 0 0 var(--surface)) drop-shadow(-1px 0 0 var(--surface)) drop-shadow(0 1px 0 var(--surface)) drop-shadow(0 -1px 0 var(--surface)) drop-shadow(0 0 7px var(--surface));
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-4);
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--target);
    color: var(--heading);
    font-weight: 500;
    text-decoration: none;
    text-shadow: 0 0 6px var(--surface), 0 0 12px var(--surface);
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

    .site-nav a:hover,
    .site-nav a[aria-current="page"] {
        color: var(--link-hover);
        border-bottom-color: currentColor;
    }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2.5rem, 7vw, 6.5rem);
}

.hero-text {
    flex: 1 1 auto;
    max-width: 32rem;
}

.eyebrow {
    margin-bottom: 0.625rem;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--accent);
    text-shadow: 0 0 6px var(--surface), 0 0 12px var(--surface); /* keeps it legible over the splash */
}

.hero-text .eyebrow {
    text-align: inherit;
}

.hero-text h1 {
    margin-bottom: var(--space-3);
    font-size: clamp(2rem, 7vw, 3.25rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.08em;
    color: var(--heading);
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hero-text p {
    margin-bottom: var(--space-2);
    text-align: left;
}

    .hero-text p:last-of-type {
        margin-bottom: var(--space-3);
    }

.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-3) var(--space-2);
}

    .buttons .btn-secondary {
        grid-column: 1 / -1;
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--target);
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(191, 79, 71, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(191, 79, 71, 0.3);
    }

.btn-primary {
    background: linear-gradient(135deg, #bf4f47 0%, #a8433f 100%);
    color: var(--primary-text);
    box-shadow: 0 6px 14px rgba(168, 67, 63, 0.28);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #ae463f 0%, #963a37 100%);
        box-shadow: 0 10px 20px rgba(168, 67, 63, 0.38);
    }

.btn-secondary {
    background: transparent;
    color: var(--secondary-text);
    border: 2px solid var(--secondary-text);
    box-shadow: none;
}

    .btn-secondary:hover {
        background: rgba(168, 64, 47, 0.1);
        box-shadow: none;
    }

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--space-3);
}
/* The watercolour ring (images/ring.png) is anchored to the photo circle, so the two stay aligned at every size.
   The hole in the ring is 735px of 1166px wide, centred at 49.4% / 47.8%; the photo is 3% larger than the hole. */
.ring {
    position: relative;
    width: min(70%, 26rem);
    aspect-ratio: 1;
}

    .ring::before {
        content: "";
        position: absolute;
        z-index: -1;
        left: 50%;
        top: 50%;
        width: 154%;
        aspect-ratio: 1166 / 1159;
        transform: translate(-49.4%, -47.8%);
        background: url("images/ring.png") center / 100% 100% no-repeat;
        pointer-events: none;
    }

.circle-frame {
    width: 100%;
    height: 100%;
    border-radius: 51% 49% 50% 50% / 50% 52% 48% 50%;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

    .circle-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Hero slideshow: photos are stacked and cross-fade (see the script in index.html) */
    .circle-frame[data-slideshow] {
        position: relative;
    }

    .circle-frame .slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 1s ease;
    }

        .circle-frame .slide.is-active {
            opacity: 1;
        }

/* ---------- Footer / socials ---------- */
.site-footer {
    position: relative;
    z-index: 3;
    margin-top: var(--space-5);
}

.socials {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--target);
    height: var(--target);
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-text);
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.socials li:nth-child(1) .social {
    background: var(--mauve);
}
/* rose */
.socials li:nth-child(2) .social {
    background: var(--berry);
}
/* purple */
.socials li:nth-child(3) .social {
    background: var(--clay);
}
/* vermilion */
.socials li:nth-child(4) .social {
    background: #a8402f;
}
/* amber */
.social:hover {
    filter: brightness(0.88);
    transform: scale(1.1);
}

/* ---------- Tablet and mobile ---------- */
@media (max-width: 68.74rem) {
    .site-header {
        flex-direction: column;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .site-nav ul {
        justify-content: center;
        gap: var(--space-1) var(--space-3);
    }

    .hero {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-image {
        padding: var(--space-4) var(--space-1);
    }

    .hero-text {
        max-width: 100%;
        text-align: left;
    }

    .buttons {
        grid-template-columns: 1fr;
        max-width: 20rem;
        margin-inline: 0;
        margin: auto;
    }

    .socials {
        justify-content: center;
    }
}

/* ---------- User preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .btn:hover,
    .social:hover {
        transform: none;
    }
}

/* ---------- Contact page ---------- */
button.btn {
    border: 0;
    cursor: pointer;
}

.hero-text .intro {
    margin-bottom: var(--space-3);
}

.contact-form {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem var(--space-2);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.field--full,
.contact-form .btn {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: var(--target);
    padding: 0.6rem 0.875rem;
    font: inherit;
    color: #5a3a30;
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid var(--eyebrow); /* 4.8:1 against the card, as inputs need 3:1 */
    border-radius: var(--radius-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field textarea {
    min-height: 5.5rem;
    resize: vertical;
}

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(156, 74, 72, 0.2);
    }

.contact-form .btn {
    justify-self: start;
    min-width: 12rem;
}

/* Form feedback after sending (message set by the script in contact.html) */
.form-status {
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--heading);
}
/* Honeypot field for spam bots: off-screen, never seen by real visitors */
.hp {
    position: absolute;
    left: -9999px;
}

/* The brush ring holds the direct contact details instead of a photo */
.circle-frame--info {
    display: grid;
    place-content: center;
    gap: 0.5rem;
    padding: 12%;
    text-align: center;
    background: var(--surface);
    font-size: clamp(0.9375rem, 1.34cqw, 1.0625rem);
}

    .circle-frame--info h2 {
        font-size: 1.375em;
        font-weight: 400;
        letter-spacing: 0.04em;
        color: var(--heading);
    }

.contact-link {
    font-weight: 600;
    color: var(--heading);
    overflow-wrap: anywhere;
}

    .contact-link:hover {
        color: var(--link-hover);
    }

@media (max-width: 36rem) {
    .contact-form {
        grid-template-columns: 1fr;
    }

        .contact-form .btn {
            justify-self: stretch;
        }
}

/* ---------- Workshops page ----------
   Content-heavy page: the card grows with its content instead of keeping the
   artwork's proportions, so the desktop rules are switched off for .container--flow. */
.container--flow .site-header {
    margin-bottom: var(--space-4);
}

.page-intro {
    max-width: 38rem;
    margin-bottom: var(--space-5);
}

    .page-intro h1 {
        margin-bottom: var(--space-2);
        font-size: clamp(2rem, 8vw, 4rem);
        font-weight: 300;
        line-height: 1.1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        overflow-wrap: anywhere;
        color: var(--heading);
    }

    .page-intro .eyebrow {
        text-shadow: 0 0 6px var(--surface), 0 0 12px var(--surface);
    }

.season {
    --season: var(--primary);
    margin-bottom: var(--space-5);
}

.season--autumn {
    --season: var(--terracotta);
}

.season--winter {
    --season: var(--rosewood);
}

.season h3 {
    display: inline-block;
    margin-bottom: var(--space-2);
    padding-bottom: 0.25rem;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--season);
    border-bottom: 3px solid var(--season);
    border-radius: 2px;
    text-shadow: 0 0 6px var(--surface), 0 0 12px var(--surface);
}

.events {
    display: grid;
    gap: var(--space-2);
}
/* Each event is a row: paint dab, description, then price and sign-up.
   Rows are staggered, so the list reads as a trail rather than a grid. */
.event {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.72);
    border-left: 6px solid var(--season);
    border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
    box-shadow: 0 8px 20px rgba(110, 75, 71, 0.12);
}

.event-dab {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
    color: var(--primary-text);
    background: var(--season);
    border-radius: 51% 49% 50% 50% / 50% 52% 48% 50%;
}

.event-body h4 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--heading);
}

.event-when {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--eyebrow);
}

    .event-when i {
        margin-right: 0.25rem;
    }

.event-side {
    display: grid;
    justify-items: end;
    gap: 0.25rem;
    text-align: right;
}

.event-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading);
}

.event-spots {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.event-side .btn {
    margin-top: 0.5rem;
}

.event--full {
    background: rgba(255, 255, 255, 0.45);
}

    .event--full .event-dab {
        background: var(--text);
    }

.page-note {
    max-width: 38rem;
    margin-bottom: var(--space-3);
}

@media (max-width: 56rem) {
    .event {
        grid-template-columns: auto 1fr;
        margin-left: 0 !important;
    }

    .event-side {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr;
        justify-items: start;
        align-items: center;
        text-align: left;
        column-gap: var(--space-2);
    }

        .event-side .btn {
            grid-column: 1 / -1;
            margin-top: var(--space-1);
        }
}

/* ---------- Drawing lessons page: group colours ---------- */
.season--kids {
    --season: var(--berry);
}

.season--teens {
    --season: var(--mauve);
}

.season--adults {
    --season: #9c4a48;
}

/* ---------- Over mij page ---------- */
.about-top {
    display: grid;
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: var(--space-4) var(--space-5);
    align-items: center; /* portrait and intro share the same centre line */
    margin-bottom: var(--space-5);
}

/* Portrait: one big organic frame with a small dab overlapping it */
.portrait {
    position: relative;
    width: min(100%, 24rem);
    aspect-ratio: 1;
    margin-inline: auto;
}

    .portrait::before {
        content: "";
        position: absolute;
        inset: -12%;
        z-index: -1;
        background: radial-gradient(closest-side, rgba(237, 166, 162, 0.5), transparent);
    }

    .portrait .circle-frame {
        box-shadow: 0 15px 30px rgba(156, 74, 72, 0.2);
    }

/* Round dab split diagonally: Soesterberg top left, Veenendaal bottom right */
.portrait-dab {
    position: absolute;
    right: -8%;
    bottom: -9%;
    width: 42%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--accent);
    border: 4px solid var(--surface);
    border-radius: 49% 51% 52% 48% / 52% 48% 52% 48%;
}

.portrait-dab-half {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: max-content;
    justify-items: center;
    gap: 0.125rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-text);
}

    .portrait-dab-half i {
        font-size: 1.125rem;
    }

.portrait-dab-soesterberg {
    justify-content: start;
    align-content: start;
    padding: 18% 0 0 9%;
    background: var(--primary);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.portrait-dab-veenendaal {
    justify-content: end;
    align-content: end;
    padding: 0 9% 18% 0;
    background: var(--mauve);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.about-intro h1 {
    overflow-wrap: anywhere;
    margin-bottom: var(--space-3);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.08em;
    color: var(--heading);
}

.about-intro .lead {
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
}

/* The statement: calm type like the rest of the page, a modest opening mark and a brush stroke underneath */
.statement {
    position: relative;
    grid-column: 1 / -1; /* always sits underneath the photo row */
    max-width: 48rem;
    margin: 0;
    padding-left: 2.75rem;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--accent);
}

    .statement::before {
        content: "\201C";
        content: "\201C" / "";
        position: absolute;
        left: 0;
        top: -0.15em;
        font-size: 3.75rem;
        font-weight: 600;
        line-height: 1;
        color: var(--primary);
    }

    .statement::after {
        content: "\201D";
        content: "\201D" / "";
        position: absolute;
        right: 0;
        top: -0.15em;
        font-size: 3.75rem;
        font-weight: 600;
        line-height: 1;
        color: var(--primary);
    }

.statement-below {
    content: "";
    display: block;
    margin-left: var(--space-3);
    margin-right: var(--space-3);
    width: min(24rem, calc(100% - 2 * var(--space-3)));
    height: 0.625rem;
    margin-top: 0.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 20 1, 36 11, 56 6 S 92 2, 110 7 S 142 10, 158 4' fill='none' stroke='%23bf4f47' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.about-section h2 {
    margin-bottom: var(--space-3);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--heading);
}

.role-dab {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
    color: var(--primary-text);
    background: var(--role);
    border-radius: 51% 49% 50% 50% / 50% 52% 48% 50%;
}

/* Working together: one wide panel */
.together {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.72);
    border-left: 6px solid var(--accent);
    border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
    box-shadow: 0 8px 20px rgba(110, 75, 71, 0.12);
}

    .together h2 {
        margin-bottom: var(--space-2);
    }

    .together p {
        margin-bottom: var(--space-3);
    }

    .together .actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
    }

.facts {
    display: grid;
    gap: var(--space-3);
}

    .facts li {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: var(--space-2);
        align-items: center;
        font-weight: 600;
        color: var(--heading);
    }

    .facts i {
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.125rem;
        color: var(--primary-text);
        background: var(--fact);
        border-radius: 51% 49% 50% 50% / 50% 52% 48% 50%;
    }

    .facts li:nth-child(1) {
        --fact: var(--berry);
    }

    .facts li:nth-child(2) {
        --fact: #bf4f47;
    }

    .facts li:nth-child(3) {
        --fact: var(--terracotta);
    }

@media (max-width: 56rem) {
    .about-top,
    .together {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-top {
        gap: var(--space-4);
    }

    .portrait {
        width: min(80%, 20rem);
    }

    .statement {
        padding-left: 2.25rem;
    }

        .statement::before {
            font-size: 3rem;
        }
}

/* ---------- Kunst page: kunstwerken als producten ---------- */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

/* The image fills the card edge to edge. Title and badges sit on top of it,
   so every card has the same two rows below the image (price, button). */
.artwork-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
    box-shadow: 0 8px 20px rgba(110, 75, 71, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .artwork-card:nth-child(even) {
        border-radius: 1.75rem 0.5rem 1.75rem 0.5rem;
    }

    .artwork-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(110, 75, 71, 0.2);
    }

.artwork-figure {
    position: relative;
}

.artwork-open {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    overflow: hidden;
    background: var(--surface);
    border: 0;
    cursor: pointer;
}

    .artwork-open:focus-visible {
        outline-offset: -6px;
    }

    .artwork-open img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .artwork-open:hover img {
        transform: scale(1.04);
    }

/* Overlays let clicks through to the image button underneath */
.artwork-title {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    max-width: calc(100% - 2 * var(--space-2));
    padding: 0.35rem 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--heading);
    background: var(--surface);
    border-radius: 0.5rem 1.25rem 0.5rem 1.25rem;
    box-shadow: 0 4px 12px rgba(110, 75, 71, 0.2);
    pointer-events: none;
}

.artwork-badges {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: var(--space-2);
    pointer-events: none;
}

/* Badges use the site palette, like the dabs on the workshop events */
.artwork-badge {
    --badge: var(--primary);
    padding: 0.2rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--primary-text);
    background: var(--badge);
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

    .artwork-badge:nth-child(n) {
        --badge: var(--berry);
    }

    .artwork-badge:nth-child(2n) {
        --badge: var(--mauve);
    }

    .artwork-badge:nth-child(3n) {
        --badge: #b0504f;
    }

.artwork-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2);
}

.artwork-price {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--heading);
}

.artwork-body .btn {
    margin-top: auto; /* pins the button to the bottom of every card */
}

.artwork-card--sold .artwork-open img {
    opacity: 0.6;
    filter: grayscale(0.4);
}

.artwork-card--sold .artwork-price {
    text-decoration: line-through;
    color: var(--text);
}

/* Preview popup. The global reset removes the default margin: auto that centres a dialog, so it is set again here. */
body:has(.artwork-dialog[open]) {
    overflow: hidden;
}

.artwork-dialog {
    width: min(92vw, 60rem);
    max-width: none;
    max-height: 92dvh;
    margin: auto;
    padding: 0;
    overflow: auto;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 0;
    border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

    .artwork-dialog::backdrop {
        background: rgba(60, 30, 40, 0.65);
    }

.artwork-dialog-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4);
}

.artwork-dialog-info {
    display: grid;
    gap: var(--space-2);
    justify-items: start;
}

    .artwork-dialog-info h2 {
        font-size: 1.75rem;
        font-weight: 400;
        line-height: 1.2;
        color: var(--heading);
    }

    .artwork-dialog-info .artwork-badges {
        position: static;
        padding: 0;
    }

.artwork-dialog-close {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--target);
    height: var(--target);
    font-size: 1.125rem;
    color: var(--primary-text);
    background: var(--accent);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

    .artwork-dialog-close:hover {
        filter: brightness(0.88);
    }

.artwork-description {
    white-space: pre-line; /* keeps the paragraph breaks from artworks.json */
}

@media (max-width: 48rem) {
    .artwork-dialog-inner {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        padding: var(--space-3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .artwork-card:hover,
    .artwork-open:hover img {
        transform: none;
    }
}

/* Price with "(exclusief btw)" next to it, also on sold works */
.artwork-pricebox {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--space-1);
}

.artwork-vat {
    font-size: 0.8125rem;
    color: var(--text);
}

/* ---------- Kunst page: gallery in the preview popup ---------- */
.artwork-gallery {
    position: relative;
    min-width: 0;
}

/* Native scroll-snap: swiping works on touch and trackpad, buttons and the script just scroll it */
.artwork-gallery-track {
    display: flex;
    aspect-ratio: 4 / 5;
    max-height: 80dvh;
    margin-inline: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
}

    .artwork-gallery-track::-webkit-scrollbar {
        display: none;
    }

.artwork-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

    .artwork-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.artwork-gallery-btn {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--target);
    height: var(--target);
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--primary-text);
    background: var(--accent);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0.92;
}

    .artwork-gallery-btn:hover {
        filter: brightness(0.88);
    }

.artwork-gallery-btn--prev {
    left: var(--space-1);
}

.artwork-gallery-btn--next {
    right: var(--space-1);
}

.artwork-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: var(--space-1);
}

/* The dot is small to look at, but its button keeps a 44px touch target */
.artwork-gallery-dot {
    position: relative;
    width: var(--target);
    height: 1.5rem;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

    .artwork-gallery-dot::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 0.625rem;
        height: 0.625rem;
        transform: translate(-50%, -50%);
        background: var(--eyebrow);
        border-radius: 50%;
        opacity: 0.35;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .artwork-gallery-dot[aria-current="true"]::before {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }

@media (max-width: 48rem) {
    .artwork-gallery-track {
        max-height: 55dvh;
    }
}

/* The hidden attribute must win over the display values set above (buttons, dots, price row) */
.artwork-gallery [hidden],
.artwork-pricebox[hidden] {
    display: none;
}

/* One photo: nothing to swipe or scroll */
.artwork-gallery-track.is-single {
    overflow: hidden;
    touch-action: auto;
}

/* ---------- Review fixes: responsive and small additions ---------- */
.event-price-note {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

@media (min-width: 68.75rem) {
    /* Home: two buttons per row, so the labels fit in the half-width text column */
    .buttons {
        grid-template-columns: 1fr 1fr;
    }

        .buttons .btn-secondary {
            grid-column: auto;
        }
}

@media (max-width: 56rem) {
    .portrait-dab {
        width: 48%;
        right: -4%;
        bottom: -6%;
    }

    .portrait-dab-half {
        font-size: 0.6875rem;
    }
}

@media (max-width: 48rem) {
    /* Close button sits above the photo instead of on top of it */
    .artwork-dialog-inner {
        padding-top: 4.5rem;
    }
}

@media (max-width: 40rem) {
    .event {
        padding: var(--space-2);
        gap: var(--space-2);
    }

    .event-dab {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.125rem;
    }
}

@media (max-width: 36rem) {
    .site-header {
        gap: var(--space-2);
        margin-bottom: var(--space-3);
    }

    .site-nav ul {
        gap: 0 var(--space-2);
    }

    .site-nav a {
        font-size: 0.9375rem;
    }
}

/* Workshop seasons that were not used before */
.season--spring {
    --season: var(--clay);
}

.season--summer {
    --season: #bf4f47;
}

/* Bigger photo ring on desktop */
@media (min-width: 68.75rem) {
    .ring {
        width: min(100%, 24rem);
    }

    .hero-image {
        flex: 0 1 26rem;
    }
}

/* Balanced spacing: identical gap under the header and above the footer, on every page and screen size */
.site-header,
.container--flow .site-header {
    margin-bottom: var(--edge-gap);
}

.site-footer {
    margin-top: var(--edge-gap);
}

/* Header: logo with butterfly + six menu items must fit on one row on desktop */
@media (min-width: 68.75rem) {
    .site-header {
        gap: clamp(1.5rem, 3vw, 3rem);
    }

    .logo-img {
        width: clamp(14rem, 20vw, 17rem);
    }

    .logo-butterfly {
        width: clamp(3rem, 4.5vw, 4.25rem);
    }

    .site-nav ul {
        gap: var(--space-1) clamp(1.1rem, 2vw, 2rem);
    }

    .site-nav a {
        font-size: 0.9375rem;
    }
}

/* Header on every screen size: logo and butterfly together, centred above the centred menu */
.site-header {
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
}

.site-nav ul {
    justify-content: center;
}

@media (min-width: 68.75rem) {
    .site-header {
        gap: var(--space-2);
    }

    .logo-img {
        width: clamp(15rem, 24vw, 20rem);
    }

    .logo-butterfly {
        width: clamp(3.25rem, 5vw, 4.75rem);
    }

    .site-nav ul {
        gap: var(--space-1) var(--space-4);
    }

    .site-nav a {
        font-size: 1rem;
    }
}

/* Desktop: logo + butterfly and the menu share one row, and the row as a whole is centred in the card,
   so the space left of the logo equals the space right of the last menu item */
@media (min-width: 68.75rem) {
    .site-header {
        flex-direction: row;
        justify-content: center;
        gap: clamp(2rem, 4vw, 4rem);
    }

    .logo-img {
        width: clamp(14rem, 20vw, 17rem);
    }

    .logo-butterfly {
        width: clamp(3rem, 4.5vw, 4.25rem);
    }

    .site-nav ul {
        flex-wrap: nowrap;
        gap: var(--space-1) clamp(1.1rem, 2vw, 2rem);
    }

    .site-nav a {
        font-size: 0.9375rem;
    }
}

/* Photo in the ring: a perfect circle with a clear white border and a thin coral outline */
.ring .circle-frame {
    border: 6px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(191, 79, 71, 0.4), 0 14px 30px rgba(110, 75, 71, 0.28);
}

/* Home page, desktop: more room for the text, a calmer photo */
@media (min-width: 68.75rem) {
    .hero:has([data-slideshow]) {
        justify-content: space-between;
    }

        .hero:has([data-slideshow]) .hero-text {
            flex: 0 1 34rem;
            max-width: 34rem;
            line-height: 1.75;
        }

            .hero:has([data-slideshow]) .hero-text h1 {
                margin-bottom: var(--space-3);
            }

            .hero:has([data-slideshow]) .hero-text p {
                margin-bottom: var(--space-3);
            }

                .hero:has([data-slideshow]) .hero-text p:last-of-type {
                    margin-bottom: var(--space-4);
                }

        .hero:has([data-slideshow]) .buttons {
            gap: var(--space-2) var(--space-2);
        }

        .hero:has([data-slideshow]) .hero-image {
            flex: 0 0 20rem;
        }

        .hero:has([data-slideshow]) .ring {
            width: 100%;
        }
}

/* Kunst page on small screens: a card takes one full row there, so the image gets a shorter, wider crop.
   (The full image is still shown in the popup.) */
@media (max-width: 46rem) {
    .artwork-grid {
        gap: var(--space-2);
    }

    .artwork-open {
        aspect-ratio: 4 / 3;
    }

    .artwork-body {
        padding: var(--space-1) var(--space-2) var(--space-2);
    }
}

/* Header banner: the watercolour image runs edge to edge behind the header, from the top of the card
   to a little below the menu. It sits behind the header content (z-index -1 inside the header's own stacking context). */
.site-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(-1 * var(--pad-top));
    left: calc(-1 * var(--pad-x));
    right: calc(-1 * var(--pad-x));
    bottom: calc(-1 * var(--edge-gap));
    background: url("images/banner-bg.png") center bottom / cover no-repeat;
    pointer-events: none;
}

/* ---------- Agenda page: timeline ---------- */
.kijkje-section {
    margin-bottom: var(--space-5);
}

    .kijkje-section h2 {
        display: block;
        margin-bottom: var(--space-4);
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        font-weight: 300;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-align: center;
        color: var(--heading);
        text-shadow: 0 0 6px var(--surface), 0 0 12px var(--surface);
    }

        .kijkje-section h2::after {
            content: "";
            display: block;
            width: 6rem;
            height: 0.75rem;
            margin: 0.5rem auto 0;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 20 1, 36 11, 56 6 S 92 2, 110 7 S 142 10, 158 4' fill='none' stroke='%23bf4f47' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
        }

/* ----- Timeline: always horizontal. A dashed line runs through the dots, swipe or use the arrows ----- */
.timeline-wrap {
    position: relative;
    padding: var(--space-4) var(--space-3) var(--space-3);
    background: linear-gradient(145deg, #fcebe8 0%, #f7d3ce 100%);
    border-radius: 2.5rem 0.5rem 2.5rem 0.5rem;
    box-shadow: 0 6px 18px rgba(168, 67, 63, 0.12);
}

.timeline {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: var(--space-3);
    padding-bottom: var(--space-2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    padding-inline: 0.25rem;
    scrollbar-color: var(--coral) transparent;
}

.milestone {
    position: relative;
    flex: 0 0 min(82%, 20rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    scroll-snap-align: start;
}

    /* The line runs through the dot and carries on into the next item */
    .milestone::before {
        content: "";
        position: absolute;
        top: calc(1.375rem - 2px);
        left: 0;
        right: calc(-1 * var(--space-3));
        height: 4px;
        background: repeating-linear-gradient(to right, var(--coral) 0 12px, transparent 12px 22px);
        border-radius: 2px;
    }

    .milestone:last-child::before {
        right: 0;
    }

.milestone-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: 0.25rem;
    font-size: 1.125rem;
    color: #fff;
    background: var(--primary);
    border: 3px solid var(--surface);
    border-radius: 51% 49% 50% 50% / 50% 52% 48% 50%;
    box-shadow: 0 6px 14px rgba(110, 75, 71, 0.25);
}

.milestone:nth-child(3n + 2) .milestone-dot {
    background: var(--accent);
}

.milestone:nth-child(3n) .milestone-dot {
    background: #b0504f;
}

.milestone-card {
    flex: 1;
    width: 100%;
    padding: var(--space-2);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
    box-shadow: 0 8px 20px rgba(110, 75, 71, 0.12);
}

.milestone:nth-child(even) .milestone-card {
    border-radius: 1.75rem 0.5rem 1.75rem 0.5rem;
}

.milestone-date {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--eyebrow);
}

.milestone-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--heading);
    overflow-wrap: anywhere;
}

.milestone-media {
    margin-top: var(--space-2);
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
}

/* "Vandaag" marker: a small stop on the line, between what is coming and what has been */
.timeline .milestone--today {
    scroll-margin-left: 6rem; /* the page opens on "Vandaag", with a bit of the recent past still visible to its left */
    flex: 0 0 auto;
    width: 8rem;
    gap: var(--space-1);
}

.timeline .milestone.milestone--today .milestone-dot {
    background: var(--heading);
    animation: today-pulse 2.4s ease-out infinite;
}

.today-label {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
}

    .today-label strong {
        padding: 0.25rem 0.875rem;
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #fff;
        background: var(--heading);
        border-radius: 999px;
    }

.today-date {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--eyebrow);
}

@keyframes today-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(181, 69, 61, 0.45), 0 6px 14px rgba(110, 75, 71, 0.25);
    }

    70%, 100% {
        box-shadow: 0 0 0 0.875rem rgba(181, 69, 61, 0), 0 6px 14px rgba(110, 75, 71, 0.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline .milestone.milestone--today .milestone-dot {
        animation: none;
        box-shadow: 0 0 0 5px rgba(234, 133, 121, 0.4), 0 6px 14px rgba(110, 75, 71, 0.25);
    }
}

/* Arrows for mouse users (phones and tablets swipe instead) */
.timeline-btn {
    top: calc(var(--space-4) + 7rem);
}

    .timeline-btn[hidden] {
        display: none;
    }

@media (hover: none) {
    .timeline-btn {
        display: none;
    }
}

/* Phone: tighter spacing, no text clipped */
@media (max-width: 36rem) {
    .kijkje-section {
        margin-bottom: var(--space-4);
    }

        .kijkje-section h2 {
            margin-bottom: var(--space-3);
            overflow-wrap: anywhere;
        }

    .timeline-wrap {
        padding: var(--space-3) var(--space-1) var(--space-2);
        border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
    }

    .milestone-card h3 {
        font-size: 1.125rem;
        overflow-wrap: anywhere;
    }
}

/* ----- Photo popup (shared by both sections) ----- */
.peek-dialog {
    width: min(92vw, 44rem);
    max-width: none;
    max-height: 92dvh;
    margin: auto;
    padding: 0;
    overflow: auto;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 0;
    border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

    .peek-dialog::backdrop {
        background: rgba(60, 30, 40, 0.65);
    }

.peek-dialog-inner {
    position: relative;
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);
}

.peek-dialog-info {
    display: grid;
    gap: var(--space-1);
}

    .peek-dialog-info h2 {
        font-size: 1.5rem;
        font-weight: 400;
        color: var(--heading);
    }

@media (max-width: 48rem) {
    .peek-dialog-inner {
        padding: 4.5rem var(--space-3) var(--space-3);
    }
}

/* ----- Photo gallery of one item (swipe, arrows, dots): used on the timeline and in the popup ----- */
.pg {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--blush);
}

.pg-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

    .pg-track::-webkit-scrollbar {
        display: none;
    }

.pg-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

    .pg-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.pg-slide-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

    .pg-slide-btn:focus-visible {
        outline-offset: -6px;
    }

/* Dots sit on top of the photo, so the frame keeps its shape */
.pg .artwork-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    pointer-events: none;
}

.pg .artwork-gallery-dot {
    pointer-events: auto;
}

    .pg .artwork-gallery-dot::before {
        background: #fff;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.55);
        opacity: 0.65;
    }

    .pg .artwork-gallery-dot[aria-current="true"]::before {
        opacity: 1;
    }

/* Popup: the whole photo is shown, not cropped */
.pg-popup {
    aspect-ratio: 4 / 3;
    max-height: 65dvh;
    border-radius: 0.5rem;
}

    .pg-popup .pg-slide img {
        object-fit: contain;
    }

@media (max-width: 36rem) {
    .pg-popup {
        aspect-ratio: 1;
    }
}

/* ----- Hints that there is more to see: shadows on the edges and a counter ----- */
.pg::before,
.pg::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pg::before {
    left: 0;
    background: linear-gradient(to right, rgba(60, 30, 40, 0.4), transparent);
}

.pg::after {
    right: 0;
    background: linear-gradient(to left, rgba(60, 30, 40, 0.5), transparent);
}

.pg.has-prev::before,
.pg.has-next::after {
    opacity: 1;
}

.pg .artwork-gallery-btn,
.pg .artwork-gallery-dots {
    z-index: 2;
}

.pg-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: rgba(60, 30, 40, 0.72);
    border-radius: 999px;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .pg::before,
    .pg::after {
        transition: none;
    }
}

/* ----- Soft colour: white cards on pale panels, a colour per timeline card ----- */
.milestone {
    --tone: #bf4f47;
}

    .milestone:nth-child(3n + 2) {
        --tone: var(--berry);
    }

    .milestone:nth-child(3n) {
        --tone: var(--mauve);
    }

/* White dot with a coloured icon and ring */
.timeline .milestone .milestone-dot {
    color: var(--tone);
    background: #fff;
    border-color: var(--tone);
}

.milestone-card {
    background: #fff;
    border-top: 6px solid var(--tone);
    box-shadow: 0 8px 20px rgba(110, 75, 71, 0.16);
}

.milestone-date {
    display: inline-block;
    margin-bottom: 0.375rem;
    padding: 0.125rem 0.75rem;
    color: #fff;
    background: var(--tone);
    border-radius: 999px;
}

/* "Vandaag": a white label on the line */
.timeline .milestone.milestone--today .milestone-dot {
    color: #fff;
    background: var(--heading);
    border-color: #fff;
}

.today-label {
    padding: 0.5rem 0.75rem 0.625rem;
    background: #fff;
    border-radius: 0.5rem 1.25rem 0.5rem 1.25rem;
    box-shadow: 0 6px 14px rgba(110, 75, 71, 0.16);
}

@keyframes today-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(181, 69, 61, 0.45), 0 6px 14px rgba(110, 75, 71, 0.25);
    }

    70%, 100% {
        box-shadow: 0 0 0 0.875rem rgba(181, 69, 61, 0), 0 6px 14px rgba(110, 75, 71, 0.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline .milestone.milestone--today .milestone-dot {
        box-shadow: 0 0 0 5px rgba(234, 133, 121, 0.4), 0 6px 14px rgba(110, 75, 71, 0.25);
    }
}

/* Mouse users can drag the timeline sideways */
.timeline {
    cursor: grab;
}

    .timeline.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none; /* snapping comes back when the mouse is released */
        user-select: none;
        -webkit-user-select: none;
    }

        .timeline.is-dragging * {
            cursor: grabbing;
        }

/* ---------- Over mij: opleidingen ---------- */
.education {
    margin-bottom: var(--space-5);
}

.diplomas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

    .diplomas li {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: var(--space-3);
        align-items: start;
        padding: var(--space-3);
        background: rgba(255, 255, 255, 0.72);
        border-left: 6px solid var(--role);
        border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
        box-shadow: 0 8px 20px rgba(110, 75, 71, 0.12);
    }

        .diplomas li:nth-child(even) {
            border-radius: 1.75rem 0.5rem 1.75rem 0.5rem;
        }

        .diplomas li:nth-child(1) {
            --role: var(--berry);
        }

        .diplomas li:nth-child(2) {
            --role: var(--mauve);
        }

    .diplomas h3 {
        margin-bottom: 0.25rem;
        font-size: 1.25rem;
        font-weight: 500;
        line-height: 1.3;
        color: var(--role);
    }

.diploma-year {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--eyebrow);
}

.diploma-school {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--heading);
}

@media (max-width: 56rem) {
    .diplomas {
        grid-template-columns: 1fr;
    }
}

/* ---------- Atelierles: lessen en workshops onder elkaar ---------- */
.atelier-block .season:last-of-type {
    margin-bottom: var(--space-3);
}

/* ---------- Agenda: compacte lesdata op de tijdlijn ---------- */
.milestone--lesson {
    flex-basis: min(70%, 12rem);
}

.milestone-time {
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--eyebrow);
}

.milestone-link {
    margin-top: var(--space-2);
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.portfolio-item {
    overflow: hidden;
    background: var(--surface);
    border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
    box-shadow: 0 8px 20px rgba(110, 75, 71, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .portfolio-item:nth-child(even) {
        border-radius: 1.75rem 0.5rem 1.75rem 0.5rem;
    }

    .portfolio-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(110, 75, 71, 0.2);
    }

    .portfolio-item button {
        display: block;
        width: 100%;
        aspect-ratio: 1;
        padding: 0;
        overflow: hidden;
        background: var(--blush);
        border: 0;
        cursor: pointer;
    }

        .portfolio-item button:focus-visible {
            outline-offset: -6px;
        }

    .portfolio-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .portfolio-item button:hover img {
        transform: scale(1.04);
    }

.portfolio-dialog {
    width: min(92vw, 56rem);
}

.portfolio-stage {
    position: relative;
    touch-action: pan-y;
}

    .portfolio-stage img {
        width: 100%;
        max-height: 70dvh;
        object-fit: contain;
        background: var(--blush);
        border-radius: 0.5rem;
    }

    .portfolio-stage [hidden] {
        display: none;
    }

.portfolio-count {
    text-align: center;
    font-weight: 600;
    color: var(--eyebrow);
}

@media (max-width: 36rem) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-item:hover,
    .portfolio-item button:hover img {
        transform: none;
    }
}

/* Achtergrond blijft staan als een popup open is (ook op Agenda en Portfolio) */
body:has(dialog[open]) {
    overflow: hidden;
}

/* ---------- Over mij: portrait and intro side by side, quote and text underneath ---------- */
.about-top .portrait {
    width: 100%;
    margin: 0;
}

/* The rest of the text runs in two balanced columns under the photo row */
.about-bio {
    grid-column: 1 / -1;
    columns: 2 20rem;
    column-gap: var(--space-5);
}

    .about-bio p {
        break-inside: avoid;
    }

@media (max-width: 56rem) {
    .about-top {
        grid-template-columns: minmax(0, 1fr);
    }

        .about-top .portrait {
            width: min(80%, 20rem);
            margin-inline: auto;
        }
}

/* ---------- Agenda: locatie en compacte lesdata ---------- */
.milestone-place {
    margin-bottom: var(--space-1);
    font-size: 0.875rem;
    font-weight: 500;
}

.milestone-title-link {
    color: inherit;
    text-decoration: none;
}

    .milestone-title-link:hover {
        color: var(--link-hover);
        text-decoration: underline;
    }

.milestone--lesson .milestone-card {
    padding: 0.625rem var(--space-2) 0.75rem;
}

    .milestone--lesson .milestone-card h3 {
        margin-bottom: 0.25rem;
        font-size: 1rem;
        line-height: 1.3;
    }

.milestone--lesson .milestone-date {
    margin-bottom: 0.25rem;
    padding: 0 0.625rem;
    font-size: 0.8125rem;
}

.milestone--lesson .milestone-time,
.milestone--lesson .milestone-place {
    margin-bottom: 0;
    font-size: 0.8125rem;
}

/* ---------- Atelierles: locatie bij een les of workshop ---------- */
.event-where {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* ---------- Agenda: lesson cards only as tall as their content ---------- */
.milestone--lesson {
    align-self: flex-start;
    gap: var(--space-1);
}

    .milestone--lesson .milestone-card {
        padding: 0.5rem 0.75rem 0.625rem;
        border-top-width: 4px;
    }

        .milestone--lesson .milestone-card h3 {
            margin-bottom: 0.125rem;
            font-size: 0.9375rem;
            line-height: 1.25;
        }

    .milestone--lesson .milestone-date {
        margin-bottom: 0.125rem;
        padding: 0;
        font-size: 0.75rem;
        color: var(--tone);
        background: none;
        border-radius: 0;
    }

    .milestone--lesson .milestone-time,
    .milestone--lesson .milestone-place {
        font-size: 0.75rem;
        line-height: 1.35;
    }

/* ---------- Mobile and tablet fixes ---------- */
/* Statement: room on the right for the closing quote mark */
.statement {
    padding-right: 2.75rem;
}

@media (max-width: 56rem) {
    .statement {
        padding-right: 2.25rem;
    }

        .statement::after {
            font-size: 3rem;
        }
}

@media (max-width: 36rem) {
    /* Voorstellen: roomier text panel, a bigger location badge without icons so the words are not clipped */
    .together {
        padding: var(--space-3);
        gap: var(--space-3);
    }

    .portrait-dab {
        width: 56%;
    }

    /* Contact: a larger info circle with less inner padding */
    .ring:has(.circle-frame--info) {
        width: min(100%, 20rem);
    }

    .circle-frame--info {
        padding: 8%;
    }
}

/* ---------- Home buttons: 2x2 on tablets ----------
   Below 68.75rem the hero stacks, but the text column is then wide enough for two buttons per row.
   From 40rem (about 640px, large phones in landscape and up) the buttons form a 2x2 grid; below that they stay in one column. */
@media (min-width: 40rem) and (max-width: 68.74rem) {
    .buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 34rem;
        margin: 0 auto;
    }

        .buttons .btn-secondary {
            grid-column: auto;
        }
}

/* ---------- Voorstellen: location dab on phones and tablets ----------
   The dab is a small circle. Split diagonally, each half is a narrow half-disc and "Soesterberg" does not fit in it.
   Here the circle is split horizontally instead: the text sits next to the dividing line, where each half is widest,
   so words and icons are not clipped by the circle or by the split. Desktop keeps the diagonal split. */
@media (max-width: 56rem) {
    .portrait-dab-half {
        white-space: nowrap;
    }

    .portrait-dab-soesterberg {
        justify-content: center;
        align-content: end;
        padding: 0 0 57%; /* each half is the full circle, clipped: 50% (half the height) + 7% */
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    }

    .portrait-dab-veenendaal {
        justify-content: center;
        align-content: start;
        padding: 57% 0 0;
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    }

        /* Veenendaal: text next to the dividing line, icon below it */
        .portrait-dab-veenendaal i {
            order: 2;
        }
}
