/*
 * YDP token base + self-hosted fonts. Loads on EVERY page (tool pages
 * included — tokens and typography are the only things /tools/ may
 * receive from the theme). The --ydp-* block is verbatim FILE_4
 * section 3; fonts are the vendored woff2 pair harvested from
 * ydp-premium (amendment 3) — no hotlinks anywhere in shipped code.
 */

@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/plus-jakarta-sans-latin-400-800.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;
}

@font-face {
	font-family: 'Satisfy';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/satisfy-latin-400.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;
}

/* Bungee Inline (1.0.22): the letter-board mockup face of T21 (FILE_4 §4),
   which hotlinked Google Fonts. Declared here, fetched by the browser only
   on a page that sets text in it. SIL OFL 1.1: ../fonts/OFL-Bungee-Inline.txt */
@font-face {
	font-family: 'Bungee Inline';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/bungee-inline-latin-400.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;
}

/* Swap-period CLS guard: a metric-matched local stand-in that holds
   Satisfy's line box until the woff2 arrives. Numbers computed from
   the vendored woff2 vs the local face (hhea + OS/2 xAvgCharWidth):
   sizeAdjust = satisfy.avg/brush.avg, overrides = satisfy metric /
   (upm * sizeAdjust). No local face → the stack falls to cursive. */
@font-face {
	font-family: 'Satisfy Fallback';
	src: local('Brush Script MT'), local('BrushScriptMT');
	size-adjust: 118.04%;
	ascent-override: 79.17%;
	descent-override: 41.45%;
	line-gap-override: 1.41%;
}

/* 1.0.43 (m13): the same guard for the body face, which is now preloaded on
   every page. Arial stands in for Plus Jakarta Sans until the woff2 lands.
   Measured from the vendored woff2 and Windows' arial.ttf: the width ratio
   is the English-letter-frequency-weighted average advance (cmap + hmtx,
   space included), because Plus Jakarta's OS/2 xAvgCharWidth (585/1000)
   counts every glyph and would have said 132.53%; the overrides are its
   hhea metrics / (upm * sizeAdjust). (The same script reproduces the
   Satisfy numbers above exactly.) No local Arial (Android) -> the stack
   falls to sans-serif. */
@font-face {
	font-family: 'Plus Jakarta Sans Fallback';
	src: local('Arial'), local('ArialMT');
	size-adjust: 105.07%;
	ascent-override: 98.79%;
	descent-override: 21.13%;
	line-gap-override: 0%;
}

:root {
	--ydp-bg: #0a0a1a;
	/* second background tone: the party-shop garment collar cut-outs
	   (.sh-tee u / .sh-hood::after) paint with it; undefined in the
	   design-lab source, so the card-light family value stands in */
	--ydp-bg-2: #1a1a2e;
	--ydp-card: #12122a;
	--ydp-card-light: #1a1a2e;
	--ydp-gold: #e2b04a;
	--ydp-gold-light: #f5cc7a;
	--ydp-orange: #ff6b2b;
	--ydp-orange-dark: #e55a1f;
	--ydp-text: #f0e6d3;
	--ydp-muted: #8892a4;
	--ydp-success: #4caf82;
	--ydp-warning: #f5a623;
	--ydp-error: #e55a1f;
	--ydp-border: rgba(226, 176, 74, 0.15);
	--ydp-border-active: rgba(226, 176, 74, 0.5);
	--ydp-border-hover: rgba(226, 176, 74, 0.3);
	--ydp-gradient-hero: linear-gradient(135deg, #08080f 0%, #1a0a2e 40%, #08080f 100%);
	--ydp-gradient-gold: linear-gradient(135deg, #e2b04a, #f5cc7a, #c49a3a);
	--ydp-gradient-cta: linear-gradient(135deg, #ff6b2b, #ff8c42);
	--ydp-gradient-card: linear-gradient(135deg, #1a0a2e, #2d1b3d);
	--ydp-radius: 20px;
	--ydp-radius-sm: 12px;
	--ydp-radius-xs: 8px;
	--ydp-transition: all 0.3s ease;
	--ydp-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	--ydp-shadow-gold: 0 0 40px rgba(226, 176, 74, 0.2);
	--ydp-font-display: 'Satisfy', 'Satisfy Fallback', cursive;
	--ydp-font-body: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', sans-serif;
}
