/*
Theme Name: Benjamin Veenstra
Theme URI: https://benjaminveenstra.nl
Author: Benjamin Veenstra
Description: Minimalistisch portfolio-thema voor documentairemaker Benjamin Veenstra. Veel wit, typemachinelettertype, video's centraal. Met eigen onderdelen voor Afleveringen en Media.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: benjaminveenstra
*/

:root {
  --bg: #ffffff;
  --ink: #111111;
  --soft: #6d6d6a;
  --line: #e4e4e0;
  --well: #f3f3f0;
  --type: "Courier Prime", "American Typewriter", "Courier New", Courier, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1040px;
  --cols: 2;
  --accent: #ff3b1f;
  --hand: "Reenie Beanie", "Bradley Hand", "Segoe Script", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--type);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--soft); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { font: inherit; margin: 0; }
ul { margin: 0; padding: 0; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* header */
.site-header { padding-block: clamp(28px, 5vw, 56px) 0; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; }
.site-name { font-size: 16px; text-decoration: none; }
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--soft); }
.site-nav a:hover { color: var(--ink); }

/* intro */
.intro { padding-block: clamp(72px, 12vw, 160px) clamp(56px, 8vw, 112px); }
.intro h1 { font-size: clamp(26px, 4.2vw, 46px); line-height: 1.3; max-width: 28ch; text-wrap: balance; }

section.block { padding-block: clamp(48px, 7vw, 96px) 0; }
.label { color: var(--soft); margin-bottom: clamp(24px, 3vw, 40px); display: block; }

/* video's */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--well); width: 100%; display: block; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
figure { margin: 0; display: grid; gap: 12px; }
figcaption { display: flex; justify-content: space-between; gap: 16px; color: var(--soft); font-size: 14px; }
figcaption a { text-decoration: none; }
figcaption a:hover { color: var(--ink); }
.logline { color: var(--ink); font-size: 15px; max-width: 60ch; }

.feature { margin-bottom: clamp(48px, 7vw, 96px); }
.grid.small { --cols: 3; }
.sub { margin-top: clamp(64px, 9vw, 120px); }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.bv-lightbox { position: fixed; inset: 0; background: rgba(11,11,13,0.92); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 56px clamp(16px, 4vw, 48px) 24px; }
.bv-lightbox-inner { position: relative; width: 100%; max-width: 1040px; aspect-ratio: 16 / 9; background: #000; }
.bv-lightbox-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bv-lightbox-close { position: absolute; top: -40px; right: 0; width: 36px; height: 36px; background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.bv-lightbox-close:hover { color: var(--accent-text); }
.bv-video-facade { cursor: pointer; background: var(--well); border: 0; padding: 0; }
.bv-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bv-play-btn { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-text); border: 0; cursor: pointer; padding: 0; }
.bv-play-btn::after { content: ''; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #0b0b0d; }
.bv-play-btn:hover { filter: brightness(1.1); }

/* over / media / contact */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 6vw, 96px); }
.cols .body { display: grid; gap: 1.4em; max-width: 60ch; align-content: start; }
.portrait { display: block; width: 100%; max-width: 380px; height: auto; background: var(--well); }

.press { list-style: none; max-width: 60ch; }
.press li { border-top: 1px solid var(--line); }
.press li:last-child { border-bottom: 1px solid var(--line); }
.press a { display: grid; gap: 2px; padding: 18px 0; text-decoration: none; }
.press .src { color: var(--soft); font-size: 14px; }
.press a:hover .ttl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

form.contact { display: grid; gap: 28px; max-width: 60ch; }
.field { display: grid; gap: 6px; }
.field label { color: var(--soft); font-size: 14px; }
input[type="text"], input[type="email"], textarea {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 8px 0; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
button.send {
  font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--ink);
  padding: 12px 22px; cursor: pointer; justify-self: start; border-radius: 0;
}
button.send:hover { background: var(--ink); color: var(--bg); }
.note { color: var(--soft); font-size: 14px; min-height: 1.5em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* gewone pagina's */
.page-content { padding-block: clamp(48px, 7vw, 96px) 0; display: grid; gap: 1.4em; max-width: 60ch; }
.page-content h1 { font-size: clamp(26px, 4.2vw, 46px); line-height: 1.3; }

.site-footer { margin-top: clamp(80px, 12vw, 160px); padding-block: 0 clamp(32px, 5vw, 56px); color: var(--soft); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .wrap::before { content: ""; flex: 0 0 100%; border-top: 1px solid var(--line); margin-bottom: 24px; }

@media (max-width: 760px) {
  .cols, .grid, .grid.small { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .grid.small { --cols: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- v1.2: straat, film en handschrift ---- */
::selection { background: var(--accent); color: #fff; }
a:hover { text-decoration-color: var(--accent-text); }

/* vaste kop: wit op donker, zwart op wit */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 10; color: #fff; mix-blend-mode: difference; padding-block: clamp(16px, 2.6vw, 30px) 0; pointer-events: none; }
.site-header a { pointer-events: auto; color: #fff; }
.site-header .wrap { max-width: none; align-items: center; }
.site-name { text-transform: uppercase; letter-spacing: 0.34em; font-size: 12px; font-weight: 700; }
.site-nav { gap: clamp(16px, 2.4vw, 32px); }
.site-nav a { text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; opacity: 0.8; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: currentColor; }

/* openingsfilm */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 440px; background: #000 center / cover no-repeat; overflow: hidden; color: #fff; }
.hero-film { position: absolute; inset: 0; pointer-events: none; }
.hero-film iframe { position: absolute; top: 50%; left: 50%; width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); transform: translate(-50%, -50%) scale(1.08); border: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 50%); pointer-events: none; }
.hero-text { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(44px, 8vw, 96px); }
.hero-name { margin: 0; font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: clamp(18px, 2.8vw, 40px); line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800; }
.hero-name span { display: block; }
.hero-note { display: inline-block; margin: clamp(6px, 1.2vw, 14px) 0 0 0.1em; font-family: var(--hand); font-size: clamp(22px, 2.4vw, 34px); line-height: 1; color: var(--accent-text); transform: rotate(-3deg); transform-origin: left center; }
.hero-down { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(44px, 8vw, 96px); color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; }
.hero-down:hover { color: var(--accent-text); }

.intro { padding-block: clamp(120px, 16vw, 200px) clamp(56px, 8vw, 112px); }
.hero + .intro { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 80px); }

/* handgeschreven details */
.hand { font-family: var(--hand); color: var(--accent-text); font-size: 34px; line-height: 1; letter-spacing: 0; display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; transform: rotate(-3deg); vertical-align: middle; text-transform: none; }
.hand svg { width: 54px; height: 28px; flex: none; }
.signature { font-family: var(--hand); font-size: clamp(56px, 8vw, 96px); line-height: 1; color: var(--ink); transform: rotate(-4deg); transform-origin: left center; margin-top: 0.3em; }

/* accentkleur: alleen bij hover en focus */
.press a:hover .ttl { color: var(--accent-text); }
figcaption a:hover { color: var(--accent-text); }
button.send:hover { background: var(--accent); border-color: var(--accent-text); color: #fff; }
input:focus, textarea:focus { border-bottom-color: var(--accent-text); }
:focus-visible { outline-color: var(--accent-text); }

.page-content { padding-top: clamp(110px, 14vw, 170px); }

@media (prefers-reduced-motion: reduce) {
  .hero-film iframe { display: none; }
}
@media (max-width: 760px) {
  .site-name { letter-spacing: 0.22em; }
  .site-nav a:nth-child(1) { display: none; }
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.grid + .grid.small { margin-top: clamp(48px, 7vw, 96px); }

/* ---- v1.4: Neo-Tokio, jaren 80 anime ---- */
:root {
  --bg: #0b0b0d;
  --ink: #f1eee6;
  --soft: #9b988f;
  --line: #2b2b30;
  --well: #16161a;
  --accent: #e60023;
  --accent-text: #ff4d4d;
  --jp: "DotGothic16", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", monospace;
  --marker: "Permanent Marker", "Marker Felt", "Bradley Hand", cursive;
}
html { color-scheme: dark; background: var(--bg); }

.site-header { mix-blend-mode: normal; background: linear-gradient(to bottom, rgba(11, 11, 13, 0.92), rgba(11, 11, 13, 0)); padding-bottom: 30px; }
.site-name { font-family: var(--jp); font-weight: 400; font-size: 13px; letter-spacing: 0.3em; }
.site-nav a { font-family: var(--jp); text-align: center; line-height: 1.25; opacity: 0.92; }
.site-nav a small { display: block; font-size: 10px; letter-spacing: 0.14em; color: var(--accent-text); margin-top: 2px; text-transform: none; }

/* openingsfilm: scanlines, zoekerhoeken, verticale katakana */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.24) 0 1px, transparent 1px 3px); }
.hero-frame { --c: rgba(255, 255, 255, 0.75); position: absolute; z-index: 1; pointer-events: none; inset: clamp(70px, 9vw, 92px) clamp(14px, 2vw, 26px) clamp(14px, 2vw, 26px);
  background:
    linear-gradient(var(--c), var(--c)) top left / 22px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 22px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 22px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 22px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 22px no-repeat; }
.hero-jp { position: absolute; z-index: 2; right: clamp(30px, 4.2vw, 58px); top: clamp(100px, 14vw, 156px); writing-mode: vertical-rl; font-family: var(--jp); color: var(--accent-text); font-size: clamp(20px, 2.4vw, 32px); letter-spacing: 0.35em; }
.hero-text { left: clamp(30px, 4.2vw, 58px); bottom: clamp(40px, 6vw, 74px); }
.hero-down { right: clamp(30px, 4.2vw, 58px); bottom: clamp(40px, 6vw, 74px); font-family: var(--jp); }
.hero-kana { display: block; font-family: var(--jp); font-size: clamp(11px, 1.2vw, 15px); letter-spacing: 0.3em; color: var(--accent-text); margin-bottom: 10px; }
.hero-name { font-family: var(--marker); font-weight: 400; text-transform: none; font-size: clamp(22px, 2.9vw, 38px); letter-spacing: 0.02em; line-height: 1.05; transform: rotate(-3deg); transform-origin: left bottom; text-shadow: 2px 2px 0 var(--accent); }
.hero-note { font-size: clamp(20px, 2vw, 28px); margin-top: clamp(8px, 1.4vw, 16px); }

/* de reactie */
.intro { padding-block: clamp(120px, 16vw, 200px) clamp(48px, 7vw, 96px); }
.hero + .intro { padding-block: clamp(64px, 10vw, 130px) clamp(40px, 6vw, 80px); }
blockquote.reactie { margin: 0; max-width: none; }
blockquote.reactie p { font-size: clamp(24px, 3.6vw, 42px); line-height: 1.25; font-weight: 700; text-wrap: balance; max-width: 26ch; }
blockquote.reactie p::before { content: "\201C"; color: var(--accent-text); }
blockquote.reactie p::after { content: "\201D"; color: var(--accent-text); }
blockquote.reactie cite { display: block; margin-top: 20px; font-family: var(--jp); font-style: normal; font-size: 14px; letter-spacing: 0.08em; color: var(--soft); }
blockquote.reactie cite::before { content: "\2014  "; color: var(--accent-text); }

/* labels, video's, media */
.label { font-family: var(--jp); text-transform: uppercase; letter-spacing: 0.22em; font-size: 13px; }
.label::before { content: "//"; color: var(--accent-text); margin-right: 0.7em; }
.jp { color: var(--accent-text); margin-left: 0.9em; letter-spacing: 0.1em; text-transform: none; }
.video { box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.25s ease; }
figure:hover .video { box-shadow: 0 0 0 1px var(--accent), 0 0 30px rgba(230, 0, 35, 0.28); }
figcaption { font-family: var(--jp); font-size: 14px; letter-spacing: 0.04em; }
.press .src { font-family: var(--jp); }

/* over, contact, voet */
.portrait { filter: grayscale(1) contrast(1.06); box-shadow: 10px 10px 0 var(--accent); max-width: 340px; }
.signature { font-family: var(--marker); font-size: clamp(38px, 5vw, 60px); color: var(--ink); }
button.send { border-radius: 999px; border-color: var(--accent-text); font-family: var(--jp); letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 30px; }
.site-footer { font-family: var(--jp); }

.hero-kana { color: #fff; opacity: 0.85; text-shadow: 0 0 8px #000; }
.hero-note { text-shadow: 0 0 6px #000, 0 1px 2px #000; }
.hero-jp { text-shadow: 0 0 8px #000; }

/* ---- v1.4.3: naam in de kop, stijlvoller ---- */
.hero-name { font-family: "Syncopate", "Arial", sans-serif; font-weight: 700; font-size: clamp(13px, 1.55vw, 20px); letter-spacing: 0.34em; line-height: 1.55; text-transform: uppercase; transform: none; text-shadow: none; border-left: 2px solid var(--accent); padding-left: 16px; }
.hero-name span { display: block; }
.hero-kana { font-size: clamp(10px, 1.05vw, 13px); letter-spacing: 0.4em; margin-bottom: 14px; padding-left: 18px; color: #fff; opacity: 0.8; }
.hero-note { font-family: var(--jp); font-size: clamp(11px, 1.1vw, 14px); letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent-text); transform: none; margin: 14px 0 0 18px; text-shadow: 0 0 8px #000; }
@media (max-width: 760px) { .hero-name { letter-spacing: 0.24em; } }

/* ---- v1.5: reacties klein en wisselend, handtekening rood ---- */
.hero + .intro { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 64px); }
.reacties { display: grid; }
.reacties blockquote.reactie { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.reacties blockquote.reactie.is-on { opacity: 1; visibility: visible; }
.reacties blockquote.reactie p { font-size: clamp(16px, 1.9vw, 22px); line-height: 1.5; font-weight: 400; max-width: 48ch; }
.reacties blockquote.reactie cite { margin-top: 14px; font-size: 13px; }
.reacties-dots { grid-row: 2; display: flex; gap: 8px; margin-top: 22px; }
.reacties-dots span { width: 24px; height: 12px; cursor: pointer; background: linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat; }
.reacties-dots span.on { background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat; }
.signature { font-family: var(--jp); font-size: clamp(12px, 1.2vw, 15px); letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent-text); transform: none; margin-top: 1.6em; }
@media (prefers-reduced-motion: reduce) { .reacties blockquote.reactie { transition: none; } }

/* ---- v1.6: Over in rood en zwart, groot ---- */
.over-stage { position: relative; border: 0; min-height: 420px; overflow: hidden; display: grid; align-items: center; }
.over-bleed, .over-tint { position: absolute; inset: 0 0 0 38%; }
.over-bleed { background-position: 50% 18%; background-size: cover; background-repeat: no-repeat; filter: grayscale(1) contrast(1.1) brightness(1.75); }
.over-tint { background: var(--accent); mix-blend-mode: multiply; }
.over-fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 34%, rgba(11, 11, 13, 0) 62%); }
.over-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px); }
.over-jp { position: absolute; z-index: 1; right: clamp(16px, 3vw, 34px); top: 24px; writing-mode: vertical-rl; font-family: var(--jp); letter-spacing: 0.35em; font-size: 15px; color: var(--ink); }
.over-body { position: relative; z-index: 1; padding: clamp(24px, 5vw, 56px); max-width: 48ch; display: grid; gap: 1.4em; }
.over-body .label { margin-bottom: 0; }
.over-text { display: grid; gap: 1.4em; }
.over-text p:first-child { font-weight: 700; }
.over-body .signature { margin-top: 0.4em; }
.press a:not([href]) { cursor: default; }
.press a:not([href]):hover .ttl { color: inherit; }
@media (max-width: 760px) {
  .over-bleed, .over-tint { inset: 0; }
  .over-bleed { opacity: 0.55; }
  .over-fade { background: linear-gradient(0deg, var(--bg) 20%, rgba(11, 11, 13, 0.25) 80%); }
  .over-stage { min-height: 460px; }
}

/* zoekerhoeken om Over, zoals in de kop */
.over-stage::after { --c: rgba(255, 255, 255, 0.75); content: ""; position: absolute; z-index: 2; pointer-events: none; inset: 14px;
  background:
    linear-gradient(var(--c), var(--c)) top left / 22px 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 22px 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 22px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 22px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px 22px no-repeat; }

.over-jp { top: 48px; right: clamp(24px, 3.4vw, 42px); }


/* v1.7: diensten, films-lede, contrast fix, favicon */
.films-lede { margin-bottom: clamp(24px, 4vw, 40px); max-width: 62ch; }
.films-lede p { margin: 0 0 8px; }
.films-lede a, .films-cta a { color: var(--accent-text); }
@media (max-width: 480px) {
  .site-nav { gap: 10px 16px; }
}
.opdracht-note { color: var(--soft); font-size: 15px; max-width: 56ch; margin-bottom: 24px; }
.hero-role { display: block; margin-top: clamp(4px, 1vw, 10px); font-family: var(--jp); font-size: clamp(13px, 1.4vw, 16px); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
