/*
Theme Name: Tech Aware Nepal
Theme URI: https://techawarenepal.org/
Author: Tech Aware Nepal
Author URI: https://techawarenepal.org/
Description: A fast, AdSense-safe magazine theme for Tech Aware Nepal: technology news, gadget reviews with NPR pricing and verdict scores, digital safety guides, and cybersecurity threat alerts for Nepal.
Version: 1.1.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, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
: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", 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-lh-tight: 1.2;
	--tan-lh-body: 1.7;

	/* Spacing scale */
	--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;

	/* Layout */
	--tan-container: 1240px;
	--tan-measure: 72ch;
	--tan-radius: 8px;
	--tan-radius-sm: 5px;
	--tan-header-h: 64px;

	/* Light palette */
	--tan-bg: #f6f6f3;
	--tan-surface: #ffffff;
	--tan-surface-2: #f0f0ec;
	--tan-text: #0c0e12;
	--tan-text-2: #2b3038;
	--tan-muted: #565d68;
	--tan-border: #dcdcd6;
	--tan-border-strong: #0c0e12;
	--tan-accent: #c8102e;
	--tan-accent-ink: #ffffff;
	--tan-accent-soft: #fde8eb;
	--tan-link: #003893;
	--tan-focus: #003893;
	--tan-shadow: 0 1px 2px rgba(12, 14, 18, 0.06), 0 4px 16px rgba(12, 14, 18, 0.05);
	--tan-shadow-lift: 0 2px 4px rgba(12, 14, 18, 0.06), 0 12px 32px rgba(12, 14, 18, 0.1);

	/* Severity */
	--tan-sev-critical: #b00020;
	--tan-sev-high: #c2410c;
	--tan-sev-medium: #a16207;
	--tan-sev-advisory: #1d4ed8;
	--tan-ok: #15803d;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--tan-bg: #0d1015;
	--tan-surface: #151a21;
	--tan-surface-2: #1c222b;
	--tan-text: #e8eaed;
	--tan-text-2: #c9ced5;
	--tan-muted: #9aa3ad;
	--tan-border: #2a313b;
	--tan-border-strong: #e8eaed;
	--tan-accent: #ff4d5e;
	--tan-accent-ink: #12060a;
	--tan-accent-soft: #3a1419;
	--tan-link: #8db8ff;
	--tan-focus: #8db8ff;
	--tan-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
	--tan-shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.45);

	--tan-sev-critical: #ff5c6c;
	--tan-sev-high: #fb923c;
	--tan-sev-medium: #facc15;
	--tan-sev-advisory: #60a5fa;
	--tan-ok: #4ade80;

	color-scheme: dark;
}

/* System preference fallback (before JS sets data-theme, or with JS off) */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--tan-bg: #0d1015;
		--tan-surface: #151a21;
		--tan-surface-2: #1c222b;
		--tan-text: #e8eaed;
		--tan-text-2: #c9ced5;
		--tan-muted: #9aa3ad;
		--tan-border: #2a313b;
		--tan-border-strong: #e8eaed;
		--tan-accent: #ff4d5e;
		--tan-accent-ink: #12060a;
		--tan-accent-soft: #3a1419;
		--tan-link: #8db8ff;
		--tan-focus: #8db8ff;
		--tan-sev-critical: #ff5c6c;
		--tan-sev-high: #fb923c;
		--tan-sev-medium: #facc15;
		--tan-sev-advisory: #60a5fa;
		--tan-ok: #4ade80;
		color-scheme: dark;
	}
}

/* Main styles live in assets/css/main.css */
