/*
Theme Name: Tech Aware Nepal Platform
Theme URI: https://techawarenepal.org/
Author: Tech Aware Nepal
Author URI: https://techawarenepal.org/
Description: The Tech Aware Nepal platform: cybersecurity awareness, digital literacy, security alerts, educational resources, awareness activities and technology news for Nepal. Navy and cyan design system with a light reading mode. Pairs with the Tech Aware Nepal Platform plugin.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techawarenepal
Tags: news, education, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, dark-mode, accessibility-ready
*/

/* ==========================================================================
   Design tokens
   Dark navy is the brand default; data-theme="light" is the reading mode.
   ========================================================================== */
:root {
	/* Typography */
	--tan-font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tan-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
	--tan-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--tan-fs-xs: 0.75rem;
	--tan-fs-sm: 0.875rem;
	--tan-fs-base: 1rem;
	--tan-fs-md: 1.125rem;
	--tan-fs-lg: 1.375rem;
	--tan-fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	--tan-fs-2xl: clamp(1.85rem, 1.4rem + 2vw, 2.75rem);
	--tan-fs-3xl: clamp(2.3rem, 1.5rem + 3.6vw, 4rem);
	--tan-lh-tight: 1.15;
	--tan-lh-body: 1.7;

	/* Spacing scale (4px base) */
	--tan-space-1: 0.25rem;
	--tan-space-2: 0.5rem;
	--tan-space-3: 0.75rem;
	--tan-space-4: 1rem;
	--tan-space-5: 1.5rem;
	--tan-space-6: 2rem;
	--tan-space-7: 3rem;
	--tan-space-8: 4rem;
	--tan-space-9: 6rem;

	/* Layout */
	--tan-container: 1240px;
	--tan-measure: 72ch;
	--tan-radius: 12px;
	--tan-radius-sm: 8px;
	--tan-header-h: 68px;
	--tan-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	/* Brand palette (fixed) */
	--color-primary: #071426;
	--color-secondary: #0B1F35;
	--color-surface: #10243B;
	--color-accent: #00D4FF;
	--color-blue: #2878FF;

	/* Semantic tokens — dark (default) */
	--tan-bg: #071426;
	--tan-surface: #0B1F35;
	--tan-surface-2: #10243B;
	--tan-glass: rgba(16, 36, 59, 0.72);
	--tan-text: #FFFFFF;
	--tan-text-2: #D3DEEA;
	--tan-muted: #AAB8C8;
	--tan-border: rgba(255, 255, 255, 0.12);
	--tan-border-strong: rgba(255, 255, 255, 0.55);
	--tan-accent: #00D4FF;
	--tan-accent-ink: #04111F;
	--tan-accent-soft: rgba(0, 212, 255, 0.12);
	--tan-blue: #2878FF;
	--tan-link: #5FDBFF;
	--tan-focus: #00D4FF;
	--tan-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.28);
	--tan-shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 48px rgba(0, 0, 0, 0.45);
	--tan-glow: 0 0 0 1px rgba(0, 212, 255, 0.35), 0 10px 40px rgba(0, 212, 255, 0.18);

	--tan-sev-critical: #FF5C6C;
	--tan-sev-high: #FF9F43;
	--tan-sev-medium: #FACC15;
	--tan-sev-advisory: #5FA8FF;
	--tan-ok: #34D399;

	color-scheme: dark;
}

/* Light reading mode */
:root[data-theme="light"] {
	--tan-bg: #F4F7FB;
	--tan-surface: #FFFFFF;
	--tan-surface-2: #EAF0F7;
	--tan-glass: rgba(255, 255, 255, 0.8);
	--tan-text: #071426;
	--tan-text-2: #1E3350;
	--tan-muted: #4E6077;
	--tan-border: #D5DFEA;
	--tan-border-strong: #071426;
	--tan-accent: #0369A1;
	--tan-accent-ink: #FFFFFF;
	--tan-accent-soft: #E0F2FE;
	--tan-blue: #1D5FD6;
	--tan-link: #0B5CAD;
	--tan-focus: #0369A1;
	--tan-shadow: 0 1px 2px rgba(7, 20, 38, 0.06), 0 6px 18px rgba(7, 20, 38, 0.06);
	--tan-shadow-lift: 0 2px 6px rgba(7, 20, 38, 0.08), 0 16px 40px rgba(7, 20, 38, 0.12);
	--tan-glow: 0 0 0 1px rgba(3, 105, 161, 0.3), 0 10px 30px rgba(3, 105, 161, 0.12);

	--tan-sev-critical: #B42318;
	--tan-sev-high: #B54708;
	--tan-sev-medium: #8A6100;
	--tan-sev-advisory: #1D5FD6;
	--tan-ok: #067647;

	color-scheme: light;
}

/* Main styles: assets/css/main.css (base) + assets/css/platform.css (navy system) */
