/*
 * Fontes oficiais da marca Yasmim Coelho (arquivos nesta pasta).
 * Os nomes dos arquivos foram corrigidos a partir da tabela interna de cada .otf
 * (os originais em material_base/ estavam com nomes trocados).
 * Falta: Articulat CF Light (300) regular — arquivo original corrompido.
 *        Enquanto isso, peso 300 cai no ExtraLight/Regular mais próximo.
 * "Normal" (ArticulatCF-Normal.otf) não está mapeado: a família usa Regular como 400.
 */
/* Qilua é estreita e de traço fino: no mesmo tamanho, "Yasmim Coelho" ocupa 443px contra 697px
   na Articulat (medido). O size-adjust aumenta a manuscrita em 30% em TODO lugar (D-023),
   então em text-c-h3 ela já aparece com o peso visual de um h2. */
@font-face {
  font-family: 'Qilua Vermont';
  src: url('QiluaVermont.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
  size-adjust: 130%;
}
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-ExtraLight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-DemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-ExtraBold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-Heavy.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-ThinOblique.otf') format('opentype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-ExtraLightOblique.otf') format('opentype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-LightOblique.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-RegularOblique.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-MediumOblique.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-DemiBoldOblique.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-BoldOblique.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-ExtraBoldOblique.otf') format('opentype'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('ArticulatCF-HeavyOblique.otf') format('opentype'); font-weight: 900; font-style: italic; font-display: swap; }

/* ============================================================
 * Tipografia mista na mesma linha (D-024)
 * Medido a 100px (com o size-adjust acima):
 *   Articulat  x-height 52 · minúsculas pousam na linha de base (0)
 *   Fraunces   x-height 45 · pousa na base (0)
 *   Qilua      x-height 43 · minúsculas FLUTUAM 24px acima da base
 * As regras valem só para trechos INLINE dentro de uma linha de texto. Em bloco ou
 * flex, o vertical-align é ignorado. :where() zera a especificidade, então qualquer
 * classe de tamanho do Tailwind (text-c-*, text-[..]) vence.
 * ============================================================ */
:where(span, em, i, b, strong, a, mark).font-script {
  font-size: 1.2em;          /* iguala a x-height à da sans (43 × 1.2 ≈ 52) */
  vertical-align: -0.24em;   /* pousa a manuscrita na linha de base */
  line-height: 1;            /* não abre a entrelinha da linha mista */
}
:where(span, em, i, b, strong, a, mark).font-serif {
  font-size: 1.12em;         /* iguala a x-height da Fraunces à da sans (45 × 1.12 ≈ 50) */
  line-height: 1;
}

/* A Qilua só tem peso 400: dentro de títulos semibold o navegador inventava um negrito
   falso (borrado). Aqui ela fica sempre no desenho original. */
:where(.font-script) { font-weight: 400; font-synthesis: none; }
