/*
 * WRite 2.0 — self-hosted font declarations.
 *
 * Each @font-face starts with local("Foo") so the browser prefers an OS-installed
 * font over the URL. If the URL file is missing from /public/fonts/, the local()
 * lookup silently fails too and the stack in index.css falls through to system
 * fonts — no font-decode errors in the console.
 *
 * To install proper webfonts:
 *   1. License Söhne (Klim) + GT Sectra (Grilli) — OR —
 *   2. Use free fallbacks: Inter Tight + Source Serif 4
 *
 * Drop the files in this directory matching the names below; they'll load
 * automatically.
 */

/* === Sans (UI body) === */
@font-face {
  font-family: "Söhne";
  src: local("Söhne Buch"), local("Söhne"),
    url("/fonts/sohne-buch.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: local("Söhne Kräftig"), local("Söhne Medium"),
    url("/fonts/sohne-kraftig.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: local("Söhne Halbfett"), local("Söhne Semibold"),
    url("/fonts/sohne-halbfett.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Free fallback for sans */
@font-face {
  font-family: "Inter Tight";
  src: local("Inter Tight Regular"), local("Inter Tight"),
    url("/fonts/inter-tight-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: local("Inter Tight Medium"),
    url("/fonts/inter-tight-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: local("Inter Tight SemiBold"), local("Inter Tight Semibold"),
    url("/fonts/inter-tight-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* === Serif (display + letter body) === */
@font-face {
  font-family: "GT Sectra";
  src: local("GT Sectra Regular"), local("GT Sectra"),
    url("/fonts/gt-sectra-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Free serif fallback */
@font-face {
  font-family: "Source Serif 4";
  src: local("Source Serif 4 Regular"), local("Source Serif 4"),
    local("Source Serif Pro"),
    url("/fonts/source-serif-4-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4 Display";
  src: local("Source Serif 4 Display Regular"),
    local("Source Serif 4 Display"),
    url("/fonts/source-serif-4-display-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === Mono (IDs, case numbers) === */
@font-face {
  font-family: "JetBrains Mono";
  src: local("JetBrains Mono Regular"), local("JetBrains Mono"),
    url("/fonts/jetbrains-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: local("JetBrains Mono Medium"),
    url("/fonts/jetbrains-mono-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
