/* Ethiopian Custom Fonts */

/*
 * Noto Sans Ethiopic and Noto Serif Ethiopic are NOT declared here any more.
 * They carry the interface text, so they moved to src/index.css, which ships in
 * the bundled stylesheet and is known before first paint. This file is fetched
 * asynchronously from the foot of the body; a face declared here arrives too
 * late to dress the first render. Re-declaring either family below would also
 * overwrite the size-adjust that squares the fidel with the Latin, because this
 * file cascades after the bundle. Leave them where they are.
 *
 * What remains here is the display and specimen faces: wanted rarely, tolerant
 * of arriving late.
 */

/* Abba Garima - Elegant Traditional */
@font-face {
  font-family: 'Abba Garima';
  src: url('./Fonts/BlackFoundry/AbbaGarima-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Mulat Abay - Modern Ethiopian */
@font-face {
  font-family: 'Mulat Abay';
  src: url('./Fonts/Mulat/MulatAbay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulat Abay';
  src: url('./Fonts/Mulat/MulatAbay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Geez Handwriting - Educational/Handwritten Style */
@font-face {
  font-family: 'Geez Handwriting';
  src: url('./Fonts/EducationalFonts/GeezHandwriting.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Abyssinica SIL - Academic/Research */
@font-face {
  font-family: 'Abyssinica SIL';
  src: url('./Fonts/SIL/AbyssinicaSIL-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Chiret - Modern Ethiopian */
@font-face {
  font-family: 'Chiret';
  src: url('./Fonts/MetaAppz/Chiret-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* CSS Custom Properties for Ethiopian Fonts */
:root {
  --font-ethiopic-sans: 'Noto Sans Ethiopic', sans-serif;
  --font-ethiopic-serif: 'Noto Serif Ethiopic', serif;
  --font-ethiopic-traditional: 'Abba Garima', serif;
  --font-ethiopic-modern: 'Mulat Abay', sans-serif;
  --font-ethiopic-handwriting: 'Geez Handwriting', cursive;
  --font-ethiopic-academic: 'Abyssinica SIL', serif;
}

/* Utility classes for Ethiopian fonts */
.font-ethiopic-sans {
  font-family: var(--font-ethiopic-sans);
}

.font-ethiopic-serif {
  font-family: var(--font-ethiopic-serif);
}

.font-ethiopic-traditional {
  font-family: var(--font-ethiopic-traditional);
}

.font-ethiopic-modern {
  font-family: var(--font-ethiopic-modern);
}

.font-ethiopic-handwriting {
  font-family: var(--font-ethiopic-handwriting);
}

.font-ethiopic-academic {
  font-family: var(--font-ethiopic-academic);
}

/* Inter Font Family.
 *
 * Subsetted to Latin by scripts/subset-fonts.py -- the shipped files carried
 * Cyrillic, Greek and Vietnamese at ~138 KB a weight, for a site that publishes
 * in English and Amharic (and Amharic is Noto Ethiopic's job; Inter has no
 * Ethiopic at all). Now ~40 KB a weight.
 *
 * Weights 300 and 900 were declared here but nothing in src/ ever asked for
 * them, so they are gone. The .woff2 files remain on disk; re-add a block here
 * and re-run the subsetter if a weight is ever needed.
 */
@font-face {
  font-family: 'Inter';
  src: url('./Fonts/inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./Fonts/inter/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./Fonts/inter/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./Fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
