/*
Theme Name: Catherine Petit de Bénazé
Theme URI: 
Author: Site réalisé pour Catherine Petit de Bénazé
Description: Thème portfolio pour l'artiste peintre Catherine Petit de Bénazé (pastels, aquarelles, portraits). Œuvres, biographie et contact, tout se modifie depuis l'administration. Design sur papier Ingres, polices Cormorant et EB Garamond.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: catherine-petit
*/

/* ------------------------------------------------------------------
   Painter portfolio: global styles
   You can change the colours and fonts here.
------------------------------------------------------------------- */
:root {
	/* Paper and charcoal: the grey Ingres paper the artist often draws on */
	--wall: #e1dac5;
	--wall-deep: #d6d4cc;
	--ink: #29282d;
	--ink-soft: #5d5b60;
	--line: #bdbab1;

	/* Pastel sticks, taken from the works */
	--sunset: #d9622f;
	--gold: #e5b04a;
	--sea: #3d6b8c;
	--violet: #7b5b8e;
	--rose: #d48f98;

	--font-display: 'Cormorant', 'Cormorant Garamond', Garamond, serif;
	--font-body: 'EB Garamond', Garamond, 'Times New Roman', serif;

	--step--1: 0.95rem;
	--step-0: 1.2rem;
	--step-1: 1.55rem;
	--step-2: 2.1rem;
	--step-3: clamp(2.5rem, 5.5vw, 4rem);
	--giant: clamp(3.75rem, 11vw, 10rem);

	--gutter: clamp(1.25rem, 4vw, 4rem);
	--measure: 62ch;
	--ease-paint: cubic-bezier(0.65, 0, 0.25, 1);
	--header-h: 3.5rem;
	--mat: #f5f3ec;
	--hang-shadow: 0 1px 2px rgb(41 40 45 / 0.16), 0 20px 36px -22px rgb(41 40 45 / 0.5);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	/* Paper: soft pastel haze and a fine grain, painted once (no animation, no overlay) */
	background-color: var(--wall);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.16 0 0 0 0 0.18 .2 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		radial-gradient(60vmax 40vmax at 0% 0%, rgb(61 107 140 / 0.14), transparent 70%),
		radial-gradient(50vmax 40vmax at 100% 30%, rgb(229 176 74 / 0.14), transparent 70%),
		radial-gradient(50vmax 40vmax at 30% 100%, rgb(123 91 142 / 0.1), transparent 70%);
	background-size: 180px 180px, 100% 100vh, 100% 100vh, 100% 100vh;
	background-repeat: repeat, no-repeat, no-repeat, no-repeat;
	color: var(--ink);
	font-family: var(--font-body);
	font-optical-sizing: auto;
	line-height: 1.6;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color 0.2s;
}

a:hover {
	color: var(--sea);
}

:focus-visible {
	outline: 2px solid var(--sea);
	outline-offset: 4px;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

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

/* Huge display titles */
.giant {
	font-size: var(--giant);
	font-weight: 300;
	font-style: italic;
	line-height: 0.9;
	letter-spacing: -0.01em;
}

.prose {
	max-width: var(--measure);
	font-size: var(--step-0);
	line-height: 1.7;
	hyphens: auto;
}

.prose h2 {
	margin: 2.2em 0 0.6em;
	font-size: var(--step-2);
	font-style: italic;
	font-weight: 400;
}

.prose h2:first-child {
	margin-top: 0;
}

.prose ul {
	padding-left: 1.2em;
}

.prose li {
	margin-bottom: 0.5em;
}

.prose li::marker {
	color: var(--sunset);
}

.prose > :last-child {
	margin-bottom: 0;
}

.lede {
	max-width: 44ch;
	font-size: var(--step-1);
	font-style: italic;
	line-height: 1.45;
	color: var(--ink-soft);
}

.text-link {
	font-family: var(--font-body);
	font-style: italic;
	font-size: var(--step-0);
	text-decoration-color: var(--sunset);
}

/* The gallery convention: a red dot next to a sold work */
.dot {
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin: 0 0.45em;
	border-radius: 50%;
	background: #c8102e;
	vertical-align: 0.1em;
}

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

/* Passepartout: a cream mat and a soft shadow, like a framed work on a wall */
.hung {
	padding: clamp(0.5rem, 1.4vw, 1.1rem);
	background: var(--mat);
	box-shadow: var(--hang-shadow);
}

/* ---------- Scroll reveal ------------------------------------------
   Elements with data-reveal are swept in from left to right, like a
   stroke of pastel. Only clip and transform: cheap for the browser. */
html.motion [data-reveal] {
	clip-path: inset(0 100% 0 0);
	transition: clip-path 1s var(--ease-paint);
}

html.motion [data-reveal] img {
	scale: 1.08;
	transition: scale 1.4s var(--ease-paint);
}

html.motion [data-reveal].is-in {
	clip-path: inset(0 0 0 0);
}

html.motion [data-reveal].is-in img {
	scale: 1;
}

/* Parallax: children of data-speed elements drift while scrolling */
html.motion [data-speed] > * {
	translate: 0 var(--py, 0px);
	will-change: translate;
}

/* Anchors land below the fixed menu */
[id] {
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Page transitions */
::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}


/* ---- Header.astro ---- */

	/* Always visible at the top, small and on a plain background */
	.site-header {
		position: sticky;
		top: 0;
		z-index: 50;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.25rem 1.5rem;
		flex-wrap: wrap;
		min-height: var(--header-h);
		padding: 0.4rem var(--gutter);
		background: rgb(228 226 220 / 0.97);
		border-bottom: 1px solid rgb(41 40 45 / 0.08);
	}

	.site-name {
		font-family: var(--font-display);
		font-style: italic;
		font-size: 1.3rem;
		line-height: 1.2;
		text-decoration: none;
		white-space: nowrap;
	}

	nav {
		display: flex;
		align-items: center;
		gap: 0.25rem clamp(1rem, 3vw, 2.5rem);
		flex-wrap: wrap;
	}

	ul {
		display: flex;
		gap: clamp(0.9rem, 2.5vw, 2rem);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	ul a {
		font-size: 1.05rem;
		text-decoration: none;
		padding-block: 0.15rem;
		background: linear-gradient(var(--sunset), var(--sunset)) 0 100% / 0 2px no-repeat;
		transition: background-size 0.3s ease;
	}

	ul a:hover,
	ul a[aria-current='page'] {
		color: inherit;
		background-size: 100% 2px;
	}

	.lang {
		display: flex;
		align-items: baseline;
		gap: 0.3rem;
		margin: 0;
		font-family: var(--font-display);
		font-size: 1.05rem;
		letter-spacing: 0.06em;
	}

	.lang .on {
		font-weight: 500;
		border-bottom: 2px solid var(--sunset);
	}

	.lang a {
		padding: 0.15rem 0.2rem;
		color: var(--ink-soft);
		text-decoration: none;
	}

	.lang a:hover {
		color: var(--sunset);
	}

	.sep {
		color: var(--line);
	}

	@media (max-width: 40em) {
		.site-name {
			font-size: 1.1rem;
		}
		ul a,
		.lang {
			font-size: 0.98rem;
		}
	}


/* ---- Footer.astro ---- */

	/* Contact: one plain colour, no gradient */
	.site-footer {
		margin-top: clamp(6rem, 14vw, 12rem);
		padding-block: clamp(4rem, 9vw, 7rem) 2rem;
		background: var(--sea);
		color: #fff;
	}

	h2 {
		font-size: var(--step-3);
		font-style: italic;
		font-weight: 300;
		margin-bottom: 1rem;
	}

	.text {
		max-width: 46ch;
		font-size: var(--step-0);
	}

	.email {
		display: inline-block;
		margin-top: 1.25rem;
		font-family: var(--font-display);
		font-style: italic;
		font-size: clamp(1.9rem, 5.5vw, 4.25rem);
		line-height: 1.15;
		color: #fff;
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 0.18em;
		overflow-wrap: anywhere;
	}

	.email:hover {
		color: #fff;
		text-decoration-thickness: 3px;
	}

	.meta {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: baseline;
		gap: 1rem 2rem;
		margin-top: clamp(3.5rem, 8vw, 6rem);
		padding-top: 1.5rem;
		border-top: 1px solid rgb(255 255 255 / 0.35);
		font-size: var(--step--1);
	}

	.socials {
		display: flex;
		gap: 1.5rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.socials a:hover {
		color: #fff;
		text-decoration-thickness: 2px;
	}

	.copy {
		margin: 0;
	}

	.site-footer :focus-visible {
		outline-color: #fff;
	}


/* ---- Hero.astro ---- */

	.hero {
		--p: 0;
		position: relative;
		display: grid;
		align-items: center;
		gap: 3rem;
		min-height: calc(100svh - var(--header-h));
		padding: 2rem var(--gutter) clamp(3rem, 7vw, 5rem);
	}

	.hero-stave {
		position: absolute;
		inset: 12% 0 10%;
		z-index: -1;
		transform: translate3d(0, calc(var(--p) * -12vh), 0);
		opacity: calc(1 - var(--p) * 0.6);
	}

	.hero-text {
		position: relative;
	}

	.hero-name {
		font-size: clamp(3.2rem, 8.6vw, 8.8rem);
		font-weight: 300;
		font-style: italic;
		line-height: 0.95;
		letter-spacing: -0.01em;
	}

	.line {
		display: block;
		white-space: nowrap;
	}

	.line + .line {
		padding-left: 1.1em;
	}

	.hero-tagline {
		max-width: 36ch;
		margin: clamp(1.5rem, 3vw, 2.5rem) 0 0 0.15em;
		font-size: var(--step-1);
		font-style: italic;
		line-height: 1.4;
		color: var(--ink-soft);
	}

	.hero-work {
		justify-self: center;
		display: grid;
		gap: 0.9rem;
		width: min(100%, 26rem);
		text-decoration: none;
		transform: translate3d(0, calc(var(--p) * -10vh), 0);
	}

	.hero-work .hung {
		display: block;
		overflow: hidden;
	}

	.hero-work img {
		width: 100%;
	}

	.hero-label {
		font-size: var(--step-0);
		color: var(--ink-soft);
	}

	.scroll-hint {
		position: absolute;
		left: 50%;
		bottom: 1rem;
		translate: -50% 0;
		font-style: italic;
		font-size: var(--step--1);
		color: var(--ink-soft);
		animation: nudge 2.6s ease-in-out infinite;
		opacity: calc(1 - var(--p) * 3);
	}

	.scroll-hint::after {
		content: '';
		display: block;
		width: 1px;
		height: 2.5rem;
		margin: 0.5rem auto 0;
		background: currentColor;
	}

	@keyframes nudge {
		50% {
			translate: -50% 0.5rem;
		}
	}

	@media (min-width: 56em) {
		.hero {
			grid-template-columns: 7fr 4fr;
		}
		.hero-work {
			justify-self: end;
			width: min(100%, 27rem);
		}
	}


/* ---- Stave.astro ---- */

	.defs {
		position: absolute;
	}

	.stave {
		display: grid;
		align-content: center;
		gap: 0;
		height: 100%;
	}

	.lane {
		height: 3.4rem;
		overflow: hidden;
		mix-blend-mode: multiply;
		opacity: 0.85;
		animation: appear 1.6s calc(var(--i) * 0.15s + 0.2s) var(--ease-paint) backwards;
	}

	.line {
		display: block;
		width: 200%;
		height: 100%;
		will-change: transform;
		animation: slide var(--dur) linear infinite;
		animation-direction: normal;
	}

	.line[style*='--dir:-1'] {
		animation-direction: reverse;
	}

	@keyframes slide {
		to {
			transform: translateX(-50%);
		}
	}

	@keyframes appear {
		from {
			clip-path: inset(0 100% 0 0);
		}
		to {
			clip-path: inset(0 0 0 0);
		}
	}


/* ---- HScroll.astro ---- */

	.hs {
		position: relative;
		margin-top: clamp(3rem, 8vw, 6rem);
	}

	.hs-sticky {
		position: relative;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 2rem;
	}

	.hs-title {
		margin-bottom: clamp(1.5rem, 4vw, 3rem);
		font-family: var(--font-display);
		font-style: italic;
		font-weight: 300;
		font-size: var(--step-3);
	}

	.hs-track {
		display: flex;
		align-items: center;
		gap: clamp(2.5rem, 8vw, 9rem);
		width: max-content;
		margin: 0;
		padding: 0 var(--gutter);
		list-style: none;
	}

	.hs-item {
		scroll-snap-align: center;
	}

	.hs-end {
		scroll-snap-align: center;
	}

	.hs-all {
		display: grid;
		place-items: center;
		width: clamp(9rem, 26vh, 15rem);
		aspect-ratio: 1;
		padding: 1.5rem;
		border-radius: 47% 53% 44% 56% / 52% 46% 54% 48%;
		background: var(--gold);
		font-family: var(--font-display);
		font-style: italic;
		font-weight: 400;
		font-size: var(--step-2);
		line-height: 1;
		text-align: center;
		text-decoration: none;
		animation: wobble 9s ease-in-out infinite alternate;
	}

	.hs-all:hover {
		color: var(--ink);
		background: var(--rose);
	}

	@keyframes wobble {
		to {
			border-radius: 58% 42% 55% 45% / 44% 58% 42% 56%;
			rotate: 12deg;
		}
	}

	/* Desktop with motion: the section is "pinned" and slides horizontally */
	.hs.is-pinned .hs-sticky {
		contain: layout paint;
		position: sticky;
		top: var(--header-h);
		height: calc(100vh - var(--header-h) - 3.5rem);
		overflow: hidden;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-bottom: 0;
	}

	.hs.is-pinned .hs-track {
		padding-inline: 12vw 20vw;
		will-change: transform;
	}

	/* Each work is its own layer: the graphics card tilts and scales it
	   without redrawing the image or its shadow. */
	.hs.is-pinned .hs-item {
		transform: translate3d(0, var(--y), 0);
		will-change: transform;
		backface-visibility: hidden;
	}


/* ---- Motto.astro ---- */

	.motto {
		margin-block: clamp(5rem, 12vw, 9rem);
		text-align: center;
	}

	blockquote {
		margin: 0;
	}

	p {
		max-width: 26ch;
		margin: 0 auto;
		font-family: var(--font-display);
		font-style: italic;
		font-weight: 300;
		font-size: clamp(2.2rem, 5vw, 4.25rem);
		line-height: 1.15;
		text-wrap: balance;
	}


/* ---- PaintingCard.astro ---- */

	.pc {
		display: inline-flex;
		flex-direction: column;
		margin: 0;
		max-width: 100%;
	}

	.pc-frame {
		display: block;
	}

	.pc-img {
		display: block;
		overflow: hidden;
	}

	.pc-img img {
		display: block;
	}

	.pc--width {
		display: flex;
	}

	.pc--width,
	.pc--width .pc-frame {
		width: 100%;
	}

	.pc--width .pc-img img {
		width: 100%;
	}

	.pc--height .pc-img img {
		width: auto;
		max-width: none;
		height: min(var(--h, 60vh), 68vw);
	}

	html.motion .pc-frame:hover .pc-img img {
		scale: 1.03;
		transition: scale 1s var(--ease-paint);
	}

	.pc-label {
		padding-top: 1rem;
		max-width: 34ch;
		line-height: 1.3;
	}

	.pc-title {
		font-style: italic;
		font-size: var(--step-1);
		text-decoration: none;
	}

	.pc-title:hover {
		text-decoration: underline;
		text-decoration-color: var(--sunset);
	}

	.pc-details {
		display: block;
		margin-top: 0.2rem;
		font-size: var(--step--1);
		color: var(--ink-soft);
	}


/* ---- index.astro ---- */

	.painter {
		display: grid;
		gap: 3rem;
		align-items: center;
	}

	.portrait {
		position: relative;
		max-width: 34rem;
	}

	/* a broad stroke of pastel behind the image */
	.portrait::before {
		content: '';
		position: absolute;
		left: -8%;
		right: -14%;
		top: 58%;
		height: 26%;
		border-radius: 50% 40% 55% 45%;
		background: linear-gradient(90deg, var(--violet), var(--sunset) 60%, var(--gold));
		opacity: 0.55;
		filter: blur(6px);
		rotate: -4deg;
	}

	.portrait img {
		width: 100%;
	}

	.painter-text h2 {
		margin-bottom: 1.75rem;
	}

	.painter-text .prose {
		margin-bottom: 1.75rem;
	}

	@media (min-width: 52em) {
		.painter.has-image {
			grid-template-columns: 6fr 6fr;
			gap: clamp(3rem, 7vw, 7rem);
		}
	}


/* ---- paintings.astro ---- */

	.intro {
		padding-block: clamp(2rem, 7vw, 5rem) clamp(3rem, 7vw, 5rem);
	}

	.intro h1 {
		margin-bottom: 1.5rem;
	}

	.legend {
		font-size: var(--step--1);
		color: var(--ink-soft);
	}

	.legend .dot {
		margin-left: 0;
	}

	.filters {
		display: flex;
		flex-wrap: wrap;
		gap: 0.6rem;
		margin-top: 2rem;
	}

	.filters button {
		display: inline-flex;
		align-items: baseline;
		gap: 0.45rem;
		padding: 0.45rem 1rem 0.5rem;
		border: 1px solid var(--line);
		border-radius: 2rem;
		background: transparent;
		color: var(--ink);
		font: italic 1.05rem/1.2 var(--font-body);
		cursor: pointer;
		transition:
			background-color 0.2s,
			border-color 0.2s,
			color 0.2s;
	}

	.filters button:hover {
		border-color: var(--ink);
	}

	.filters button[aria-pressed='true'] {
		background: var(--ink);
		border-color: var(--ink);
		color: var(--wall);
	}

	.count {
		font-style: normal;
		font-size: 0.8em;
		opacity: 0.65;
	}

	.series[hidden] {
		display: none;
	}

	.series {
		padding-top: clamp(4rem, 9vw, 8rem);
		scroll-margin-top: 1rem;
	}

	.series-head {
		max-width: 46rem;
		margin-bottom: clamp(3rem, 7vw, 6rem);
		padding-top: 1.5rem;
		border-top: 1px solid var(--line);
	}

	.series-head h2 {
		font-size: var(--step-3);
		font-style: italic;
		font-weight: 300;
	}

	.subtitle {
		margin: 0.4rem 0 1rem;
		font-size: var(--step-1);
		color: var(--ink-soft);
	}

	.series-text {
		max-width: 56ch;
		font-size: var(--step-0);
	}

	/* "Drifting hang": works placed freely across a 12-column wall */
	.drift {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: clamp(1rem, 3vw, 3rem);
		row-gap: clamp(4rem, 11vw, 9rem);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.drift li {
		grid-column: 1 / -1;
	}

	@media (min-width: 48em) {
		.drift li:nth-child(4n + 1) {
			grid-column: 1 / span 5;
		}
		.drift li:nth-child(4n + 2) {
			grid-column: 7 / span 5;
			margin-top: 16vh;
		}
		.drift li:nth-child(4n + 3) {
			grid-column: 2 / span 5;
		}
		.drift li:nth-child(4n + 4) {
			grid-column: 8 / span 5;
			margin-top: 10vh;
		}
		/* a series with a single work: centred */
		.drift li:only-child {
			grid-column: 3 / span 8;
		}
	}

	@media (max-width: 47.99em) {
		.drift li:nth-child(even) {
			padding-left: 14%;
		}
		.drift li:nth-child(odd) {
			padding-right: 10%;
		}
	}


/* ---- [slug].astro ---- */

	.pd {
		display: grid;
		gap: clamp(2rem, 5vw, 4rem);
		padding-top: clamp(1rem, 3vw, 2rem);
	}

	.pd-wall {
		display: grid;
		place-items: center;
		padding: clamp(1.5rem, 6vw, 6rem);
		background: rgb(214 212 204 / 0.65);
	}

	.pd-zoom {
		display: block;
		padding: 0;
		border: 0;
		background: none;
		cursor: zoom-in;
	}

	.pd-zoom img {
		max-height: 78vh;
		width: auto;
	}

	h1 {
		margin: 1.5rem 0 0.75rem;
		font-style: italic;
		font-weight: 300;
		font-size: var(--step-3);
	}

	.details {
		margin-bottom: 0.4rem;
		font-size: var(--step-0);
		color: var(--ink-soft);
	}

	.status {
		margin-bottom: 1.5rem;
		font-style: italic;
	}

	.status .dot {
		margin-left: 0;
	}

	.lede {
		margin: 1.5rem 0;
	}

	.ask {
		margin-top: 2rem;
	}

	.zoom {
		width: 100vw;
		height: 100vh;
		max-width: none;
		max-height: none;
		margin: 0;
		padding: 2vmin;
		border: 0;
		background: var(--ink);
		cursor: zoom-out;
	}

	.zoom[open] {
		display: grid;
		place-items: center;
	}

	.zoom img {
		max-width: 100%;
		max-height: 96vh;
		width: auto;
	}

	.zoom::backdrop {
		background: var(--ink);
	}

	.keys {
		margin-top: 2.5rem;
		font-size: var(--step--1);
		color: var(--ink-soft);
	}

	@media (pointer: coarse) {
		.keys {
			display: none;
		}
	}

	.pager {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		margin-top: clamp(4rem, 10vw, 8rem);
		padding-top: 1.5rem;
		border-top: 1px solid var(--line);
	}

	.pager a {
		display: grid;
		gap: 0.25rem;
		text-decoration: none;
	}

	.next {
		text-align: right;
	}

	.pager-label {
		font-style: italic;
		font-size: var(--step-0);
		color: var(--ink-soft);
	}

	.pager-title {
		font-family: var(--font-display);
		font-style: italic;
		font-weight: 300;
		font-size: clamp(1.9rem, 5vw, 4rem);
		line-height: 1.05;
		transition:
			color 0.25s,
			translate 0.35s ease;
	}

	.prev:hover .pager-title {
		color: var(--sunset);
		translate: -0.4rem 0;
	}

	.next:hover .pager-title {
		color: var(--sunset);
		translate: 0.4rem 0;
	}

	@media (min-width: 64em) {
		.pd {
			grid-template-columns: minmax(0, 7fr) minmax(18rem, 4fr);
			align-items: start;
		}
		.pd-text {
			position: sticky;
			top: calc(var(--header-h) + 2rem);
		}
	}


/* ---- biography.astro ---- */

	.intro {
		padding-block: clamp(2rem, 7vw, 5rem) clamp(3rem, 7vw, 5rem);
	}

	.intro h1 {
		margin-bottom: 1.5rem;
	}

	.story {
		display: grid;
		gap: clamp(2.5rem, 7vw, 7rem);
		align-items: start;
	}

	.portrait {
		position: relative;
		margin: 0;
		max-width: 30rem;
	}

	@media (min-width: 52em) {
		.portrait {
			position: sticky;
			top: calc(var(--header-h) + 2rem);
		}
	}

	.portrait::before {
		content: '';
		position: absolute;
		left: -10%;
		right: -6%;
		top: 18%;
		height: 30%;
		border-radius: 55% 45% 50% 50%;
		background: linear-gradient(90deg, var(--sea), var(--violet));
		opacity: 0.4;
		filter: blur(10px);
		rotate: 5deg;
	}

	.portrait img {
		width: 100%;
	}

	figcaption {
		margin-top: 0.75rem;
		font-style: italic;
		font-size: var(--step--1);
		color: var(--ink-soft);
	}

	.prose h2:first-child + p::first-letter {
		float: left;
		margin: 0.05em 0.08em 0 0;
		font-family: var(--font-display);
		font-weight: 300;
		font-size: 4.2em;
		line-height: 0.8;
		color: var(--sunset);
	}

	.statement {
		max-width: 64rem;
		margin-top: clamp(5rem, 12vw, 10rem);
	}

	.statement h2 {
		font-size: var(--step-1);
		font-style: italic;
		color: var(--ink-soft);
		margin-bottom: 1rem;
	}

	blockquote {
		margin: 0;
		font-family: var(--font-display);
		font-weight: 300;
		font-style: italic;
		font-size: clamp(2rem, 4.6vw, 4rem);
		line-height: 1.2;
	}

	html.motion [data-words] span {
		opacity: 0.14;
		transition: opacity 0.5s;
	}

	html.motion [data-words] span.lit {
		opacity: 1;
	}

	.band {
		margin: clamp(5rem, 12vw, 10rem) 0 0;
		overflow: hidden;
	}

	.band img {
		width: 100%;
		max-height: 85vh;
		object-fit: cover;
	}

	.cv {
		display: grid;
		gap: 3.5rem;
		margin-top: clamp(5rem, 12vw, 9rem);
	}

	.cv h2 {
		font-size: var(--step-2);
		font-style: italic;
		font-weight: 300;
		margin-bottom: 1.5rem;
	}

	.timeline {
		max-width: 52rem;
		margin: 0;
		padding: 0;
		list-style: none;
		font-size: var(--step-0);
	}

	.timeline li {
		display: grid;
		grid-template-columns: 7.5rem 1fr;
		gap: 1.25rem;
		padding-block: 1rem;
		border-top: 1px solid var(--line);
	}

	.year {
		font-family: var(--font-display);
		font-style: italic;
		font-size: var(--step-1);
		line-height: 1.1;
		color: var(--sunset);
	}

	.kind {
		color: var(--ink-soft);
	}

	@media (min-width: 52em) {
		.story.has-image {
			grid-template-columns: 5fr 7fr;
		}
	}

	@media (max-width: 30em) {
		.timeline li {
			grid-template-columns: 1fr;
			gap: 0.25rem;
		}
	}


/* ---- 404.astro ---- */

	.lost {
		padding-block: clamp(4rem, 12vw, 10rem);
	}
	.lede {
		margin-top: 2rem;
	}
	.second {
		margin-top: 5rem;
		opacity: 0.6;
	}
	.second .giant {
		font-size: var(--step-3);
	}

