/* Foubert mediabibliotheek – "Poster" stijl (tokens uit de Foubert Design System). */
@font-face { font-family: "Pulp Display"; src: url("/assets/fonts/Pulp-Display-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pulp Display"; src: url("/assets/fonts/Pulp-Display-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pulp Display"; src: url("/assets/fonts/Pulp-Display-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pulp Display"; src: url("/assets/fonts/Pulp-Display-Extra-Bold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Morning Memories"; src: url("/assets/fonts/Morning-Memories-Script.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --red: #F4303C; --red-hover: #D92E3B; --pink-light: #FBC0C6;
  --brown: #643000; --ink: #2A1B0E; --ink-soft: #5C4430; --tan: #E8D0B8;
  --cream: #FDFAF4; --cream-2: #F7F0E4; --cream-deep: #F0E6D4; --white: #fff;
  --hair: rgba(107,63,12,.18); --hair-strong: rgba(107,63,12,.3);
  --display: "Pulp Display", "Helvetica Neue", Arial, sans-serif;
  --script: "Morning Memories", cursive;
  --body: "Pulp Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --radius: 24px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.5 var(--body); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header / footer */
.top { border-bottom: 1px solid var(--hair); background: var(--cream); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 120px; height: auto; }
.brand span { font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brown); border-left: 1px solid var(--hair-strong); padding-left: 12px; }
.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { font: 500 15px/1 var(--display); text-decoration: none; color: var(--ink); }
.top nav a:hover, .top nav a[aria-current] { color: var(--red); }
.foot { margin-top: 80px; background: var(--brown); color: var(--cream); padding: 40px 0 48px; font-size: 15px; }
.foot a { color: var(--cream); }
.foot .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot h2 { font: 700 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; color: var(--pink-light); }
.foot p { margin: 0 0 6px; }

/* Typography */
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(20px, 3vw, 36px); }
.hero .script { font: 400 clamp(30px, 4vw, 52px)/1 var(--script); color: var(--red); margin: 0 0 4px; }
.hero h1 { font-weight: 800; font-size: clamp(42px, 7.6vw, 112px); line-height: .88; letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { max-width: 60ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); margin: 18px 0 0; }
.kicker { font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.crumbs { font-size: 14px; margin: 24px 0 0; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.pagehead { padding: 8px 0 24px; }
.pagehead h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 72px); line-height: .95; letter-spacing: -.03em; margin-top: 10px; }
.pagehead p { color: var(--ink-soft); max-width: 70ch; margin: 12px 0 0; }

/* Search */
.search { background: var(--white); border: 1px solid var(--hair-strong); border-radius: var(--radius); padding: clamp(14px, 2vw, 22px); box-shadow: 16px 16px 0 rgba(107,63,12,.08); }
.search .q { display: flex; gap: 10px; }
.search input[type=search] { flex: 1; min-width: 0; font: 500 19px/1.2 var(--display); padding: 14px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); }
.search input[type=search]::placeholder { color: #8a7562; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.filters label { display: grid; gap: 4px; font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--brown); }
.filters select { font: 500 15px/1.2 var(--body); padding: 10px 12px; border: 1px solid var(--hair-strong); border-radius: 12px; background: var(--cream); color: var(--ink); width: 100%; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--display); padding: 12px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--cream); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn.small { padding: 8px 12px; font-size: 13px; }
.count { margin: 22px 0 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.count strong { font: 800 22px/1 var(--display); }
.count span { color: var(--ink-soft); font-size: 15px; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(12px, 1.6vw, 20px); list-style: none; padding: 0; margin: 0; }
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(107,63,12,.14); color: var(--ink); }
.card .thumb { aspect-ratio: 4 / 3; background: var(--cream-deep); display: grid; place-items: center; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb.contain img { object-fit: contain; padding: 14px; }
.card .thumb.checker { background-color: #fff; background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.card .thumb.dark { background: var(--brown); }
.card .thumb.doc { background: var(--cream-2); color: var(--brown); }
.card .thumb.doc svg { width: 54px; height: 54px; }
.card .meta { padding: 12px 14px 14px; display: grid; gap: 4px; }
.card .meta b { font: 700 15px/1.25 var(--display); }
.card .meta small { font-size: 13px; color: var(--ink-soft); }
.tag { display: inline-block; font: 700 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--cream-deep); color: var(--brown); }
.more { display: flex; justify-content: center; margin: 28px 0 0; }
.empty { padding: 40px; text-align: center; background: var(--cream-2); border-radius: var(--radius); }

/* Collections list */
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 16px 0 0; }
.cols a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; border: 1px solid var(--hair-strong); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--white); font: 700 16px/1.2 var(--display); }
.cols a:hover { border-color: var(--red); color: var(--red); }
.cols a span { font: 500 14px/1 var(--body); color: var(--ink-soft); }
section.block { margin-top: clamp(40px, 6vw, 72px); }
section.block > h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.02em; }

/* Pager */
.pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.pager a, .pager span { min-width: 44px; text-align: center; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--hair-strong); text-decoration: none; font: 700 15px/1 var(--display); }
.pager [aria-current] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Asset page */
.asset { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.preview { background: var(--cream-deep); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.preview img, .preview video { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.preview.checker { background-color: #fff; background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; padding: 32px; }
.preview.dark { background: var(--brown); padding: 32px; }
.preview.doc { padding: 56px 24px; color: var(--brown); text-align: center; gap: 12px; }
.preview.doc svg { width: 96px; height: 96px; margin: 0 auto; }
.info h1 { font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1; letter-spacing: -.025em; margin: 10px 0 12px; }
.info .desc { font-size: 18px; margin: 0 0 14px; }
.info .i18n { font-size: 15px; color: var(--ink-soft); border-left: 3px solid var(--tan); padding-left: 12px; margin: 0 0 8px; }
.info .i18n b { font-family: var(--display); color: var(--brown); margin-right: 6px; }
.lic { margin: 20px 0; padding: 16px 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--hair-strong); font-size: 15px; }
.lic strong { font-family: var(--display); }
.credit { font-family: var(--mono); font-size: 14px; background: var(--cream-2); padding: 2px 6px; border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font: 700 13px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--brown); width: 34%; }
td code { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.dl { margin-top: 32px; }
.dl h2, .metah { font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 12px; letter-spacing: -.02em; }
.dl table td { vertical-align: middle; }
.dl .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: nowrap; }
.dl td { white-space: nowrap; }
.dl td:first-child { white-space: normal; }
.dl .fmt { font: 700 15px/1.2 var(--display); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--cream-deep); text-decoration: none; color: var(--brown); }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--pink-light); color: var(--ink); margin: 16px 0; font-size: 15px; }

/* Prose (licentie) */
.prose { max-width: 72ch; }
.prose h2 { font-weight: 800; font-size: clamp(24px, 2.8vw, 34px); margin: 36px 0 10px; }
.prose li { margin: 6px 0; }
.lang { display: inline-block; font: 700 12px/1 var(--display); letter-spacing: .1em; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--cream); vertical-align: middle; margin-right: 8px; }

@media (max-width: 960px) {
  .asset { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { width: 96px; }
  .brand span { display: none; }
  .top nav { gap: 14px; }
  .search .q { flex-direction: column; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .meta { padding: 10px; }
  .card .meta b { font-size: 14px; }
  th { width: 38%; }
  .dl thead { display: none; }
  .dl tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
  .dl td { border: 0; padding: 0; white-space: normal; }
  .dl td.acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
[hidden] { display: none !important; }
