/*
 * aurbis font bundle — @font-face declarations
 *
 * Every CEF overlay imports this file before writing any CSS. The
 * `font-family` tokens below are the ONLY font names overlays should
 * reference — do NOT @font-face anything inline in an overlay.
 *
 * Paths are relative to this file, which sits at cef/assets/fonts.css.
 * Overlay CSS can load it via:
 *   @import url("../assets/fonts.css");
 * or with a <link rel="stylesheet" href="../assets/fonts.css"> tag.
 *
 * All fonts are SIL OFL 1.1. License and per-font attribution live in
 * fonts/<name>/README.md and fonts/OFL-1.1.txt.
 *
 * Feature settings documented at the bottom of this file.
 */

/* === Cinzel — display / headings / mastheads / faction titles === */

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel/Cinzel-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel/Cinzel-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel/Cinzel-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel/Cinzel-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel/Cinzel-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* === IM Fell English — decorative paper ephemera / marginalia === */

@font-face {
  font-family: "IM Fell English";
  src: url("fonts/im-fell-english/IMFellEnglish-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IM Fell English";
  src: url("fonts/im-fell-english/IMFellEnglish-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* === Sovngarde — Nordic surface body (chat, event log, cards) === */

@font-face {
  font-family: "Sovngarde";
  src:
    url("fonts/sovngarde/Sovngarde-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sovngarde";
  src:
    url("fonts/sovngarde/Sovngarde-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === EB Garamond — clean body / default readable UI text === */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond/EBGaramond-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond/EBGaramond-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond/EBGaramond-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond/EBGaramond-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*
 * ===============================================================
 * Canonical font-family tokens
 * ===============================================================
 *
 * Use these via CSS custom properties rather than referencing the
 * font-family strings directly. Overlays set the value on the
 * :root, body, or individual surfaces. The mapping lives here so
 * that future font substitution happens in one place.
 */

:root {
  --font-display: "Cinzel", "EB Garamond", Georgia, serif;
  --font-nordic-body: "Sovngarde", "EB Garamond", Georgia, serif;
  --font-parchment-body: "EB Garamond", Georgia, serif;
  --font-clean-body: "EB Garamond", Georgia, serif;
}

/*
 * ===============================================================
 * OpenType feature utility classes
 * ===============================================================
 */

.tabular {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.smallcaps {
  font-feature-settings: "smcp";
  font-variant-caps: small-caps;
}

.oldstyle {
  font-feature-settings: "onum";
  font-variant-numeric: oldstyle-nums;
}

.ligatures {
  font-feature-settings: "liga", "dlig";
  font-variant-ligatures: common-ligatures discretionary-ligatures;
}
