/*
Theme Name: Ophrys
Description: Maatwerk-thema voor Ophrys Art Gallery. Werkt samen met de plugin Ophrys Core (Kunstenaars, Kunstwerken, Exposities).
Author: A.G.S.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ophrys
*/

:root {
	--ink: #111111;
	--muted: #6b6b6b;
	--line: #e4e2dd;
	--paper: #ffffff;
	--tint: #f5f3ef;
	--serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
	--sans: "Inter", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(20px, 4vw, 56px);
	--space: clamp(56px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html.no-scroll { overflow: hidden; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .6; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

.eyebrow {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.link-arrow {
	font-size: 13px;
	letter-spacing: .04em;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}
.link-arrow::after { content: " \2192"; }
.button {
	display: inline-block;
	border: 1px solid var(--ink);
	padding: 14px 28px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	transition: background .2s, color .2s;
}
.button:hover { background: var(--ink); color: #fff; opacity: 1; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
	max-width: 1600px;
	margin: 0 auto;
	padding: 22px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.wordmark {
	font-family: var(--sans);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: .34em;
	text-transform: uppercase;
}
.site-nav .menu { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.site-nav a { font-size: 13px; letter-spacing: .06em; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px 0; font: inherit; font-size: 13px; letter-spacing: .06em; color: inherit; cursor: pointer; }

/* Hero */
.hero__image { display: block; background: var(--tint); }
.hero__image:hover { opacity: 1; }
.hero__image img { width: 100%; height: min(78vh, 900px); object-fit: contain; padding: clamp(16px, 3vw, 48px) 0; }
.hero__caption { padding-top: 28px; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 88px); line-height: 1.02; margin: 10px 0 12px; }
.hero__meta { font-size: 15px; color: var(--muted); }

/* Sections */
.section { padding-top: var(--space); }
.section--flush { padding-top: 0; margin-bottom: var(--space); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: clamp(28px, 4vw, 56px); }
.statement { padding-top: var(--space); max-width: 1200px; margin-left: 0; }
.statement__text { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.15; margin: 18px 0 28px; }

.page-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-head--narrow { max-width: 1100px; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 104px); line-height: 1; margin-top: 12px; }
.page-sub { font-size: 15px; color: var(--muted); margin-top: 14px; }
.lead { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--ink); }
.anchor-nav a { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* Name list */
.name-list { columns: 2; column-gap: var(--gutter); }
.name-list li { break-inside: avoid; }
.name-list a { display: block; font-family: var(--serif); font-size: clamp(30px, 4.4vw, 64px); line-height: 1.12; padding: 4px 0; }
.name-list--small { columns: 1; }
.name-list--small a { font-size: clamp(24px, 2.6vw, 36px); }

/* Works */
.works-grid { columns: 3; column-gap: var(--gutter); }
.work-card { break-inside: avoid; margin-bottom: clamp(36px, 5vw, 72px); }
.work-card__image { display: block; background: var(--tint); }
.work-card__image img { width: 100%; }
.work-card__caption { padding-top: 14px; font-size: 14px; line-height: 1.5; }
.work-card__artist { font-weight: 500; }
.work-card__meta { color: var(--muted); }

.work { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: var(--gutter); padding-top: clamp(32px, 5vw, 72px); align-items: start; }
.work__media { display: grid; gap: 24px; }
.work__media a { background: var(--tint); display: block; cursor: zoom-in; }
.work__media a:hover { opacity: 1; }
.work__media img { width: 100%; max-height: 86vh; object-fit: contain; }
.work__info { position: sticky; top: 110px; }
.work__artist { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.work__title { font-family: var(--sans); font-weight: 400; font-size: 17px; margin: 10px 0 28px; }
.work__facts { border-top: 1px solid var(--line); margin-bottom: 28px; }
.work__facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.work__facts dt { color: var(--muted); }
.work .prose { margin-bottom: 28px; font-size: 15px; }

/* Artists */
.artist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) var(--gutter); }
.artist-card__image { aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; }
.artist-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.artist-card a:hover { opacity: 1; }
.artist-card a:hover img { transform: scale(1.03); }
.artist-card__name { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; margin-top: 16px; }
.artist-card__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Split layout + prose */
.split { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: var(--gutter); }
.split + .split { margin-top: clamp(32px, 4vw, 56px); }
.section > .split, .section.split { border-top: 1px solid var(--ink); padding-top: 16px; }
.section.split { padding-top: 16px; margin-top: var(--space); }
.prose { max-width: 720px; font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin-top: 1.6em; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 26px; }
.prose a { border-bottom: 1px solid currentColor; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose img { margin: 2em 0; }
.prose--article { margin: clamp(40px, 6vw, 80px) auto 0; }
.quote { border: 0; padding: 0; margin-top: 2.2em; }
.quote p { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; }
.quote p::before { content: "\201C"; }
.quote p::after { content: "\201D"; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.links { display: flex; gap: 24px; margin-top: 2em; }
.cv-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; max-width: 720px; }
.cv-list li:first-child { padding-top: 0; }
.feature-image { background: var(--tint); }
.feature-image img { width: 100%; max-height: 80vh; object-fit: contain; }

/* Exhibitions */
.exhibition-list { margin-top: 16px; border-top: 1px solid var(--ink); }
.exhibition-row { display: grid; grid-template-columns: minmax(140px, 320px) 1fr; gap: var(--gutter); padding: clamp(20px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.exhibition-row__image { background: var(--tint); aspect-ratio: 4 / 3; }
.exhibition-row__image img { width: 100%; height: 100%; object-fit: cover; }
.exhibition-row__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.08; margin-bottom: 10px; }
.exhibition-row__meta { font-size: 15px; color: var(--muted); }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) var(--gutter); }
.post-card__image { display: block; aspect-ratio: 3 / 2; background: var(--tint); margin-bottom: 16px; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; margin: 8px 0 10px; }
.post-card__excerpt { font-size: 15px; color: var(--muted); }

.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.pagination { margin-top: 24px; }
.nav-links { display: flex; gap: 18px; font-size: 14px; }
.nav-links .current { border-bottom: 1px solid currentColor; }

/* Forms (Contact Form 7) */
.wpcf7 label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0; margin-top: 6px; font: inherit; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink); background: transparent; border-radius: 0;
}
.wpcf7 input[type="submit"] { background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 14px 28px; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.wpcf7 input[type="submit"]:hover { background: #fff; color: var(--ink); }

/* Footer */
.site-footer { margin-top: var(--space); border-top: 1px solid var(--ink); }
.site-footer__inner { max-width: 1600px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); font-size: 15px; }
.site-footer__brand p { color: var(--muted); margin-top: 6px; font-size: 13px; letter-spacing: .06em; }
.site-footer .eyebrow { margin-bottom: 12px; }
.site-footer__legal { max-width: 1600px; margin: 0 auto; padding: 20px var(--gutter) 32px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.site-footer__legal .menu { display: flex; gap: 20px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; align-items: center; justify-content: center; padding: 56px 24px 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 18px; right: var(--gutter); background: none; border: 0; font: inherit; font-size: 13px; letter-spacing: .06em; cursor: pointer; color: var(--ink); }

/* Responsive */
@media (max-width: 1000px) {
	.works-grid { columns: 2; }
	.artist-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.work { grid-template-columns: 1fr; }
	.work__info { position: static; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 28px; }
	.site-header.is-open .site-nav { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav a { display: block; font-family: var(--serif); font-size: 32px; letter-spacing: 0; padding: 8px 0; }
	.name-list { columns: 1; }
	.split { grid-template-columns: 1fr; gap: 16px; }
	.works-grid { column-gap: 16px; }
	.exhibition-row { grid-template-columns: 110px 1fr; }
	.hero__image img { height: auto; max-height: 70vh; }
	.site-footer__legal { flex-direction: column; }
}
@media (max-width: 480px) {
	.artist-grid, .post-grid { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.exhibition-row--plain { grid-template-columns: 1fr; }
.site-footer p + p { margin-top: 6px; }
.wpcf7 input[type="text"]::placeholder, .wpcf7 input[type="email"]::placeholder, .wpcf7 input[type="tel"]::placeholder { color: var(--muted); }
.wpcf7 p { margin-bottom: 18px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.video__frame { margin: 0 auto; max-height: 82vh; max-width: 100%; background: var(--tint); }
.video .video__frame iframe { width: 100%; height: 100%; aspect-ratio: auto; display: block; }
