/*
Theme Name:   TimingTech Blocksy Child
Theme URI:    https://timingtechtuning.com
Description:  TimingTech Tuning's version-controlled control layer on top of the Blocksy parent theme. Owns child-scoped CSS/JS/hooks only; never modifies Blocksy parent files.
Author:       TimingTech Tuning
Template:     blocksy
Version:      0.20.10
Text Domain:  timingtech-blocksy-child
Requires PHP: 7.4
*/

/*
WEB-034 -- Elite Design Token Layer. FINAL (D3 resolved).

WEB-026 proposed three accent candidates and three display-face candidates
with no owner pick. WEB-034's own benchmark study
(docs/reports/WEB-034_ELITE_VISUAL_BENCHMARK.md Section 4) is the
evidence-driven design review that gate was waiting on, combined with the
one real-world signal that already existed: the homepage shipped with
Electric Cyan + Space Grotesk in WEBSITE-TRANCHE-004 and the owner reacted
positively to it in real use. Per the WEBSITE-TRANCHE-006 activation
prompt's own explicit authorization to finalize this kind of design
decision inside WEB-034 without an owner pause, this file now declares the
FINAL token layer: one primary accent (Electric Cyan), one secondary/heat
accent (Signal Orange, retired from "candidate" status and given a real
job -- see Section 6 of the benchmark report), Space Grotesk display /
Inter body, plus the layered material palette, depth, motion and media-ratio
tokens the elite visual doctrine calls for
(docs/prompts/active/WEBSITE-TRANCHE-006_activation_prompt.md Section 4/6/7).

This file still declares tokens only -- it carries zero rules that apply
them to rendered markup (that discipline, established in WEB-026, still
holds). Component-level rules live in assets/css/elite-tokens-runtime.css
(utility classes built ON these tokens), assets/css/elite-components.css
(reusable primitives) and assets/css/sitewide-content.css (Gutenberg-content
reskin), never here.
*/

:root {
	/* ================================================================
	 * MATERIAL PALETTE -- layered dark surfaces, not flat black.
	 * "Obsidian" is the deepest base; each step up is a lighter, slightly
	 * warmer step so stacked surfaces read as physical layers under light,
	 * not as arbitrary opacity. Kept backward-compatible with the original
	 * --tt-color-bg* / --tt-color-border names every existing template
	 * already references.
	 * ================================================================ */
	--tt-color-obsidian: #0b0c0e;      /* deepest base -- page background */
	--tt-color-charcoal: #131518;      /* first elevation -- section bands */
	--tt-color-graphite: #191c20;      /* second elevation -- cards, panels */
	--tt-color-gunmetal: #22262b;      /* third elevation -- raised/hover surfaces */
	--tt-color-metallic-grey: #3a3f46; /* borders/edges with real metallic presence */

	--tt-color-bg: var(--tt-color-obsidian);
	--tt-color-bg-elevated: var(--tt-color-graphite);
	--tt-color-bg-elevated-2: var(--tt-color-gunmetal);
	--tt-color-border: #2a2d31;
	--tt-color-border-metallic: var(--tt-color-metallic-grey);

	--tt-color-text: #f2f3f4;
	--tt-color-text-warm: #f5f1ea;     /* warm off-white for editorial contrast (Journal/quotes) */
	--tt-color-text-muted: #a6abb1;
	--tt-color-text-faint: #8a9098; /* WEB-026 repair: clears 4.5:1 WCAG AA on both --tt-color-bg and --tt-color-bg-elevated */

	/* --- Accent: FINAL. One primary, one secondary, used with discipline
	   (benchmark finding: G-POWER's single-accent consistency is the single
	   most achievable, most valuable borrow). --- */
	--tt-color-accent: #00d9ff;         /* Electric Cyan -- primary, sitewide */
	--tt-color-accent-heat: #ff4e1f;    /* Signal Orange -- rare emphasis only: one stat highlight, warnings, never a second "brand color" */
	--tt-color-depth-violet: #6a5cff;   /* cool violet/blue light -- gradients/glow only, never text or buttons */

	/* Legacy alias names retained so no existing file breaks; do not use
	   these names in new code, use --tt-color-accent / --tt-color-accent-heat. */
	--tt-color-accent-electric-cyan: var(--tt-color-accent);
	--tt-color-accent-workshop-amber: #ff8a3d;
	--tt-color-accent-signal-orange: var(--tt-color-accent-heat);

	/* --- Type: FINAL. Space Grotesk (Fontshare, free, OFL) display / Inter
	   (Google Fonts, free, OFL) body -- unchanged from the already-shipped,
	   positively-received homepage choice. --- */
	--tt-font-display: 'Space Grotesk', var(--tt-font-body);
	--tt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--tt-font-numeric: var(--tt-font-display); /* stat/power/torque callouts -- pair with .tt-numeric (tabular-nums) */
	--tt-font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', 'Roboto Mono', Consolas, 'Liberation Mono', monospace; /* WEBSITE-TRANCHE-011: restrained data/metric treatment (Section 12) -- a system monospace stack, not a webfont, so this adds zero network requests */

	/* --- Type scale: WEBSITE-TRANCHE-015 (owner video review, Section 3) --
	   rescaled down from the previous 1.25-ratio/16px-base ladder, which the
	   owner's own narrated screen recording showed rendering like a normal
	   site at excessive browser zoom on ordinary 14-15"/1366x768/1440x900
	   laptops. Every token name and every call site that references it is
	   unchanged -- only the pixel value each step resolves to shrinks --
	   so this one edit cascades density through every component/page built
	   on top of these tokens (elite-components.css, sitewide-content.css,
	   every page-*.php) without a second per-file pass. Desktop H1 usage
	   (--tt-text-5xl, service-page heroes) now lands at 48px, inside the
	   prompt's own explicit 46-56px target; H2 usage (--tt-text-4xl,
	   .tt-section-header h2/.tt-cta-band h2) lands at 36px, inside 30-40px;
	   H3-class usage (--tt-text-2xl, .tt-panel-link h3) lands at 24px,
	   inside 20-28px. Body copy (--tt-text-base) is intentionally left at
	   16px -- already inside the requested 15-16px range, and the prompt
	   explicitly warns against making type tiny. */
	--tt-text-xs: 0.75rem;    /* 12px */
	--tt-text-sm: 0.875rem;   /* 14px */
	--tt-text-base: 1rem;     /* 16px */
	--tt-text-lg: 1.125rem;   /* 18px (was 20px) */
	--tt-text-xl: 1.25rem;    /* 20px (was 25px) */
	--tt-text-2xl: 1.5rem;    /* 24px (was 31px) -- H3-class usage */
	--tt-text-3xl: 2.125rem;  /* 34px (was 39px) -- mobile H1 ceiling */
	--tt-text-4xl: 2.25rem;   /* 36px (was 49px) -- H2-class usage */
	--tt-text-5xl: 3rem;      /* 48px (was 61px) -- desktop H1 / hero display */
	--tt-text-6xl: 3.5rem;    /* 56px (was 76px) -- oversized editorial statements */
	--tt-text-7xl: 4rem;      /* 64px (was 95px) -- rare, one-per-page cinematic headline ceiling */

	--tt-leading-tight: 1.1;
	--tt-leading-snug: 1.3;
	--tt-leading-normal: 1.6;

	/* --- Spacing scale: 4px base grid. WEBSITE-TRANCHE-015 (owner video
	   review, Section 3): steps 7 and up rescaled down -- these are the
	   values every `.tt-section`/`.tt-service-hero`/`.tt-cta-band` vertical
	   padding call site resolves through, and at their previous values
	   (96px/128px/160px) a normal 2-3 section scroll already exceeded a
	   1366x768/1440x900 laptop viewport before any real content rendered.
	   Steps 1-6 (4px-32px, component gaps/card padding) are left unchanged
	   -- already inside the prompt's own 16-28px component-gap target where
	   they're actually used (space-4/space-5), and the prompt does not ask
	   for micro-spacing to shrink further. */
	--tt-space-1: 0.25rem;  /* 4px */
	--tt-space-2: 0.5rem;   /* 8px */
	--tt-space-3: 0.75rem;  /* 12px */
	--tt-space-4: 1rem;     /* 16px */
	--tt-space-5: 1.5rem;   /* 24px */
	--tt-space-6: 2rem;     /* 32px */
	--tt-space-7: 2.75rem;  /* 44px (was 48px) -- normal section padding, low end */
	--tt-space-8: 3.5rem;   /* 56px (was 64px) -- normal section padding, high end */
	--tt-space-9: 4.25rem;  /* 68px (was 96px) -- largest ordinary section padding, at the prompt's own 48-68px ceiling */
	--tt-space-10: 5rem;    /* 80px (was 128px) -- hero-scale padding */
	--tt-space-11: 6rem;    /* 96px (was 160px) -- cinematic section padding, still the largest step but no longer viewport-dominating */

	/* --- Radius scale (formalizes what was previously ad hoc 6/8/10px
	   literals scattered across front-page.php etc.) --- */
	--tt-radius-sm: 6px;
	--tt-radius-md: 8px;
	--tt-radius-lg: 10px;
	--tt-radius-xl: 16px;
	--tt-radius-pill: 999px;

	/* --- Shadow / depth scale -- real layered elevation, not one flat
	   drop-shadow reused everywhere. --- */
	--tt-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
	--tt-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.45);
	--tt-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.5);
	--tt-shadow-4: 0 24px 64px rgba(0, 0, 0, 0.55);
	--tt-shadow-glow-accent: 0 0 32px rgba(0, 217, 255, 0.25);
	--tt-shadow-glow-heat: 0 0 32px rgba(255, 78, 31, 0.2);

	/* --- Gradients as lighting, not decoration (doctrine Section 6) --- */
	--tt-gradient-hero-scrim: linear-gradient(90deg, rgba(11,12,14,0.96) 0%, rgba(11,12,14,0.78) 45%, rgba(11,12,14,0.35) 100%);
	--tt-gradient-radial-glow: radial-gradient(circle at 30% 20%, rgba(0, 217, 255, 0.16), transparent 60%);
	--tt-gradient-radial-heat: radial-gradient(circle at 70% 30%, rgba(255, 78, 31, 0.14), transparent 60%);
	--tt-gradient-metal-edge: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 12%);
	--tt-gradient-section-fade: linear-gradient(180deg, var(--tt-color-obsidian) 0%, var(--tt-color-charcoal) 100%);

	/* --- z-depth scale (formalizes stacking so header/modal/tooltip never
	   collide by accident across new components) --- */
	--tt-z-base: 0;
	--tt-z-raised: 10;
	--tt-z-nav: 100;
	--tt-z-overlay: 200;
	--tt-z-modal: 300;

	/* --- Media ratios -- consistent crop discipline across a small real
	   asset library (benchmark finding: consistent ratios matter more than
	   asset count). --- */
	--tt-ratio-hero: 21 / 9;
	--tt-ratio-wide: 16 / 9;
	--tt-ratio-card: 4 / 3;
	--tt-ratio-portrait: 3 / 4;
	--tt-ratio-square: 1 / 1;

	/* --- Motion/easing: understated and purposeful, extended with a
	   cinematic duration for hero/section reveals. --- */
	--tt-duration-fast: 120ms;
	--tt-duration-base: 200ms;
	--tt-duration-slow: 400ms;
	--tt-duration-cinematic: 900ms;
	--tt-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
	--tt-ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
	--tt-ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
	--tt-ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1); /* GSAP "expo.out"-shaped -- used by tt-motion.js reveals */
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--tt-duration-fast: 0ms;
		--tt-duration-base: 0ms;
		--tt-duration-slow: 0ms;
		--tt-duration-cinematic: 0ms;
	}
}

/*
No rule below this line applies any of the above tokens to rendered markup.
Child-scoped visual overrides live in assets/css/*.php -- not a parallel
copy of parent styles. This file is for overrides Blocksy's own settings UI
cannot express, and for the token declarations themselves.
*/
