/* Pim & Pom op museumtoer */

@font-face {
    font-family: "Clarendon";
    src: url("../fonts/ClarendonLTStd-Bold.woff2") format("woff2"), url("../fonts/ClarendonLTStd-Bold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Clarendon";
    src: url("../fonts/ClarendonLTStd.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Minion";
    src: url("../fonts/MinionPro-Regular.woff2") format("woff2"), url("../fonts/MinionPro-Regular.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Minion";
    src: url("../fonts/MinionPro-Semibold.otf") format("opentype");
    font-weight: 600;
    font-display: swap;
}

:root {
    --pp-red: #e3262b;
    --pp-yellow: #f6b828;
    --pp-blue: #a9d3d8;
    --pp-sand: #d9d4cc;
    --pp-ink: #231f20;
    --pp-grey: #e6e6e8;
    --pp-heading: "Clarendon", "Rockwell", "Roboto Slab", Georgia, serif;
    --pp-body: "Minion", "Minion Pro", Georgia, "Times New Roman", serif;
}

body {
    margin: 0;
    background: #fff;
    color: var(--pp-ink);
    font-family: var(--pp-body);
    font-size: 1.125rem;
    line-height: 1.4;
    overflow-x: hidden;
    overflow-x: clip;
}

h1, h2, h3, .site-title, .pill, .afl-badge, .painting-title, .onderbouw {
    font-family: var(--pp-heading);
    font-weight: 700;
    line-height: 1.05;
}

a { color: inherit; }

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
}
.brand {
    --sticker: clamp(64px, 10vw, 96px);
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}
/* ruimte links voor de sticker, zodat die het plaatje maar een klein stukje overlapt */
.brand:has(.onderbouw) { padding-left: calc(var(--sticker) * .95); }
.caravan {
    width: clamp(170px, 30vw, 330px);
    height: auto;
}
.onderbouw {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: var(--sticker);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--pp-red);
    color: #fff;
    font-size: clamp(.7rem, 1.4vw, .95rem);
    text-align: center;
    padding: 8px;
    transform: translateY(-60%) rotate(-14deg);
}
.site-title {
    margin: 0;
    font-size: clamp(1.4rem, 4.2vw, 2.6rem);
    text-align: right;
}
.header-rule {
    border: 0;
    border-top: 1.5px solid var(--pp-ink);
    opacity: 1;
    margin: 12px 0 16px;
}

/* afl. badge */
.afl-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 2.6em;
    padding: .25em .35em .3em;
    background: var(--pp-red);
    color: #fff;
    border-radius: .35em;
    font-size: 1.5rem;
    line-height: .9;
}
.afl-badge small {
    font-family: var(--pp-body);
    font-weight: 400;
    font-size: .5em;
    line-height: 1;
}
.afl-badge--lg {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-right: 12px;
}

/* ---------- Pill buttons ---------- */
.pill-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 16px;
    margin-bottom: 24px;
}
.pill {
    display: block;
    padding: .35em 1em .3em;
    border-radius: 999px;
    color: var(--pp-ink);
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}
.pill:hover, .pill:focus-visible { transform: translateY(-2px); filter: brightness(1.05); color: var(--pp-ink); }
.pill--blue { background: var(--pp-blue); }
.pill--yellow { background: var(--pp-yellow); }
.pill--grey { background: var(--pp-sand); }
.pill--red { background: var(--pp-red); color: #fff; }
.pill--red:hover { color: #fff; }

/* ---------- Intro ---------- */
.dashed-box { border: 1.5px dashed var(--pp-ink); }

.intro {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 37%);
    grid-template-areas: "text song" "hint song";
    column-gap: 0;
    margin-bottom: 0;
}
.intro-text {
    grid-area: text;
    margin-right: -40px;
    padding: 28px 72px 24px 28px;
    text-align: center;
    font-family: var(--pp-body);
    font-weight: 600;
    font-size: 1rem;
}
.intro-text h1 {
    color: var(--pp-red);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: .6em;
}
.intro-text p { margin-bottom: 1em; }
.song {
    grid-area: song;
    position: relative;
    z-index: 1;
    align-self: start;
    margin-top: 24px;
    background: var(--pp-ink);
    color: #fff;
    text-align: center;
    padding: 40px 24px 24px;
    font-size: 1.3rem;
    line-height: 1.35;
}
.song h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    margin-bottom: .8em;
}
.song-note {
    position: absolute;
    top: -22px;
    right: -14px;
    width: 92px;
    height: 92px;
}
.click-hint {
    grid-area: hint;
    text-align: center;
    margin: 32px 0 20px;
    font-family: var(--pp-heading);
    font-size: 1rem;
}

/* ---------- Gallery ---------- */
.gallery {
    background: var(--pp-grey);
    margin: 0 -16px;
    padding: 32px 16px 40px;
}
@media (min-width: 1100px) {
    /* grijze band over de volle breedte zonder horizontale scroll */
    .gallery { box-shadow: 0 0 0 100vmax var(--pp-grey); clip-path: inset(0 -100vmax); }
}
.gallery-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
}
.painting {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--pp-ink);
    text-align: center;
}
.frame {
    position: relative;
    display: block;
    aspect-ratio: 1.3;
    padding: 12% 13%;
    background: #fff;
}
.frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/lijst-frame.png") center / 100% 100% no-repeat;
    pointer-events: none;
}
.frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.painting .afl-badge {
    position: absolute;
    left: -8px;
    top: 26%;
    transition: transform .2s ease;
}
.painting-title {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
}
.painting:hover .frame, .painting:focus-visible .frame { transform: rotate(-1.5deg); }
.painting:hover .afl-badge, .painting:focus-visible .afl-badge { transform: scale(1.08); }
.frame { transition: transform .2s ease; }

/* ---------- Episode page ---------- */
.episode-top {
    display: grid;
    grid-template-columns: 1fr 40%;
    grid-template-areas: "text still" "les still";
    margin-bottom: 40px;
}
.episode-text { grid-area: text; padding-right: 24px; }
.episode h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin: 8px 0 .4em;
}
.lead-text {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 24px;
}
.episode-les {
    grid-area: les;
    align-self: start;
    margin-right: -66.67%;
    padding: 16px 24px 20px;
    padding-right: calc(66.67% + 32px);
    position: relative;
}
.episode-les h2 { font-size: 1.4rem; margin-bottom: .5em; }
.bullets {
    margin: 0;
    padding-left: 1em;
    font-weight: 600;
    list-style: none;
}
.bullets li { position: relative; margin-bottom: .1em; }
.bullets li::before { content: "•"; position: absolute; left: -1em; }

.episode-still {
    grid-area: still;
    position: relative;
    z-index: 1;
    margin: 0 0 0 0;
    align-self: start;
    text-align: center;
    background: #fff;
    padding: 0 0 8px 0;
}
.episode-still img { width: 100%; height: auto; display: block; }
.episode-still figcaption {
    margin-top: 12px;
    font-weight: 600;
    font-size: 1.2rem;
}
.episode-still a { text-decoration: none; }
.still-link { position: relative; display: block; }
.play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: clamp(56px, 8vw, 84px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--pp-red);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}
.play svg { width: 55%; height: 55%; fill: #fff; }
.still-link:hover .play, .still-link:focus-visible .play { transform: translate(-50%, -50%) scale(1.1); }
.episode-still figcaption a:hover { text-decoration: underline; }

.downloads-title {
    text-align: center;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 16px 0 32px;
}
.downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
    align-items: start;
}
.download { text-align: center; font-weight: 600; font-size: 1.25rem; }
.download p { margin-top: 12px; line-height: 1.25; }
.download p a { text-decoration: underline; text-underline-offset: 3px; }
.download-img { display: block; transition: transform .2s ease; }
.download-img:hover { transform: translateY(-3px); }
.download-img img { max-width: 100%; height: auto; }
.download--lesbrief .download-img img { border: 1px solid var(--pp-ink); }
.download-col { display: grid; gap: 32px; }
.download-col .download-img img { max-height: 340px; width: auto; }

.episode-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 48px 0 16px;
}
.episode-nav .pill { justify-self: start; }
.episode-nav .pill:last-child { justify-self: end; }
.episode-nav .pill--yellow { justify-self: center; }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 24px 0 32px;
    font-size: 1rem;
}
.site-footer p { margin: 0 0 4px; }
.site-footer .small { color: #6b6667; }

/* 404 */
.notfound { text-align: center; padding: 48px 0 64px; }
.notfound h1 { color: var(--pp-red); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .pill-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    body { font-size: 1.05rem; }
    .intro {
        grid-template-columns: 1fr;
        grid-template-areas: "text" "song" "hint";
    }
    .intro-text { margin-right: 0; padding: 20px 16px; }
    .song { margin-top: 24px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
    .painting .afl-badge { font-size: 1.15rem; }

    .episode-top { grid-template-columns: 1fr; grid-template-areas: "text" "still" "les"; }
    .episode-text { padding-right: 0; }
    .episode-les { margin-right: 0; padding-right: 20px; margin-top: 24px; }
    .downloads { grid-template-columns: 1fr; }
    .episode-nav { grid-template-columns: 1fr; justify-items: center; }
    .episode-nav .pill, .episode-nav .pill:last-child { justify-self: center; }
}
@media (max-width: 575.98px) {
    .site-header { align-items: center; gap: 10px; }
    .brand { flex-shrink: 0; }
    .brand { --sticker: 56px; }
    .onderbouw { font-size: .62rem; padding: 4px; }
    .caravan { width: 128px; }
    .afl-badge--lg { font-size: 1.5rem; margin-right: 8px; }
    .site-title { font-size: 1.05rem; }
}
@media (max-width: 420px) {
    .pill-nav { grid-template-columns: 1fr; }
}
