/* --------------------------------------------------------------------------
   Amica — police unique du site public (La Clique Rustique).
   Chargée après screen.css, elle remplace les polices du thème et celles
   choisies dans l'administration de Ghost (Design → Typographie).
   Les blocs de code gardent une police à chasse fixe, sans quoi ils
   deviennent illisibles ; retirer la dernière règle pour les inclure aussi.
   -------------------------------------------------------------------------- */

@font-face {
	font-family: 'Amica';
	src: url('../fonts/Amica-Regular.woff2') format('woff2'),
		 url('../fonts/Amica-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Amica';
	src: url('../fonts/Amica-RegularItalic.woff2') format('woff2'),
		 url('../fonts/Amica-RegularItalic.woff') format('woff');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Amica';
	src: url('../fonts/Amica-Bold.woff2') format('woff2'),
		 url('../fonts/Amica-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* `html:root` l'emporte sur le `:root` que Ghost injecte dans ghost_head
   quand une police est choisie dans l'administration. */
html:root {
	/* les trois familles du thème : titres, titres secondaires, texte */
	--font-family-one: 'Amica', var(--font-family-system);
	--font-family-two: 'Amica', var(--font-family-system);
	--font-family-three: 'Amica', var(--font-family-system);

	/* Amica n'existe qu'en Regular et Bold : pas de 300 ni de 500,
	   sinon le navigateur fabrique de fausses graisses. */
	--font-weight-one-light: 400;
	--font-weight-one-bold: 700;
	--font-weight-two-bold: 700;
	--font-weight-three-regular: 400;
	--font-weight-three-medium: 400;
	--font-weight-three-bold: 700;

	/* variables utilisées par les cartes de l'éditeur Ghost */
	--gh-font-heading: 'Amica', var(--font-family-system);
	--gh-font-body: 'Amica', var(--font-family-system);
}

/* Filet de sécurité : tout ce que le thème ou Ghost aurait défini autrement. */
body,
button,
input,
select,
textarea,
.gh-content,
.post-content,
.kg-card,
.kg-callout-text,
.kg-toggle-heading-text,
.kg-header-card {
	font-family: 'Amica', var(--font-family-system);
}

/* Code et préformaté : chasse fixe conservée. */
code,
kbd,
samp,
pre,
.kg-code-card,
.kg-code-card code {
	font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}
