/* ══ Titres et sous-titres (14 novembre 2026) ══
   Chargée après riso.css. Retirer la ligne <link ... titres.css> dans index.html
   rend l'ancien aspect (Garamond partout).

   Trois familles seulement (décidé le 14 novembre) :
   Arvo gras (700) : le nom du site, tous les titres (fiches comprises), les numéros
     de chronique (à la place d'Anton depuis le 14 novembre ; pas de hachures).
     (Les hachures sur le titre des fiches ont été essayées puis retirées le 14 novembre.)
   IBM Plex Mono : les petites informations (remplacé par Arvo normal le 15 novembre, voir passages.css).
   Arvo 700 aussi pour le sous-titre « Cartographie des pratiques liées au sucré
     et de leur transmission » (il était en Plex Mono italique jusqu'au 14 novembre).
   EB Garamond : le texte courant.

   Arvo n'a ni le cyrillique, ni l'arabe, ni le chinois : dans ces trois langues,
   les titres gardent le Garamond (sauf le nom « IS LAND PASTRY? », toujours en
   lettres latines). Le sous-titre aussi passe en Garamond dans ces trois langues. */

:root {
  --title: 'Arvo', Rockwell, Georgia, serif;
  --title-w: 700;
  --title-case: uppercase;
  --title-ls: .01em;
  --sub: 'Arvo', Rockwell, Georgia, serif;   /* le sous-titre aussi en Arvo 700 (14 novembre) */
  --sub-w: 700;
  --sub-style: normal;
}
html:lang(ru), html:lang(ar), html:lang(zh) {
  --title: 'EB Garamond', Georgia, serif;
  --title-w: 400;
  --title-case: none;
  --title-ls: 1px;
}
html:lang(ru), html:lang(ar), html:lang(zh) {
  --sub: 'EB Garamond', Georgia, serif;   /* Arvo n'a ni le cyrillique, ni l'arabe, ni le chinois */
  --sub-w: 500;
}

header .brand { flex-direction: column; align-items: flex-start; gap: 3px; flex-wrap: nowrap; }
header .tagline {
  font-family: var(--sub); font-weight: var(--sub-w); font-style: var(--sub-style);
  font-size: 12.5px; line-height: 1.15; color: var(--ink-a);
}
@media (min-width: 1101px) { header .tagline { display: block; } }

/* barre des pages : même logo, même sous-titre dessous */
.site-page-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
   letter-spacing: 0; text-align: start;   /* même taille que l'en-tête de la carte */
}
.site-page-brand:hover { text-decoration: none; }
.site-page-brand:hover .brand-sub { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.brand-sub {
  font-family: var(--sub); font-weight: var(--sub-w); font-style: var(--sub-style);
  font-size: 12.5px; line-height: 1.15; color: var(--ink-a);
}
/* comme sur la carte : le sous-titre disparaît sous 1100 pixels, le nom rapetisse */
@media (max-width: 1100px) { .brand-sub { display: none; } .site-page-brand {  } }
@media (max-width: 760px)  { .site-page-brand { display: none; } }

/* ── Pages : grand titre, sous-titre dessous, tout sur la même marge ── */
.page-title {
  font-family: var(--title); text-transform: var(--title-case); 
    white-space: normal;
}
.page-title::before {
  inset: 0; left: 0; top: 0; transform: translate(4px, 3px);
  white-space: normal;     /* le double se coupe aux mêmes endroits que le titre */
}
.page-title[data-text="IS LAND PASTRY?"] {
  font-family: 'Arvo', Rockwell, Georgia, serif; text-transform: none; letter-spacing: .01em; white-space: nowrap;
}
body[dir="rtl"] .page-title[data-text="IS LAND PASTRY?"] { direction: ltr; }
.page-sub {
  font-family: var(--sub); font-weight: var(--sub-w); font-style: var(--sub-style);
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.3; margin-top: 14px;
}
.page-h2 { font-family: var(--title); text-transform: var(--title-case); letter-spacing: var(--title-ls); font-weight: var(--title-w);  }
@media (max-width: 760px) {
  .page-title::before { display: block; transform: translate(2px, 2px); }
}

/* ── Chroniques : la plus récente en grand ── */
.chron-num {
  flex: none; width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-b); color: var(--ink);
  font-family: 'Arvo', Rockwell, Georgia, serif;  line-height: 1;
}
.chron-head-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }

.chron-featured {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 26px 48px; align-items: start;
  padding: 32px 0 38px;
}
.chron-featured.no-photo { grid-template-columns: minmax(0, 1fr); }
.chron-featured.no-photo .chron-featured-text { max-width: 560px; }
.chron-featured-head {
  grid-column: 1 / -1;
  display: flex; align-items: flex-end; gap: 20px;
  color: inherit; text-decoration: none;
}
.chron-featured-title {
  position: relative; isolation: isolate; display: inline-block;
  font-family: var(--title); text-transform: var(--title-case); letter-spacing: var(--title-ls);
    color: var(--ink-a);
}
.chron-featured-title::before {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1;
  transform: translate(3px, 3px); color: var(--ink-b); pointer-events: none;
}
.chron-featured:hover .chron-featured-title { text-decoration: none; }
.chron-featured-head:hover .chron-kicker { text-decoration: underline; text-underline-offset: 4px; }
.chron-featured-head:focus-visible, .chron-box:focus-visible, .chron-featured .chron-more:focus-visible { outline: 2px solid var(--ink-b); outline-offset: 3px; }
.chron-featured-photo { display: block; }
.chron-featured-text { gap: 14px; }
.chron-featured-lead { margin: 0; }
.chron-featured .chron-aside-head { margin-top: 6px; }
.chron-featured .chron-more { align-self: flex-start; padding: 8px 0; }
.chron-box {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; box-sizing: border-box; padding: 8px 14px;
  border: 1.5px solid var(--ink-a); background: var(--paper); box-shadow: 4px 4px 0 var(--ink-b);
  font-family: var(--mono); font-size: 13px; color: var(--ink-a); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.chron-box:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink-b); }
.chron-box .cat-shape { color: var(--ink-a); }
.chron-row-title { font-family: var(--title); text-transform: var(--title-case); letter-spacing: var(--title-ls); font-weight: var(--title-w);  }

/* ── Une chronique : le numéro dans son carré, à gauche du titre ── */
.chron-head { display: flex; align-items: flex-end; gap: 20px; margin-top: 28px; }
.chron-article .chron-head .chron-kicker { margin: 0; }

@media (max-width: 760px) {
  .chron-featured { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0 28px; }
  .chron-featured-head, .chron-head { align-items: flex-start; gap: 14px; }
  .chron-num { width: 60px; height: 60px;  }
  .chron-featured-title { font-size: clamp(28px, 8.5vw, 40px); }
  .chron-featured-title::before { transform: translate(2px, 2px); }
  .chron-article .page-title { font-size: clamp(28px, 8.5vw, 40px); }
}
@media (prefers-reduced-motion: reduce) { .chron-box { transition: none; } }

/* ── Le titre des fiches : en Arvo quand il s'écrit en lettres latines ──
   (les noms des pratiques sont dans leur langue d'origine : un nom en japonais,
   en arabe ou en géorgien garde le Garamond, Arvo n'a pas ces lettres) */
.panel-title.fiche-title.is-latin {
  position: relative;
  font-family: 'Arvo', Rockwell, Georgia, serif;
  font-weight: 700;  letter-spacing: 0;
    color: var(--ink-a);
}
@media (max-width: 760px) { .panel-title.fiche-title.is-latin {  } }
/* place pour les accents (Â, É) au-dessus des capitales du titre de fiche */

/* ── Barre des pages comme l'en-tête de la carte (14 novembre) ──
   Le nom et le sous-titre à gauche, les liens à droite, à côté de « Ajouter » et de la langue.
   Les liens sont du texte simple, sans cadre ; la page ouverte est soulignée. */
.site-page-nav { flex: 0 1 auto; margin-inline-start: auto; justify-content: flex-end; }
.site-page-nav button,
.site-page-nav .page-nav-map { border: 0; margin-inline-end: 0; }
.site-page-nav button:hover,
.site-page-nav .page-nav-map:hover { background: none; color: var(--ink-a); text-decoration: underline; text-underline-offset: 6px; }
.site-page-nav button[aria-current="page"] {
  background: none; color: var(--ink-a);
   text-decoration-thickness: 2px; text-underline-offset: 6px;
}
@media (max-width: 760px) {
  .site-page-nav { flex: 1 1 100%; margin-inline-start: 0; justify-content: space-between; }
}

/* ── Arvo à la place d'Anton (14 novembre) : mêmes places, tailles réduites ──
   Arvo est bien plus large qu'Anton (environ 1,4 fois) : à taille égale, les titres
   débordaient. Toutes les tailles de titres sont donc réduites d'environ un quart. */
.page-title, .chron-featured-title, .chron-num { font-weight: var(--title-w); }
.page-title { letter-spacing: 0; line-height: 1.08; }
.site-page-brand { font-size: 24px; }
.page-title { font-size: clamp(30px, 3.9vw, 54px); }
.page-h2 { font-size: 22px; }
.chron-row-title { font-size: 20px; }
.chron-num { font-size: 40px; }
.chron-featured-title { font-size: clamp(24px, 2.9vw, 40px); line-height: 1.1; }
.chron-article .page-title { font-size: clamp(26px, 3.2vw, 44px); }
@media (max-width: 1100px) { .site-page-brand { font-size: 18px; } }
@media (max-width: 760px) {
  .page-title { font-size: clamp(26px, 8vw, 34px); }
  .page-title[data-text="IS LAND PASTRY?"] { font-size: clamp(22px, 7vw, 30px); }
  .page-h2 { font-size: 19px; }
  .chron-num { font-size: 28px; }
  .chron-featured-title, .chron-article .page-title { font-size: clamp(22px, 6.4vw, 28px); }
}
