/* olane.net: black background, paintings full screen, one colour per collection,
   handwritten titles (Satisfy), clean body text (Jost). */

@font-face {
	font-family: "Jost";
	src: url(type/jost-latin.woff2) format("woff2");
	font-weight: 300 500;
	font-display: swap;
}
@font-face {
	font-family: "Satisfy";
	src: url(type/satisfy-latin.woff2) format("woff2");
	font-weight: 400;
	font-display: swap;
}

:root {
	--bg: #0b0b0b;
	--text: #ece9e2;
	--muted: #a39e94;
	--line: rgba(255, 255, 255, 0.16);
	--blue: #26c6df;
	--yellow: #f2a113;
	--red: #d65a39;
	--purple: #cc6699;
	--black-carbon: #b9b3a9; /* engravings: light grey ink on black */
	--accent: var(--blue);
	--script: "Satisfy", "Brush Script MT", cursive;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(20px, 5vw, 72px);
	color-scheme: dark;
}
.accent-yellow { --accent: var(--yellow); }
.accent-red { --accent: var(--red); }
.accent-purple { --accent: var(--purple); }
.accent-black-carbon { --accent: var(--black-carbon); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#oeuvres { scroll-margin-top: 70px; } /* below the fixed header */
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 300 clamp(16px, 0.35vw + 14.5px, 19px)/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.visually-hidden {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header and menu ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px var(--gutter);
	background: rgba(11, 11, 11, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
/* Over the painting on the title pages, until the page scrolls. */
.page-home .site-header, .page-rubrique .site-header {
	position: fixed;
	inset: 0 0 auto 0;
	background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.brand {
	font: 2.1rem/1 var(--script);
	color: var(--blue);
	text-decoration: none;
	padding-top: 4px;
}
.site-nav ul {
	display: flex;
	gap: clamp(18px, 2.6vw, 44px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	position: relative;
	display: inline-block;
	padding: 6px 2px;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text);
}
/* The painted brush stroke of the old site, as an underline. */
.site-nav a::after {
	content: "";
	position: absolute;
	left: -6px;
	right: -6px;
	bottom: -4px;
	height: 9px;
	background: var(--c) no-repeat center / 100% 100%;
	-webkit-mask: url(img/menu-item-red.png) no-repeat center / 100% 100%;
	mask: url(img/menu-item-red.png) no-repeat center / 100% 100%;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.c-blue { --c: var(--blue); }
.c-yellow { --c: var(--yellow); }
.c-red { --c: var(--red); }
.c-purple { --c: var(--purple); }
.c-black-carbon { --c: var(--black-carbon); }
.menu-toggle { display: none; }

/* ---------- Title pages: painting full screen, text over it ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: settle 1.6s ease-out both;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.05) 72%);
}
.hero-text {
	position: relative;
	z-index: 2;
	max-width: 36rem;
	margin: 0 var(--gutter);
	padding: 120px 0 80px;
	animation: rise 1s 0.2s ease-out both;
}
.hero-text p { margin: 0 0 0.9em; }
.hero-text p:empty, .hero-text p:has(> br:only-child) { display: none; }
.hero-text .first {
	margin-bottom: 0.4em;
	line-height: 1.15;
}
.hero-text .first strong {
	font: 400 clamp(2.6rem, 4.6vw, 4.6rem)/1.1 var(--script);
	color: var(--accent);
}
.hero-text img { margin-top: 0.6em; } /* signature: white on transparent */
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.hero-image, .hero-text { animation: none; }
}

/* Colour names used in the page texts. */
.blue { color: var(--blue); }
.yellow { color: var(--yellow); }
.red { color: var(--red); }
.purple { color: var(--purple); }
.white-dirty { color: #eeefde; }
.black-carbon { color: var(--black-carbon); }
.text-center { text-align: center; }

/* Buttons: the texts use class="btn btn-default <colour>". */
.btn {
	display: inline-block;
	margin-top: 0.8em;
	padding: 0.75em 1.8em;
	border: 1px solid currentColor;
	color: var(--text);
	font-size: 0.78rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #0b0b0b; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #0b0b0b; font-weight: 500; }
.btn-solid:hover { background: var(--text); border-color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { margin-top: 0.4em; font-size: 0.85rem; }

/* ---------- Home: one card per collection ---------- */
.collections { padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(48px, 7vw, 96px); }
.collections h2 {
	margin: 0 0 clamp(24px, 3vw, 40px);
	font: 400 clamp(2.4rem, 4vw, 3.6rem)/1.1 var(--script);
	color: var(--blue);
}
.collections-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(14px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.collections-grid a { display: block; text-decoration: none; }
.collections-grid img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: #161616;
	transition: transform 0.6s ease, filter 0.3s;
	filter: brightness(0.92);
}
.collections-grid a:hover img { filter: brightness(1.05); }
.collection-name {
	display: block;
	margin-top: 14px;
	font: 400 clamp(1.9rem, 2.4vw, 2.4rem)/1.1 var(--script);
	color: var(--c);
	background: linear-gradient(var(--c), var(--c)) no-repeat left bottom / 0 2px;
	transition: background-size 0.35s;
}
.collections-grid a:hover .collection-name { background-size: 100% 2px; }
.collection-count { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.hero-text .text-center { text-align: left; }

/* ---------- Galleries ---------- */
.gallery-page { padding: 48px var(--gutter) 80px; }
.gallery-title {
	margin: 0;
	font: 400 clamp(2.8rem, 5vw, 4.4rem)/1.1 var(--script);
	color: var(--accent);
}
.gallery-count {
	margin: 4px 0 40px;
	color: var(--muted);
	font-size: 0.9rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
/* Justified rows: every work grows in proportion to its width/height ratio
   (--r), so rows fill the width and the order reads left to right. */
.gallery {
	--row: clamp(190px, 22vw, 330px);
	display: flex;
	flex-wrap: wrap;
	gap: clamp(18px, 2vw, 32px);
}
.gallery::after { content: ""; flex-grow: 999; }
.gallery figure {
	flex: var(--r) 1 calc(var(--r) * var(--row));
	margin: 0;
	min-width: 0;
}
.gallery a { display: block; overflow: hidden; background: #161616; }
.gallery img {
	width: 100%;
	height: auto;
	aspect-ratio: var(--r);
	object-fit: cover;
	transition: transform 0.6s ease, opacity 0.3s;
}
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption {
	margin-top: 10px;
	color: #cfcac0;
	font-size: 1rem;
	letter-spacing: 0.02em;
}

/* Lightbox caption (PhotoSwipe, see site.js). */
.pswp__caption {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	max-width: calc(100% - 40px);
	padding: 6px 16px;
	background: rgba(0, 0, 0, 0.5);
	color: var(--text);
	font: 300 1rem/1.4 var(--sans);
	letter-spacing: 0.04em;
	text-align: center;
}
.pswp__caption:empty { display: none; }
.pswp__caption .t, .pswp__caption .meta { display: block; }
.pswp__caption .meta { margin-top: 2px; color: #cfcac0; font-size: 0.85rem; }
.gallery figcaption .t, .gallery figcaption .meta { display: block; }
.gallery figcaption .meta { margin-top: 2px; color: var(--muted); font-size: 0.85em; }
.gallery figcaption .sold::before { content: "● "; color: var(--red); }

/* ---------- Text pages (L'artiste, 404) ---------- */
.text-page { max-width: 1100px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.text-page h1, .text-page h2 {
	font: 400 clamp(2.2rem, 3.6vw, 3.2rem)/1.15 var(--script);
	color: var(--accent);
	margin: 0 0 0.5em;
}
.error-page { text-align: center; padding-top: 18vh; min-height: 70vh; }

/* Surnames, written in capitals in the CV: small capitals. */
.nom { font-variant: small-caps; letter-spacing: 0.04em; }

/* ---------- L'artiste ---------- */
.artist-page { max-width: 1180px; margin: 0 auto; padding: 56px var(--gutter) 40px; }
.artist-page h1, .artist-page h2 {
	margin: 0 0 0.45em;
	font: 400 clamp(2.4rem, 4vw, 3.6rem)/1.1 var(--script);
	color: var(--accent);
}
.artist-intro {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(28px, 5vw, 80px);
	align-items: center;
	margin-bottom: clamp(64px, 9vw, 120px);
}
.artist-intro .lead { font-size: 1.35em; line-height: 1.5; margin: 0 0 0.6em; }
.artist-intro p { margin: 0 0 1em; color: var(--text); }
.facts {
	display: flex;
	gap: clamp(24px, 4vw, 56px);
	margin: 2em 0 0;
	padding: 1.4em 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
	color: var(--muted);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.facts strong {
	display: block;
	color: var(--text);
	font: 300 2.4rem/1.1 var(--sans);
	letter-spacing: 0;
}
.artist-photo, .cv-photo { margin: 0; }
.artist-photo img, .cv-photo img { width: 100%; height: auto; }
.artist-photo img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }

.cv-section { margin-bottom: clamp(64px, 9vw, 120px); }
.cv-split {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: clamp(28px, 5vw, 80px);
	align-items: start;
}
.cv-split-reverse > figure { order: -1; }
.cv-split-reverse { grid-template-columns: 2fr 3fr; }
.cv-photo { position: sticky; top: 110px; }

.cv-list { margin: 0; padding: 0; list-style: none; }
.cv-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 24px;
	padding: 0.85em 0;
	border-bottom: 1px solid var(--line);
}
.cv-list .when {
	flex-shrink: 0;
	color: var(--muted);
	font-size: 0.88em;
	text-align: right;
}
.cv-list-wide { max-width: 900px; }

.awards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2.4vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.awards li {
	position: relative;
	padding: 28px 26px 26px;
	border: 1px solid var(--line);
	color: var(--muted);
	line-height: 1.5;
}
.awards li::before {
	content: "✦";
	position: absolute;
	top: 22px;
	right: 24px;
	color: var(--yellow);
	font-size: 1.2rem;
}
.awards .when {
	display: block;
	margin-bottom: 14px;
	color: var(--yellow);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.awards strong { display: block; margin-bottom: 6px; color: var(--text); font-weight: 400; font-size: 1.15em; }

.contact-block {
	margin-bottom: 40px;
	padding: clamp(40px, 6vw, 72px) var(--gutter);
	border: 1px solid var(--line);
	text-align: center;
}
.contact-block p { margin: 0 0 0.6em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.btn-quiet { border-color: var(--line); }

/* ---------- Footer ---------- */
.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px 32px;
	padding: 28px var(--gutter);
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.85rem;
}
.site-footer p { margin: 0; }
.footer-name { font: 1.6rem/1 var(--script); color: var(--text); }
.footer-name span { font: 300 0.85rem var(--sans); color: var(--muted); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
	.site-header, .page-home .site-header, .page-rubrique .site-header {
		position: sticky;
		background: rgba(11, 11, 11, 0.94);
		/* no blur here: it would make the header the containing block of the
		   fixed menu below, which would then be clipped to the header height */
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		padding: 12px 20px;
	}
	.brand { font-size: 1.9rem; }
	.menu-toggle {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		padding: 0;
		border: 0;
		background: none;
		color: var(--text);
		cursor: pointer;
	}
	.menu-icon, .menu-icon::before, .menu-icon::after {
		display: block;
		width: 24px;
		height: 1.5px;
		background: currentColor;
		transition: transform 0.25s, opacity 0.25s;
	}
	.menu-icon { position: relative; }
	.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
	.menu-icon::before { top: -7px; }
	.menu-icon::after { top: 7px; }
	.menu-open .menu-icon { background: transparent; }
	.menu-open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
	.menu-open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
	.site-nav {
		position: fixed;
		inset: 68px 0 0 0;
		background: rgba(11, 11, 11, 0.97);
		padding: 24px 28px;
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.25s, visibility 0.25s;
	}
	.menu-open .site-nav { visibility: visible; opacity: 1; }
	.site-nav ul { flex-direction: column; gap: 18px; }
	.site-nav a { font: 2.2rem/1.3 var(--script); letter-spacing: 0; text-transform: none; }
	.site-nav a::after { bottom: 2px; height: 12px; }
	.menu-open { overflow: hidden; }

	/* The painting on top, the text below it on black. */
	.hero { display: block; min-height: 0; }
	.hero-image { position: relative; height: 58vh; height: 58svh; }
	.hero::before { background: linear-gradient(transparent 30%, var(--bg) 58vh); }
	.hero-text { margin: -70px 20px 0; padding: 0 0 48px; }
	.gallery { --row: 150px; gap: 14px; }
	.collections-grid { grid-template-columns: 1fr 1fr; }
	.gallery figcaption { font-size: 0.95rem; margin-top: 6px; }
	.gallery-page { padding-top: 28px; }
	.artist-page { padding-top: 32px; }
	.artist-intro, .cv-split, .cv-split-reverse { grid-template-columns: 1fr; }
	.cv-split-reverse > figure { order: 0; }
	.cv-photo { position: static; max-width: 420px; }
	.awards { grid-template-columns: 1fr; }
	.facts { gap: 20px; }
	.facts strong { font-size: 1.9rem; }
	.cv-list li { flex-direction: column; gap: 2px; }
	.cv-list .when { text-align: left; }
	.site-footer { flex-direction: column; }
}
