/**
 * /characterforge/css/fonts.css
 * Self-hosted site fonts: Philosopher (headings), Alegreya (body) and Grenze Gotisch
 * (display lettering), latin and latin-ext subsets, from Google Fonts (SIL Open Font
 * License; see the OFL.txt in each /characterforge/fonts/ folder). Loaded by global.css. Families are used
 * through --font-heading, --font-body and --font-display, defined here so any
 * page that loads this file gets them.
 */

/* size-adjust scales the whole font (user decision 2026-11-26): Alegreya and Philosopher
   draw smaller than the fonts they replaced (Segoe UI, Cinzel) at the same font-size,
   so they are drawn 8% and 12% larger everywhere. Change it here, not per page. */
:root {
    /* The site font settings. Name fonts through these, never by family name (see design.md). */
    --font-body: 'Alegreya', Georgia, 'Times New Roman', serif;
    --font-heading: 'Philosopher', serif;
    --font-display: 'Grenze Gotisch', 'Philosopher', serif; /* major page titles only */
}

/* 'Philosopher' italic 400 - latin-ext */
@font-face {
    font-family: 'Philosopher';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    size-adjust: 112%;
    src: url('/characterforge/fonts/philosopher/philosopher-italic-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Philosopher' italic 400 - latin */
@font-face {
    font-family: 'Philosopher';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    size-adjust: 112%;
    src: url('/characterforge/fonts/philosopher/philosopher-italic-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 'Philosopher' italic 700 - latin-ext */
@font-face {
    font-family: 'Philosopher';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    size-adjust: 112%;
    src: url('/characterforge/fonts/philosopher/philosopher-italic-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Philosopher' italic 700 - latin */
@font-face {
    font-family: 'Philosopher';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    size-adjust: 112%;
    src: url('/characterforge/fonts/philosopher/philosopher-italic-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 'Philosopher' normal 400 - latin-ext */
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    size-adjust: 112%;
    src: url('/characterforge/fonts/philosopher/philosopher-normal-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Philosopher' normal 400 - latin */
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    size-adjust: 112%;
    src: url('/characterforge/fonts/philosopher/philosopher-normal-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 'Philosopher' normal 700 - latin-ext */
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    size-adjust: 112%;
    src: url('/characterforge/fonts/philosopher/philosopher-normal-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Philosopher' normal 700 - latin */
@font-face {
    font-family: 'Philosopher';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    size-adjust: 112%;
    src: url('/characterforge/fonts/philosopher/philosopher-normal-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 'Alegreya' italic 400 900 - latin-ext */
@font-face {
    font-family: 'Alegreya';
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    size-adjust: 108%;
    src: url('/characterforge/fonts/alegreya/alegreya-italic-400-900-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Alegreya' italic 400 900 - latin */
@font-face {
    font-family: 'Alegreya';
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    size-adjust: 108%;
    src: url('/characterforge/fonts/alegreya/alegreya-italic-400-900-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 'Alegreya' normal 400 900 - latin-ext */
@font-face {
    font-family: 'Alegreya';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    size-adjust: 108%;
    src: url('/characterforge/fonts/alegreya/alegreya-normal-400-900-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Alegreya' normal 400 900 - latin */
@font-face {
    font-family: 'Alegreya';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    size-adjust: 108%;
    src: url('/characterforge/fonts/alegreya/alegreya-normal-400-900-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 'Grenze Gotisch' normal 100 900 - latin-ext */
@font-face {
    font-family: 'Grenze Gotisch';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/characterforge/fonts/grenzegotisch/grenzegotisch-normal-100-900-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 'Grenze Gotisch' normal 100 900 - latin */
@font-face {
    font-family: 'Grenze Gotisch';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/characterforge/fonts/grenzegotisch/grenzegotisch-normal-100-900-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Page labels: Grenze Gotisch for the label at the top of a page or builder tab.
   Kept here so every page that loads the fonts has it; other headings use --font-heading (design.md). */
.forge-display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
}
