/*
Theme Name: Laanaya
Theme URI: https://yousseflaanaya.com/
Author: Youssef Laanaya
Description: Site personnel de Youssef Laanaya, fondateur et CEO de BLACKVAULT. Profil bilingue (français, anglais) et blog. Noir, gris et blanc, typographies Archivo et Newsreader auto-hébergées, aucun appel à un service tiers.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: laanaya
*/

/* ------------------------------------------------------------------ Fonts */

@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-latin-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-latin-var-italic.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}

/* ----------------------------------------------------------------- Tokens */

:root {
	--black: #000;
	--graphite: #111;
	--line: rgba(255, 255, 255, 0.17);
	--line-strong: rgba(255, 255, 255, 0.4);
	--steel: #9c9c9c;
	--mist: #dadada;
	--white: #fff;
	--paper: #f2f2f2;
	--ink: #000;
	--ink-soft: #404040;
	--ink-quiet: #5e5e5e;
	--rule: rgba(0, 0, 0, 0.18);

	--sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

	--wrap: 78rem;
	--gutter: clamp(1.25rem, 4.5vw, 3.5rem);
	--head-h: 4.25rem;

	--t-small: 0.875rem;
	--t-body: 1.0625rem;
	--t-lead: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
	--t-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--t-h2: clamp(2.1rem, 1.3rem + 3.4vw, 4rem);
	--t-h1: clamp(2.4rem, 1.4rem + 4.6vw, 4.75rem);
}

/* ------------------------------------------------------------------- Base */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--head-h) + 1rem);
}

body {
	margin: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--sans);
	font-size: var(--t-body);
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

ul[class],
ol[class] {
	padding: 0;
	list-style: none;
}

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

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

::selection {
	background: var(--white);
	color: var(--black);
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip {
	position: absolute;
	left: var(--gutter);
	top: -6rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--white);
	color: var(--black);
	font-weight: 600;
}

.skip:focus {
	top: 0.75rem;
}

.vh {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ----------------------------------------------------------------- Header */

.site-head {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--black);
	border-bottom: 1px solid var(--line);
}

/* Signed-in visitors: the header sits below the WordPress toolbar. */
.admin-bar .site-head {
	top: 32px;
}

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

@media (max-width: 600px) {
	.admin-bar .site-head {
		top: 0;
	}
}

.site-head__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--head-h);
}

/* The monogram repeats the name grid of the home page: one letter per cell. */
.mark {
	display: inline-grid;
	grid-template-columns: repeat(2, 2.1rem);
	border: 1px solid var(--line-strong);
	text-decoration: none;
	flex: none;
}

.mark span {
	display: grid;
	place-items: center;
	height: 2.1rem;
	font-weight: 800;
	font-stretch: 118%;
	font-size: 1rem;
	line-height: 1;
}

.mark span + span {
	border-left: 1px solid var(--line-strong);
}

.mark:hover {
	background: var(--white);
	color: var(--black);
}

.nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.4vw, 2.25rem);
}

.nav__list {
	display: flex;
	gap: clamp(1rem, 2.2vw, 2rem);
}

.nav__list a,
.lang a {
	display: inline-block;
	padding-block: 0.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--mist);
}

.nav__list a:hover,
.lang a:hover {
	color: var(--white);
	text-decoration: underline;
}

.nav__list a[aria-current="page"] {
	color: var(--white);
	text-decoration: underline;
}

.lang {
	display: flex;
	gap: 0.15rem;
	padding-left: clamp(0.75rem, 1.6vw, 1.5rem);
	border-left: 1px solid var(--line);
}

.lang a {
	padding-inline: 0.45rem;
	font-weight: 600;
	color: var(--steel);
}

.lang a[aria-current="true"] {
	color: var(--white);
}

.nav-toggle {
	display: none;
	min-height: 2.75rem;
	padding: 0 0.9rem;
	background: none;
	border: 1px solid var(--line-strong);
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
}

@media (max-width: 62rem) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
	}

	.nav {
		position: absolute;
		inset: 100% 0 auto 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem var(--gutter) 1.5rem;
		background: var(--black);
		border-bottom: 1px solid var(--line);
	}

	.nav[data-open="true"] {
		display: flex;
	}

	.nav__list {
		flex-direction: column;
		gap: 0;
	}

	.nav__list a {
		display: block;
		padding-block: 0.9rem;
		border-bottom: 1px solid var(--line);
		font-size: 1.125rem;
	}

	.lang {
		margin-top: 1rem;
		padding-left: 0;
		border-left: 0;
	}

	.lang a {
		padding: 0.6rem 0.9rem 0.6rem 0;
		font-size: 1.05rem;
	}
}

/* ---------------------------------------------------------------- Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.1rem;
	padding: 0.7rem 1.6rem;
	border: 1px solid var(--white);
	border-radius: 2px;
	background: var(--white);
	color: var(--black);
	font-weight: 650;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.btn:hover {
	background: transparent;
	color: var(--white);
}

.btn--ink {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

.btn--ink:hover {
	background: transparent;
	color: var(--ink);
}

.btn[disabled] {
	opacity: 0.55;
	cursor: progress;
}

.link {
	font-weight: 600;
	text-decoration: underline;
}

.link:hover {
	text-decoration-thickness: 2px;
}

/* ------------------------------------------------------------------- Hero */

.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.hero__in {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: end;
	min-height: min(52rem, calc(100svh - var(--head-h)));
	padding-top: clamp(2.5rem, 7vw, 6rem);
}

.hero__text {
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.hero .bilan {
	position: relative;
}

/* YOUSSEF and LAANAYA both have seven letters: the name is set as a 7 x 2 grid. */
.name {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	max-width: 30rem;
	margin: 0;
	border-top: 1px solid var(--line-strong);
	border-left: 1px solid var(--line-strong);
	font-size: clamp(1.5rem, 0.6rem + 3.6vw, 3rem);
	font-weight: 800;
	font-stretch: 125%;
	line-height: 1;
}

.name span {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	border-right: 1px solid var(--line-strong);
	border-bottom: 1px solid var(--line-strong);
}

.name span[data-wait] {
	color: var(--steel);
}

.hero__role {
	margin-top: clamp(1.25rem, 2.5vw, 2rem);
	font-size: 1.05rem;
	font-weight: 600;
	font-stretch: 108%;
	color: var(--mist);
}

.hero__slogan {
	max-width: 16ch;
	margin-top: 0.75rem;
	font-family: var(--serif);
	font-size: clamp(2.1rem, 1.3rem + 3.3vw, 4rem);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.015em;
}

.hero__lead {
	max-width: 34rem;
	margin-top: 1.1rem;
	font-family: var(--serif);
	font-size: var(--t-lead);
	line-height: 1.4;
	color: var(--mist);
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.hero__photo {
	align-self: end;
	margin: 0;
}

.hero__photo img {
	width: 100%;
	max-height: min(46rem, calc(100svh - var(--head-h) - 2rem));
	object-fit: cover;
	object-position: 50% 12%;
	-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to right, transparent 0, #000 30%, #000 80%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to right, transparent 0, #000 30%, #000 80%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

@media (max-width: 56rem) {
	.hero__in {
		grid-template-columns: 1fr;
		gap: 0;
		min-height: 0;
	}

	.hero__text {
		padding-bottom: 2rem;
	}

	.hero__photo img {
		max-height: 30rem;
		object-position: 50% 8%;
	}
}

/* --------------------------------------------------------------- Sections */

.sec {
	padding-block: clamp(4.5rem, 9vw, 8.5rem);
	border-bottom: 1px solid var(--line);
}

.sec--paper {
	background: var(--paper);
	color: var(--ink);
	border-bottom-color: var(--rule);
}

.sec__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(1.5rem, 5vw, 5rem);
	align-items: start;
}

.sec__title {
	font-size: var(--t-h2);
	font-weight: 750;
	font-stretch: 112%;
	line-height: 1;
	letter-spacing: -0.02em;
}

.sec__intro {
	max-width: 36rem;
	margin-top: 1.25rem;
	color: var(--steel);
}

.sec--paper .sec__intro {
	color: var(--ink-quiet);
}

@media (max-width: 56rem) {
	.sec__grid {
		grid-template-columns: 1fr;
	}
}

/* ----------------------------------------------------------------- Profil */

/* Track record: four figures in the cells of the name grid. */
.bilan {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid var(--line-strong);
	border-left: 1px solid var(--line-strong);
}

.bilan div {
	padding: 1.25rem 1.25rem 1.4rem;
	border-right: 1px solid var(--line-strong);
}

.bilan dt {
	font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
	font-weight: 800;
	font-stretch: 122%;
	line-height: 1;
}

.bilan dd {
	margin-top: 0.5rem;
	font-size: 0.98rem;
	line-height: 1.3;
	color: var(--mist);
}

/* Convictions: four statements, set large. */
.creed {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(2rem, 6vw, 6rem);
	margin-top: clamp(2rem, 4vw, 3.5rem);
}

.creed li {
	padding-block: 1.75rem 2rem;
	border-top: 1px solid var(--line-strong);
}

.creed h3 {
	max-width: 22ch;
	font-family: var(--serif);
	font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.creed p {
	max-width: 34rem;
	margin-top: 0.9rem;
	color: var(--mist);
}

.voice p {
	max-width: 40rem;
	font-family: var(--serif);
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
	line-height: 1.5;
	color: var(--mist);
}

.voice p + p {
	margin-top: 1.1em;
}

.voice p:first-child {
	color: var(--white);
}

.profil__photo {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.profil__photo img {
	width: 100%;
	max-width: 22rem;
}

.aside {
	max-width: 40rem;
	margin-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--line);
}

.aside div {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 1rem;
	padding-block: 0.8rem;
	border-bottom: 1px solid var(--line);
}

.aside dt {
	color: var(--steel);
}

@media (max-width: 40rem) {
	.bilan,
	.creed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bilan div {
		border-bottom: 1px solid var(--line-strong);
	}

	.creed {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------- Expertise */

.domains {
	border-top: 1px solid var(--line);
}

.domains li {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 0.5rem clamp(1rem, 3vw, 3rem);
	padding-block: 1.6rem;
	border-bottom: 1px solid var(--line);
}

.domains h3 {
	font-size: var(--t-h3);
	font-weight: 700;
	font-stretch: 108%;
	line-height: 1.2;
}

.domains p {
	color: var(--mist);
}

.sec__cta {
	margin-top: 2rem;
}

.fields {
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.fields h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--steel);
}

.fields dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(1.5rem, 4vw, 3rem);
	margin: 0.75rem 0 0;
}

.fields div {
	padding-block: 0.85rem;
	border-top: 1px solid var(--line);
}

.fields dt {
	font-weight: 650;
}

.fields dd {
	margin-top: 0.2rem;
	font-size: 0.95rem;
	color: var(--steel);
}

@media (max-width: 40rem) {
	.fields dl {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 40rem) {
	.domains li {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------- Parcours */

/* The journey is told in seven verbs: one craft per line, in his own words. */
.story {
	border-bottom: 1px solid var(--rule);
}

.story > li {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 0.5rem clamp(1rem, 3vw, 2.5rem);
	align-items: baseline;
	padding-block: 1.6rem;
	border-top: 1px solid var(--rule);
}

.story h3 {
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
	font-weight: 800;
	font-stretch: 116%;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.story p {
	max-width: 38rem;
	font-family: var(--serif);
	font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem);
	line-height: 1.5;
	color: var(--ink-soft);
}

/* A masked name: the bar stands where a client's name would be printed. */
.redact {
	display: inline-block;
	width: 5.2em;
	height: 0.82em;
	margin-inline: 0.1em;
	background: var(--ink);
	vertical-align: -0.08em;
}

.redact--s {
	width: 3.6em;
}

.redact--l {
	width: 7em;
}

.sec__note {
	max-width: 30rem;
	margin-top: 1.25rem;
	font-family: var(--serif);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

@media (max-width: 40rem) {
	.story > li {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------- Certifications */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: clamp(2rem, 4vw, 3rem);
}

.filters button {
	min-height: 2.6rem;
	padding: 0.35rem 0.95rem;
	border: 1px solid var(--line-strong);
	border-radius: 2px;
	background: none;
	font-size: 0.95rem;
	font-weight: 550;
	color: var(--mist);
	cursor: pointer;
}

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

.filters button[aria-pressed="true"] {
	border-color: var(--white);
	background: var(--white);
	color: var(--black);
}

.wall__count {
	margin-top: 1rem;
	font-size: 0.95rem;
	color: var(--steel);
}

/* The wall of safe deposit boxes: one certification per box. */
.wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
	gap: 1px;
	margin-top: 1rem;
	padding: 1px;
}

.wall li {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 8.25rem;
	padding: 0.95rem 1rem 1rem;
	box-shadow: 0 0 0 1px var(--line);
	transition: opacity 0.2s, background-color 0.2s;
}

.wall li:hover {
	background: var(--graphite);
}

.wall .wall__issuer {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--steel);
}

.wall .wall__name {
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.25;
}

.wall li[data-off="true"] {
	opacity: 0.2;
}

/* -------------------------------------------------------------- BLACKVAULT */

.venture {
	position: relative;
	overflow: hidden;
}

.venture__bg {
	position: absolute;
	inset: 0 0 0 auto;
	width: min(62%, 60rem);
	height: 100%;
	object-fit: cover;
	object-position: 30% 50%;
	opacity: 0.66;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 62%);
	mask-image: linear-gradient(to right, transparent 0, #000 62%);
}

.venture .wrap {
	position: relative;
}

.venture__text {
	max-width: 36rem;
}

.venture__text .voice {
	margin-top: 1.75rem;
}

.venture__facts {
	display: grid;
	gap: 0;
	margin-top: 2rem;
	border-top: 1px solid var(--line);
}

.venture__facts div {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: baseline;
	padding-block: 0.85rem;
	border-bottom: 1px solid var(--line);
}

.venture__facts dt {
	font-size: 1.6rem;
	font-weight: 800;
	font-stretch: 118%;
	line-height: 1;
}

.venture__facts dd {
	color: var(--mist);
}

.venture .btn {
	margin-top: 2.25rem;
}

@media (max-width: 56rem) {
	.venture__bg {
		width: 100%;
		opacity: 0.3;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* ------------------------------------------------------------- Post lists */

.posts {
	border-bottom: 1px solid var(--rule);
}

.posts > li {
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	gap: 0.4rem clamp(1rem, 3vw, 2.5rem);
	padding-block: 1.75rem;
	border-top: 1px solid var(--rule);
}

.posts__meta {
	font-size: 0.95rem;
	color: var(--ink-quiet);
}

.posts h2,
.posts h3 {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
	font-weight: 700;
	font-stretch: 106%;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.posts h2 a,
.posts h3 a {
	text-decoration: none;
}

.posts h2 a:hover,
.posts h3 a:hover {
	text-decoration: underline;
}

.posts__excerpt {
	max-width: 40rem;
	margin-top: 0.6rem;
	font-family: var(--serif);
	font-size: 1.15rem;
	line-height: 1.45;
	color: var(--ink-soft);
}

.posts__more {
	margin-top: 2rem;
}

.empty {
	max-width: 34rem;
	padding-block: 1.75rem;
	border-top: 1px solid var(--rule);
	font-family: var(--serif);
	font-size: 1.2rem;
	color: var(--ink-soft);
}

@media (max-width: 40rem) {
	.posts > li {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------- Contact */

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}

.contact__ways {
	margin-top: 2rem;
	border-top: 1px solid var(--line);
}

.contact__ways li {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1rem;
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--line);
}

.contact__ways span {
	color: var(--steel);
}

.contact__ways a,
.contact__ways b {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.contact__photo {
	margin-top: 2rem;
	max-width: 18rem;
}

.form {
	display: grid;
	gap: 1.25rem;
}

.form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.form label small {
	font-size: inherit;
	font-weight: 400;
	color: var(--steel);
}

.form input,
.form textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--line-strong);
	border-radius: 2px;
	background: var(--black);
	line-height: 1.4;
}

.form input:focus,
.form textarea:focus {
	outline: 2px solid var(--white);
	outline-offset: 1px;
}

.form textarea {
	min-height: 10rem;
	resize: vertical;
}

/* Trap field for robots: off screen, never shown to people. */
.form__trap {
	position: absolute;
	left: -200vw;
}

.form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

.form__legal {
	flex: 1 1 14rem;
	font-size: 0.875rem;
	color: var(--steel);
}

.form__status {
	padding: 0.9rem 1rem;
	border: 1px solid var(--line-strong);
	font-weight: 600;
}

.form__status:empty {
	display: none;
}

.form__status[data-kind="ok"] {
	background: var(--white);
	color: var(--black);
}

@media (max-width: 56rem) {
	.contact__grid,
	.form__row {
		grid-template-columns: 1fr;
	}
}

/* ----------------------------------------------------------------- Footer */

.site-foot {
	padding-block: 2.5rem;
	font-size: 0.95rem;
	color: var(--steel);
}

.site-foot__in {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.site-foot ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
}

.site-foot a {
	color: var(--mist);
}

.site-foot a:hover {
	color: var(--white);
}

/* ----------------------------------------------------- Blog index and page */

.page-head {
	padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
	border-bottom: 1px solid var(--line);
}

.page-head h1 {
	font-size: var(--t-h1);
	font-weight: 780;
	font-stretch: 112%;
	line-height: 1;
	letter-spacing: -0.02em;
}

.page-head p {
	max-width: 34rem;
	margin-top: 1.25rem;
	font-family: var(--serif);
	font-size: var(--t-lead);
	line-height: 1.4;
	color: var(--mist);
}

.sheet {
	background: var(--paper);
	color: var(--ink);
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.sheet .posts {
	max-width: 58rem;
}

.cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-bottom: 2rem;
	font-size: 0.95rem;
}

.cats a {
	font-weight: 600;
	color: var(--ink-soft);
}

.cats a[aria-current="page"] {
	color: var(--ink);
	text-decoration-thickness: 2px;
}

.pager {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	max-width: 58rem;
	margin-top: 2.5rem;
	font-weight: 600;
}

/* ---------------------------------------------------------------- Article */

.article-head {
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.article-head__in {
	max-width: 56rem;
}

.article-head .crumb {
	font-size: 0.95rem;
	color: var(--steel);
}

.article-head h1 {
	margin-top: 1rem;
	font-size: var(--t-h1);
	font-weight: 780;
	font-stretch: 108%;
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.article-head .meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin-top: 1.5rem;
	color: var(--steel);
}

.article-cover img {
	width: 100%;
	max-height: 34rem;
	object-fit: cover;
}

.prose {
	max-width: 42rem;
	font-family: var(--serif);
	font-size: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
	line-height: 1.65;
	color: #111;
}

.prose > * + * {
	margin-top: 1.25em;
}

.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--sans);
	font-weight: 750;
	font-stretch: 106%;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.prose h2 {
	margin-top: 2.2em;
	font-size: 1.55em;
}

.prose h3 {
	margin-top: 1.9em;
	font-size: 1.2em;
}

.prose a {
	text-decoration: underline;
}

.prose a:hover {
	text-decoration-thickness: 2px;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.45em;
}

.prose blockquote {
	padding-left: 1.25em;
	border-left: 3px solid var(--ink);
	font-style: italic;
	font-size: 1.1em;
}

.prose code {
	padding: 0.1em 0.3em;
	background: #e2e2e2;
	font-family: var(--mono);
	font-size: 0.82em;
}

.prose pre {
	overflow-x: auto;
	padding: 1.1rem 1.25rem;
	background: var(--black);
	color: var(--mist);
	font-family: var(--mono);
	font-size: 0.9rem;
	line-height: 1.55;
}

.prose pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}

.prose img,
.prose figure {
	max-width: 100%;
}

.prose figcaption {
	margin-top: 0.5rem;
	font-family: var(--sans);
	font-size: 0.9rem;
	color: var(--ink-quiet);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--sans);
	font-size: 0.95rem;
}

.prose th,
.prose td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--rule);
	text-align: left;
}

.prose hr {
	height: 1px;
	border: 0;
	background: var(--rule);
}

.author {
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	max-width: 42rem;
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--rule);
}

.author img {
	width: 6rem;
	height: 6rem;
	object-fit: cover;
	object-position: 50% 15%;
}

.author strong {
	display: block;
	font-size: 1.15rem;
	font-weight: 700;
}

.author p {
	margin-top: 0.4rem;
	color: var(--ink-soft);
}

.author .btn {
	margin-top: 1.1rem;
}

.around {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	max-width: 58rem;
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
}

.around span {
	display: block;
	font-size: 0.95rem;
	color: var(--ink-quiet);
}

.around a {
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1.25;
}

.around div:last-child {
	text-align: right;
}

@media (max-width: 40rem) {
	.author {
		grid-template-columns: 1fr;
	}

	.around {
		grid-template-columns: 1fr;
	}

	.around div:last-child {
		text-align: left;
	}
}

/* ----------------------------------------------------------------- Motion */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}

/* ------------------------------------------------------------------ Print */

@media print {
	.site-head,
	.site-foot,
	.filters,
	.form,
	.hero__cta,
	.venture__bg {
		display: none;
	}

	body,
	.sec,
	.sheet {
		background: #fff;
		color: #000;
	}
}
