/*
 * components.css — pièces d'interface réutilisables.
 *
 * En-tête, navigation, sélecteur de langue, bascule de thème, pied de page,
 * fil d'Ariane, listes d'articles, métadonnées, pagination, formulaires.
 * Traduction manuelle des classes utilitaires Tailwind employées par Lipi.
 */

/* ═══ En-tête ═══════════════════════════════════════════════════════════════ */

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
	padding-block: 0.75rem;
}

.site-branding {
	margin: 0;
	font-family: var(--font-ui);
	font-size: var(--text-2xl);
	font-weight: 600;
	letter-spacing: var(--tracking-tight);
	line-height: 1.1;
}

.site-branding__link {
	color: var(--foreground);
	text-decoration: none;
}

.site-branding__link:hover {
	color: var(--primary);
}

.site-branding img {
	height: 2rem;
	width: auto;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-header__rule {
	display: none;
	width: 1px;
	height: 0.875rem;
	background: var(--border);
	flex-shrink: 0;
}

/* Une ombre naît au premier pixel de défilement. Progressive : sans prise en
   charge des animations pilotées par le défilement, l'en-tête reste plat. */
@supports (animation-timeline: scroll()) {
	.site-header {
		animation: lipi-header-shadow linear both;
		animation-timeline: scroll();
		animation-range: 0 1px;
	}

	@keyframes lipi-header-shadow {
		from {
			box-shadow: none;
		}

		to {
			box-shadow: 0 1px 12px color-mix(in srgb, var(--foreground) 8%, transparent);
		}
	}
}

/* ═══ Navigation principale ═════════════════════════════════════════════════ */

.site-nav {
	display: none;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	letter-spacing: 0.01em;
	color: var(--muted-foreground);
	text-decoration: none;
}

.site-nav__list a::after {
	content: "";
	position: absolute;
	inset-inline-start: 50%;
	inset-block-end: 0.5rem;
	width: 0;
	height: 2px;
	border-radius: 1px;
	background: var(--accent);
	transform: translateX(-50%);
	transition: width 200ms ease;
}

.site-nav__list a:hover {
	color: var(--primary);
}

.site-nav__list a:hover::after {
	width: 100%;
}

.site-nav__list a[aria-current="page"],
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a {
	color: var(--primary);
}

@media (min-width: 640px) {
	.site-nav {
		display: block;
	}

	.site-header__rule {
		display: block;
	}
}

/* ═══ Sélecteur de langue ═══════════════════════════════════════════════════ */

.lang-switcher__list {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switcher__item + .lang-switcher__item::before {
	content: "/";
	margin-inline-end: 0.5rem;
	color: var(--border);
}

.lang-switcher__item {
	display: flex;
	align-items: center;
}

.lang-switcher__link {
	font-family: var(--font-ui);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--tracking-wide);
	color: var(--muted-foreground);
	text-decoration: none;
}

.lang-switcher__link.is-current {
	color: var(--primary);
}

.lang-switcher__link abbr {
	text-decoration: none;
	border: 0;
	cursor: inherit;
}

/* ═══ Bascule clair / sombre ════════════════════════════════════════════════ */

.theme-toggle {
	position: relative;
	flex-shrink: 0;
	width: 36px;
	height: 20px;
	padding: 0;
	border: 0.5px solid var(--border);
	border-radius: 10px;
	background: var(--muted);
	transition: background 200ms ease, border-color 200ms ease;
}

.theme-toggle::after {
	content: "";
	position: absolute;
	inset-block-start: 2px;
	inset-inline-start: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 0.5px solid var(--muted-foreground);
	background: var(--foreground);
	transition: transform 180ms ease, background 180ms ease;
}

/* Position du curseur : d'abord d'après le réglage système, puis d'après le
   choix épinglé s'il existe. Le bouton reste juste même sans JavaScript. */
@media (prefers-color-scheme: dark) {
	.theme-toggle {
		background: var(--muted-foreground);
		border-color: var(--muted-foreground);
	}

	.theme-toggle::after {
		transform: translateX(16px);
	}
}

:root[data-theme="light"] .theme-toggle {
	background: var(--muted);
	border-color: var(--border);
}

:root[data-theme="light"] .theme-toggle::after {
	transform: none;
}

:root[data-theme="dark"] .theme-toggle {
	background: var(--muted-foreground);
	border-color: var(--muted-foreground);
}

:root[data-theme="dark"] .theme-toggle::after {
	transform: translateX(16px);
}

/* ═══ Tiroir mobile ═════════════════════════════════════════════════════════ */

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: transparent;
	color: var(--muted-foreground);
}

.menu-toggle:hover {
	color: var(--primary);
}

@media (min-width: 640px) {
	.menu-toggle {
		display: none;
	}
}

.site-drawer {
	border-block-start: 1px solid var(--border);
	background: var(--background);
}

.site-drawer[hidden] {
	display: none;
}

.site-drawer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-drawer__list a {
	display: block;
	padding: 0.875rem var(--gutter);
	border-block-end: 1px solid var(--border);
	font-family: var(--font-ui);
	font-size: var(--text-base);
	color: var(--muted-foreground);
	text-decoration: none;
}

.site-drawer__list li:last-child a {
	border-block-end: 0;
}

.site-drawer__list a[aria-current="page"],
.site-drawer__list .current-menu-item > a {
	color: var(--primary);
}

/* ═══ Fil d'Ariane ══════════════════════════════════════════════════════════ */

.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--muted-foreground);
}

.breadcrumb__item {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.breadcrumb__item + .breadcrumb__item::before {
	content: "/";
	color: var(--border);
}

.breadcrumb__item a {
	color: var(--muted-foreground);
	text-decoration: none;
}

.breadcrumb__item a:hover {
	color: var(--primary);
}

.breadcrumb__current {
	color: var(--primary);
}

.breadcrumb__icon {
	display: inline-flex;
	align-items: center;
}

/* ═══ En-tête de section ════════════════════════════════════════════════════ */

.section-header {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.section-header__title {
	margin: 0;
	font-family: var(--font-code);
	font-size: var(--text-sm);
	font-weight: 500;
	/* Interlignage serré : hérité du corps de texte, l'intitulé traînerait un
	   demi-interligne de vide sous lui. */
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: var(--tracking-widest);
	color: var(--muted-foreground);
}

.section-header__subtitle {
	max-width: 36rem;
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	color: var(--muted-foreground);
}

/* ═══ Lien d'appel à l'action ═══════════════════════════════════════════════ */

.cta-link {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: var(--font-code);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted-foreground);
	text-decoration: none;
	transition: color 300ms var(--ease-fluid);
}

.cta-link:hover {
	color: var(--foreground);
}

.cta-link__rule {
	display: inline-block;
	width: 1.75rem;
	height: 1px;
	background: currentColor;
	transition: width 450ms var(--ease-fluid);
}

.cta-link:hover .cta-link__rule {
	width: 4rem;
}

/* ═══ Métadonnées d'article ═════════════════════════════════════════════════ */

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	font-family: var(--font-ui);
	font-size: var(--text-xs);
	color: var(--muted-foreground);
}

/* Le point médian est décoratif : produit en CSS, il reste hors du texte lu
   par les lecteurs d'écran. */
.post-meta > * + *::before {
	content: "·";
	margin-inline-end: 0.5rem;
	color: var(--border);
}

.post-meta__date {
	font-variant-numeric: tabular-nums;
}

.post-meta a {
	color: inherit;
	text-decoration: none;
}

.post-meta a:hover {
	color: var(--primary);
}

.post-meta__category--accent {
	color: var(--primary);
}

/* ═══ Liste d'articles développée ═══════════════════════════════════════════ */

.post-list {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-list__item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-block: 1.25rem;
	border-block-end: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
	transition: transform 300ms var(--ease-fluid);
}

/* Le premier élément est déjà espacé par l'intitulé de section au-dessus. */
.post-list__item:first-child {
	padding-block-start: 0;
}

.post-list__item:last-child {
	border-block-end: 0;
}

@media (hover: hover) {
	.post-list__item:hover {
		transform: translateX(0.5rem);
	}
}

.post-list__title {
	margin: 0;
	font-family: var(--font-content);
	font-size: var(--text-lg);
	font-weight: 500;
	line-height: var(--leading-snug);
	text-wrap: balance;
}

.post-list__title a {
	color: var(--foreground);
	text-decoration: none;
}

.post-list__title a:hover {
	color: var(--primary);
}

.post-list__excerpt {
	margin: 0;
	font-size: var(--text-sm);
	font-style: italic;
	line-height: var(--leading-normal);
	color: var(--muted-foreground);
}

@media (min-width: 768px) {
	.post-list__title {
		font-size: var(--text-xl);
	}
}

/* ═══ Liste d'articles compacte (archive, articles liés) ════════════════════ */

.post-index {
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-index__item {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	padding-block: 0.375rem;
}

.post-index__title {
	margin: 0;
	font-family: var(--font-content);
	font-size: var(--text-base);
	font-weight: 500;
	line-height: var(--leading-snug);
	text-wrap: balance;
}

.post-index__title a {
	color: var(--foreground);
	text-decoration: none;
	transition: color 150ms ease;
}

.post-index__title a:hover {
	color: var(--primary);
}

.post-index__item .post-meta {
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.post-index__item {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 1.5rem;
	}

	.post-index__title {
		font-size: var(--text-lg);
	}

	.post-index__item .post-meta {
		justify-content: flex-end;
		white-space: nowrap;
	}
}

/* ═══ Regroupement par année ════════════════════════════════════════════════ */

/*
 * Un groupe masqué passe en display:none (cf. .year-group[hidden] plus bas) :
 * il ne prend aucune place, donc ce sélecteur s'applique correctement même
 * quand une année intermédiaire est filtrée.
 */
.year-group + .year-group {
	margin-block-start: 3rem;
}

.year-group__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-block-end: 0.5rem;
	margin-block-end: 1rem;
	border-block-end: 1px solid var(--border);
}

.year-group__year {
	margin: 0;
	font-family: var(--font-code);
	font-size: var(--text-base);
	font-weight: 500;
	letter-spacing: var(--tracking-widest);
	color: var(--muted-foreground);
}

.year-group__count {
	font-family: var(--font-code);
	font-size: var(--text-sm);
	font-variant-numeric: tabular-nums;
	color: var(--muted-foreground);
}

/* ═══ Pagination ════════════════════════════════════════════════════════════ */

.navigation.pagination {
	margin-block-start: 2rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
}

.nav-links .page-numbers {
	color: var(--muted-foreground);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.nav-links .page-numbers:hover {
	color: var(--primary);
}

.nav-links .page-numbers.current {
	color: var(--primary);
	font-weight: 500;
	font-style: italic;
}

/* ═══ Navigation entre articles ═════════════════════════════════════════════ */

.post-nav__list {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.post-nav__list {
		grid-template-columns: 1fr 1fr;
	}

	.post-nav__item--next {
		text-align: end;
	}
}

.post-nav__label {
	display: block;
	margin-block-end: 0.375rem;
	font-family: var(--font-code);
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: var(--tracking-widest);
	color: var(--muted-foreground);
}

.post-nav__title {
	font-family: var(--font-content);
	font-size: var(--text-base);
	font-weight: 500;
	line-height: var(--leading-snug);
	color: var(--foreground);
	text-decoration: none;
}

.post-nav__title:hover {
	color: var(--primary);
}

/* ═══ Formulaires ═══════════════════════════════════════════════════════════ */

.search-form {
	display: flex;
	gap: 0.5rem;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--background);
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--foreground);
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
	outline: 2px dashed var(--accent-foreground);
	outline-offset: 2px;
	border-color: var(--accent);
}

.button,
button[type="submit"],
input[type="submit"] {
	padding: 0.5rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--muted);
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--foreground);
	white-space: nowrap;
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	color: var(--primary);
	border-color: var(--accent);
}

/* ═══ Pied de page ══════════════════════════════════════════════════════════ */

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

.site-footer__name {
	font-family: var(--font-ui);
	font-size: var(--text-xl);
	font-weight: 600;
	letter-spacing: var(--tracking-tight);
}

.site-footer__dot {
	color: var(--primary);
	font-weight: 400;
}

.site-footer__tagline {
	max-width: 34rem;
	font-family: var(--font-code);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	letter-spacing: 0.01em;
	color: var(--muted-foreground);
	text-wrap: balance;
}

.site-footer__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list a {
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--muted-foreground);
	text-decoration: none;
}

.site-footer__list a:hover {
	color: var(--primary);
}

.site-footer__legal {
	font-family: var(--font-code);
	font-size: var(--text-xs);
	color: var(--muted-foreground);
}

.site-footer__legal a {
	color: inherit;
	text-decoration: none;
}

.site-footer__legal a:hover {
	color: var(--primary);
}

.site-footer__sep {
	margin-inline: 0.375rem;
	color: var(--border);
}

/* ═══ En-tête de page ═══════════════════════════════════════════════════════ */

.page-header {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.page-header__title {
	margin: 0;
	font-family: var(--font-content);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
	font-weight: 600;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

.page-header__description {
	max-width: 40ch;
	margin: 0;
	font-family: var(--font-content);
	font-size: var(--text-lg);
	font-style: italic;
	font-weight: 300;
	line-height: var(--leading-relaxed);
	color: var(--muted-foreground);
}

.page-header__meta {
	margin: 0;
	font-family: var(--font-code);
	font-size: var(--text-xs);
	color: var(--muted-foreground);
}

.page-header__rule {
	margin-block-start: 1.5rem;
}

/* ═══ Chapeau de l'accueil ══════════════════════════════════════════════════ */

.home-hero {
	padding-block-start: 0.75rem;
}

/* Le premier paragraphe porte la déclaration éditoriale, en italique et sur une
   mesure resserrée, comme le variant « studio » du thème Astro Lipi ; les
   suivants reprennent une taille de lecture normale. */
.home-hero .entry-content > p:first-of-type {
	max-width: 36rem;
	margin-inline: 0;
	font-style: italic;
	font-weight: 400;
	font-size: var(--text-3xl);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

@media (min-width: 640px) {
	.home-hero .entry-content > p:first-of-type {
		font-size: var(--text-4xl);
	}
}

.home-hero .entry-content > p + p {
	margin-block-start: 1rem;
	color: var(--muted-foreground);
}

.home-hero__rule {
	margin-block-start: 2rem;
}

@media (min-width: 640px) {
	.home-hero {
		padding-block-start: 1.25rem;
	}
}

/* ═══ Article à la une ══════════════════════════════════════════════════════ */

.home-featured,
.home-recent {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.featured {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.featured__title {
	margin: 0;
	font-family: var(--font-content);
	font-size: var(--text-2xl);
	font-weight: 500;
	line-height: var(--leading-tight);
	text-wrap: balance;
}

.featured__title a {
	color: var(--foreground);
	text-decoration: none;
}

.featured__title a:hover {
	color: var(--primary);
}

.featured__excerpt {
	margin: 0;
	font-size: var(--text-sm);
	font-style: italic;
	line-height: var(--leading-normal);
	color: var(--muted-foreground);
}

.featured .cta-link {
	margin-block-start: 0.5rem;
}

.home-recent .cta-link {
	margin-block-start: 1.5rem;
}

@media (min-width: 768px) {
	.featured__title {
		font-size: var(--text-3xl);
	}
}

/* ═══ Aucun résultat ════════════════════════════════════════════════════════ */

.content-none {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 32rem;
}

.content-none__text {
	font-size: var(--text-lg);
	color: var(--muted-foreground);
}

/* ═══ Article ═══════════════════════════════════════════════════════════════
   Espacement uniforme entre les grandes zones : en-tête, image de couverture,
   contenu, étiquettes, filet final. Sans cela, le premier bloc du contenu vient
   se coller au filet de séparation de l'en-tête.
   ═════════════════════════════════════════════════════════════════════════ */

.entry {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* ═══ En-tête d'article ═════════════════════════════════════════════════════ */

.entry__header {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.entry__title {
	margin: 0;
	font-family: var(--font-content);
	font-size: clamp(1.875rem, 1.4rem + 1.9vw, 2.5rem);
	font-weight: 500;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

.entry__lede {
	max-width: 44ch;
	margin: 0;
	font-family: var(--font-content);
	font-size: var(--text-base);
	font-style: italic;
	font-weight: 300;
	line-height: var(--leading-relaxed);
	color: var(--muted-foreground);
}

.entry__rule {
	margin-block-start: 1rem;
}

.entry__cover img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	outline: 1px solid var(--border);
	outline-offset: -1px;
}

/* ═══ Étiquettes ════════════════════════════════════════════════════════════ */

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem;
}

.entry__tags-label {
	margin: 0;
	font-family: var(--font-code);
	font-size: var(--text-sm);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--tracking-widest);
	color: var(--muted-foreground);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tag-list a {
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--muted-foreground);
	text-decoration: underline;
	text-decoration-color: var(--border);
}

.tag-list a:hover {
	color: var(--primary);
}

/* ═══ Articles liés ═════════════════════════════════════════════════════════ */

.entry-related {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* ═══ Commentaires ══════════════════════════════════════════════════════════ */

.comments {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

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

.comment-list .children {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-block-start: 1.5rem;
	padding-inline-start: 1.25rem;
	border-inline-start: 2px solid var(--border);
	list-style: none;
}

.comment-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	font-family: var(--font-ui);
	font-size: var(--text-xs);
	color: var(--muted-foreground);
}

.comment-author {
	font-weight: 500;
	color: var(--foreground);
}

.comment-author .says {
	display: none;
}

.comment-metadata a,
.comment-meta a {
	color: inherit;
	text-decoration: none;
}

.comment-metadata a:hover {
	color: var(--primary);
}

.comment-content {
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
}

.comment-content > * + * {
	margin-block-start: 0.75rem;
}

.reply {
	font-family: var(--font-ui);
	font-size: var(--text-xs);
}

.reply a {
	color: var(--muted-foreground);
	text-decoration: none;
}

.reply a:hover {
	color: var(--primary);
}

.comment-form-wrap {
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--border);
}

.comment-form__title {
	margin: 0 0 0.5rem;
	font-family: var(--font-code);
	font-size: var(--text-sm);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--tracking-widest);
	color: var(--muted-foreground);
}

.comment-form__notes,
.comment-notes,
.comment-form .form-submit {
	font-family: var(--font-ui);
	font-size: var(--text-xs);
	color: var(--muted-foreground);
}

.comment-form p {
	margin-block-end: 1rem;
}

.comment-form label {
	display: block;
	margin-block-end: 0.375rem;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--muted-foreground);
}

.comments__closed {
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--muted-foreground);
}

/* ═══ Filtres de l'archive ══════════════════════════════════════════════════ */

.archive-filters {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.archive-filters[hidden] {
	display: none;
}

.archive-filters__search input[type="search"] {
	max-width: 20rem;
}

.archive-filters__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem 1rem;
}

.filter-chip {
	position: relative;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--muted-foreground);
}

.filter-chip::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-end: -2px;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 200ms ease;
}

.filter-chip:hover {
	color: var(--primary);
}

.filter-chip.is-active {
	color: var(--primary);
	font-weight: 500;
	font-style: italic;
}

.filter-chip.is-active::after {
	width: 100%;
}

.archive-empty {
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--muted-foreground);
}

.archive-empty[hidden],
.year-group[hidden],
.post-index__item[hidden] {
	display: none;
}

/* ═══ Annotation manuscrite ═════════════════════════════════════════════════ */

.annotation {
	display: block;
	max-width: 20rem;
	font-family: var(--font-annotation);
	font-size: var(--text-xl);
	line-height: var(--leading-snug);
	color: var(--primary);
	rotate: -1deg;
}

@media (min-width: 768px) {
	.annotation {
		font-size: var(--text-2xl);
	}
}
