/*
Egner Epithetik Template
creation Date: 2026-11-12
Author: Sebastian Osinski
http://www.sebbi.net
https://ddm-friends.de
*/

/* ===========================================================================
   FONTS
   Two families, all local woff2 (SIL Open Font License, see font/OFL-*.txt):
     Newsreader   headlines and quotes. A text serif with the warmth of
                  hand craft - ties medicine and craftsmanship together.
                  10pt Medium (500) + Medium Italic (quotes).
     Fira Sans    body text and UI. Light (300) for reading text and lead,
                  Regular (400) for UI, small text and labels (Light is too
                  thin below 16px), Medium (500) for emphasis.

   Paths are relative to this file (css/ -> font/).
   font-display: swap - text shows immediately, the font follows.
   =========================================================================== */
@font-face {
	font-family: "Newsreader";
	src: url("../font/Newsreader_10pt-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("../font/Newsreader_10pt-MediumItalic.woff2") format("woff2");
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Fira Sans";
	src: url("../font/FiraSans-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fira Sans";
	src: url("../font/FiraSans-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fira Sans";
	src: url("../font/FiraSans-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}


/* ===========================================================================
   GLOBAL TYPE ROLES
   Every font value on the site comes from these variables. Sections never
   set their own sizes - they use the role classes from template.css
   (h1-h6, .font_display, .font_h1-.font_h6, .font_quote, .font_l, .font_s,
   .font_ui). A role therefore changes in exactly one place.

   Role             Font / weight                Size (mobile - desktop)  Line
   Display          Newsreader Medium            44 - 80 px               1.04
   H1               Newsreader Medium            38 - 60 px               1.08
   H2               Newsreader Medium            30 - 42 px               1.15
   H3               Newsreader Medium            24 - 28 px               1.25
   H4               Newsreader Medium            22 px                    1.3
   H5               Fira Sans Medium             18 px                    1.4
   H6 / kicker      Fira Sans Regular, umber     15 px                    1.4
   Quote            Newsreader Medium Italic     28 - 44 px               1.2
   Lead             Fira Sans Light              20 - 23 px               1.55
   Body             Fira Sans Light              17 - 18 px               1.7
   Small            Fira Sans Regular            15 px                    1.55
   UI (nav/button)  Fira Sans Regular            16 px                    1.3

   Headlines scale fluidly with clamp(); body text drops to 17px below
   600px (responsive.css). Sentence case everywhere - no all-caps labels.
   =========================================================================== */
:root {
	--font-head: "Newsreader", Georgia, "Times New Roman", serif;
	--font-text: "Fira Sans", "Helvetica Neue", Arial, sans-serif;

	/* weights */
	--weight-head: 500;     /* headlines, quotes */
	--weight-text: 300;     /* body text, lead */
	--weight-ui: 400;       /* navigation, buttons, small text, labels */
	--weight-strong: 500;   /* emphasis in body text, H5 */

	/* sizes and line heights */
	--fs-display: clamp(44px, 1.6rem + 3.6vw, 80px);
	--lh-display: 1.04;
	--fs-h1: clamp(38px, 1.5rem + 2.4vw, 60px);
	--lh-h1: 1.08;
	--fs-h2: clamp(30px, 1.3rem + 1.3vw, 42px);
	--lh-h2: 1.15;
	--fs-h3: clamp(24px, 1.2rem + 0.5vw, 28px);
	--lh-h3: 1.25;
	--fs-h4: 22px;
	--lh-h4: 1.3;
	--fs-h5: 18px;
	--lh-h5: 1.4;
	--fs-h6: 15px;
	--lh-h6: 1.4;
	--fs-quote: clamp(28px, 1.3rem + 1.4vw, 44px);
	--lh-quote: 1.2;

	--fs-lead: clamp(20px, 1.1rem + 0.3vw, 23px);
	--lh-lead: 1.55;
	--fs-text: 18px;
	--lh-text: 1.7;
	--fs-small: 15px;
	--lh-small: 1.55;
	--fs-ui: 16px;
	--lh-ui: 1.3;
	--fs-field: 17px;       /* form field input */

	/* letter spacing */
	--ls-display: -0.02em;
	--ls-head: -0.012em;
	--ls-kicker: 0.02em;
	--ls-ui: 0.01em;
}
