/* EY Interstate font + EY yellow accent overrides for EYDS Git.
   Loaded after the theme CSS via custom/templates/custom/header.tmpl. */

/* ---- EY Interstate web font (TrueType) ----
   Deliberately mapped LIGHTER per request: regular/normal text renders in the
   Light face (~300) and bold text in the Regular face (~400-500). EY Interstate
   ships only Light(300)/Regular(400)/Bold(700) — no Medium(500) — so the Light
   face answers all weights up to 400 (regular) and the Regular face answers
   everything above (bold/medium/semibold). The Bold(700) TTFs are left on disk
   but intentionally not referenced. */
@font-face {
	font-family: "EY Interstate";
	src: url("/assets/fonts/EYINTERSTATE-LIGHT.TTF") format("truetype");
	font-weight: 100 400;   /* normal/regular -> Light */
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "EY Interstate";
	src: url("/assets/fonts/EYINTERSTATE-LIGHTITALIC.TTF") format("truetype");
	font-weight: 100 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "EY Interstate";
	src: url("/assets/fonts/EYINTERSTATE-REGULAR.TTF") format("truetype");
	font-weight: 401 900;   /* bold/medium/semibold -> Regular (a lighter bold) */
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "EY Interstate";
	src: url("/assets/fonts/EYINTERSTATE-ITALIC.TTF") format("truetype");
	font-weight: 401 900;
	font-style: italic;
	font-display: swap;
}

/* ---- Variable overrides ----
   Forced forgejo-dark defines these on :root; this file loads afterwards, so an
   equal-specificity :root block wins. html[data-theme] is added for safety. */
:root,
html[data-theme="forgejo-dark"] {
	/* Fonts (code/monospace intentionally left untouched) */
	--fonts-regular: "EY Interstate", -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
	--fonts-proportional: var(--fonts-regular);

	/* Lighter weight scale: regular = 300, bold = 500 (maps to faces above) */
	--font-weight-light: 300;
	--font-weight-normal: 300;
	--font-weight-medium: 400;
	--font-weight-semibold: 500;
	--font-weight-bold: 500;

	/* EY yellow accent, tuned for a dark background */
	--color-primary: #ffe600;
	--color-primary-contrast: #1a1a24;   /* dark label on yellow buttons */
	--color-primary-dark-1: #fff04d;     /* hover/emphasis = brighter on dark theme */
	--color-primary-dark-2: #fff266;
	--color-primary-dark-3: #fff480;
	--color-primary-dark-4: #fff699;
	--color-primary-light-1: #e6cf00;
	--color-primary-light-2: #ccb800;
	--color-primary-light-3: rgba(255, 230, 0, .55);
	--color-primary-light-4: rgba(255, 230, 0, .40);
	--color-primary-light-5: rgba(255, 230, 0, .22);
	--color-primary-light-6: rgba(255, 230, 0, .12);
	--color-primary-light-7: rgba(255, 230, 0, .06);
	--color-accent: #ffe600;
	--color-small-accent: rgba(255, 230, 0, .22);
	--color-highlight-fg: #ffe600;
	--color-highlight-bg: rgba(255, 230, 0, .12);
}

/* Base body weight = 300, catching any element that uses a literal normal weight */
body {
	font-weight: var(--font-weight-normal);
}
