/* ============================================================
   TOKENS — Système de design « Un Poème »
   Palette Papier & Encre + Bordeaux · Fraunces + Source Serif 4
   Aucun dégradé. Aucun border-radius. Filets fins, pas de cartes.
   ============================================================ */

:root {
	/* ---- Couleurs ---- */
	--up-paper:        #FAF8F4;  /* fond principal (papier)        */
	--up-paper-soft:   #F2EDE4;  /* fond de section alterné         */
	--up-paper-deep:   #ECE5D8;  /* fond contrasté discret          */
	--up-ink:          #1A1A1A;  /* titres (encre)                  */
	--up-ink-soft:     #2A2521;  /* texte courant                   */
	--up-muted:        #6B6258;  /* méta, légendes                  */
	--up-accent:       #7B2D3B;  /* bordeaux — liens, accents       */
	--up-accent-dark:  #5E2230;  /* bordeaux foncé — survol         */
	--up-line:         #E2DCD2;  /* filets / séparateurs            */
	--up-line-strong:  #C9BFB0;  /* filets appuyés                  */
	--up-white:        #FFFFFF;

	/* ---- Typographie ----
	   Cormorant Garamond (titres, contrasté, élégant) + EB Garamond (corps).
	   EB Garamond a une petite hauteur d'x → corps un peu plus grand. */
	--up-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--up-font-body:    "EB Garamond", Georgia, "Times New Roman", serif;

	/* Échelle modulaire — fluide via clamp. Display généreux (Cormorant respire). */
	--up-fs-xs:   0.8125rem;                          /* 13px — méta      */
	--up-fs-sm:   0.975rem;                           /* 15.6px           */
	--up-fs-base: 1.25rem;                            /* 20px — corps EB  */
	--up-fs-lg:   1.4rem;                             /* 22px             */
	--up-fs-xl:   clamp(1.55rem, 1.2rem + 1.2vw, 2rem);
	--up-fs-2xl:  clamp(2rem, 1.4rem + 2.4vw, 3rem);
	--up-fs-3xl:  clamp(2.6rem, 1.7rem + 3.6vw, 4.25rem);
	--up-fs-4xl:  clamp(3.2rem, 2rem + 5.5vw, 6rem);

	--up-lh-tight: 1.08;
	--up-lh-snug:  1.22;
	--up-lh-body:  1.65;   /* confort de lecture poétique */

	/* Largeur de lecture (mesure) */
	--up-measure:  68ch;

	/* ---- Espacement (échelle 4px) ---- */
	--up-space-1:  0.25rem;
	--up-space-2:  0.5rem;
	--up-space-3:  0.75rem;
	--up-space-4:  1rem;
	--up-space-6:  1.5rem;
	--up-space-8:  2rem;
	--up-space-12: 3rem;
	--up-space-16: 4rem;
	--up-space-24: 6rem;

	/* ---- Filets & transitions ---- */
	--up-hairline: 1px solid var(--up-line);
	--up-rule:     1px solid var(--up-line-strong);
	--up-ease:     200ms ease;
}

/* ============================================================
   OVERRIDE des tokens natifs de Blocksy
   On reprogramme le thème parent au lieu de lutter contre lui.
   ============================================================ */

:root {
	/* Palette Blocksy (1 = accent … 8 = blanc) */
	--theme-palette-color-1: var(--up-accent);
	--theme-palette-color-2: var(--up-accent-dark);
	--theme-palette-color-3: var(--up-ink);
	--theme-palette-color-4: var(--up-ink-soft);
	--theme-palette-color-5: var(--up-line);
	--theme-palette-color-6: var(--up-paper-soft);
	--theme-palette-color-7: var(--up-paper);
	--theme-palette-color-8: var(--up-white);

	/* Typographie parente */
	--theme-font-family:        var(--up-font-body);
	--theme-font-weight:        400;
	--theme-text-color:         var(--up-ink-soft);
	--theme-headings-color:     var(--up-ink);
	--theme-heading-color:      var(--up-ink);
	--theme-link-initial-color: var(--up-accent);
	--theme-link-hover-color:   var(--up-accent-dark);

	/* Bordures : on supprime TOUS les arrondis du parent */
	--theme-border-radius:      0px;
	--theme-border-color:       var(--up-line);

	/* Fonds */
	--theme-content-bg-color:   var(--up-paper);
}
