/* StackForge Portfolio — design tokens. */

/* ---- Neutral scale ---- */
:root {
--n-000:#FFFFFF;
--n-50:#F9FAFB;
--n-100:#F1F5F9;
--n-200:#E2E8F0;
--n-300:#CBD5E1;
--n-400:#94A3B8;
--n-500:#64748B;
--n-600:#475569;
--n-700:#334155;
--n-800:#1E293B;
--n-900:#0F172A;
--n-950:#0C1527;

/* ---- Blue — WordPress brand blue ---- */
--blue-50:#EFF6FF;
--blue-100:#DBEAFE;
--blue-200:#BFDBFE;
--blue-300:#93C5FD;
--blue-400:#60A5FA;
--blue-500:#3B82F6;
--blue-600:#2563EB;
--blue-700:#1D4ED8;
--blue-800:#1E40AF;
--blue-900:#1E3A8A;

/* ---- Legacy aliases — keep so existing CSS references resolve ---- */
--indigo-200:var(--blue-100);
--indigo-300:var(--blue-300);
--indigo-400:var(--blue-500);
--indigo-500:var(--blue-600);
--indigo-600:var(--blue-700);
--indigo-700:var(--blue-800);
--cyan-400:var(--blue-400);
--cyan-500:var(--blue-500);
--cyan-600:var(--blue-600);
--gold-200:var(--blue-100);--gold-300:var(--blue-300);--gold-400:var(--blue-500);--gold-500:var(--blue-600);--gold-600:var(--blue-700);--gold-700:var(--blue-800);
--accent-400:var(--blue-500);--accent-500:var(--blue-600);--accent-600:var(--blue-700);

/* ---- Semantic surfaces (light is default) ---- */
--surface-page:#FFFFFF;
--surface-raised:#FFFFFF;
--surface-card:#FFFFFF;
--surface-card-hover:#F9FAFB;
--surface-inset:#F1F5F9;
--surface-tint:#EFF6FF;
--surface-row-odd:rgba(37,99,235,.02);
--surface-invert:#0C1527;
--surface-dark:#0C1527;
--scrim-heavy:rgba(0,0,0,.70);
--scrim-soft:rgba(0,0,0,.35);
--surface-chip:#EFF6FF;
--surface-row-highlight:#EFF6FF;
--surface-table-head:#F1F5F9;
--surface-disabled:#E2E8F0;

/* ---- Semantic text ---- */
--text-primary:#0F172A;
--text-body:#334155;
--text-secondary:#475569;
--text-muted:#94A3B8;
--text-disabled:#CBD5E1;
--text-accent:#2563EB;
--text-on-brand:#FFFFFF;
--text-on-gold:#FFFFFF;
--text-on-accent:#FFFFFF;
--text-on-dark:#F1F5F9;
--text-link:#2563EB;
--text-link-hover:#1D4ED8;
--text-on-invert:#F1F5F9;

/* ---- Borders / dividers ---- */
--border-subtle:#F1F5F9;
--border-default:#E2E8F0;
--border-strong:#CBD5E1;
--border-gold:var(--blue-600);
--border-brand:var(--blue-600);
--border-blue:#DBEAFE;
--divider-table:#E2E8F0;

/* ---- Interaction + chip fills ---- */
--state-hover:rgba(37,99,235,.04);
--state-active:rgba(37,99,235,.08);
--state-hover-strong:rgba(37,99,235,.06);

/* ---- Focus ---- */
--focus-ring:#2563EB;
--focus-ring-invert:#60A5FA;

/* ---- Gradients ---- */
--grad-gold:linear-gradient(135deg,#2563EB 0%,#3B82F6 50%,#1D4ED8 100%);
--grad-brand:var(--grad-gold);
--grad-text:linear-gradient(135deg,#0F172A 0%,#2563EB 100%);
--hero-glow:radial-gradient(ellipse 70% 60% at 65% 20%,rgba(37,99,235,.06) 0%,transparent 65%);
--section-glow:none;
--bg-dot:radial-gradient(circle,rgba(37,99,235,.07) 1px,transparent 1px);
}

/* ---- Dark surface overrides — hero + contact CTA + footer ---- */
[data-theme="dark"] {
--surface-page:#0C1527;
--surface-raised:#0F172A;
--surface-card:#111B2E;
--surface-card-hover:#162035;
--surface-inset:#0A1020;
--surface-row-odd:rgba(255,255,255,.03);
--surface-invert:var(--blue-50);
--text-primary:#F1F5F9;
--text-body:#CBD5E1;
--text-secondary:#94A3B8;
--text-muted:#64748B;
--text-disabled:#334155;
--text-accent:#60A5FA;
--text-link:#60A5FA;
--text-link-hover:#93C5FD;
--text-on-invert:#0F172A;
--border-subtle:rgba(255,255,255,.08);
--border-default:rgba(255,255,255,.12);
--border-strong:rgba(255,255,255,.20);
--divider-table:rgba(255,255,255,.08);
--state-hover:rgba(255,255,255,.05);
--state-active:rgba(255,255,255,.09);
--state-hover-strong:rgba(255,255,255,.07);
--surface-chip:rgba(37,99,235,.15);
--surface-row-highlight:rgba(37,99,235,.08);
--surface-table-head:#0A1020;
--surface-disabled:#1E293B;
--focus-ring:#60A5FA;
--shadow-card:0 1px 3px rgba(0,0,0,.3),0 1px 0 rgba(255,255,255,.04) inset;
--shadow-raised:0 8px 24px rgba(0,0,0,.4);
--indigo-300:#93C5FD;
--indigo-400:#60A5FA;
--indigo-500:#3B82F6;
--indigo-600:#2563EB;
--cyan-400:#60A5FA;
--cyan-500:#3B82F6;
}

/* ---- Typography ---- */
:root {
--font-display:"Plus Jakarta Sans","Inter",system-ui,sans-serif;
--font-body:"Plus Jakarta Sans","Inter",system-ui,sans-serif;
--font-mono:"IBM Plex Mono",ui-monospace,"SFMono-Regular",monospace;

--fw-regular:400;
--fw-medium:500;
--fw-semibold:600;
--fw-bold:700;
--fw-black:800;

--fs-display-xl:48px;--lh-display-xl:1.0;
--fs-display-lg:32px;--lh-display-lg:1.1;
--fs-display-md:22px;--lh-display-md:1.3;
--fs-display-sm:18px;--lh-display-sm:1.35;

--fs-body-lg:16px;--lh-body-lg:1.75;
--fs-body-md:15px;--lh-body-md:1.65;
--fs-body-sm:13px;--lh-body-sm:1.6;
--fs-caption:11px;--lh-caption:1.5;

--fs-eyebrow:12px;--lh-eyebrow:1.5;
--ls-eyebrow:.03em;
--ls-display:-.025em;
--ls-tight:-.02em;
--ls-caps:.03em;

--tnum:"tnum" 1,"lnum" 1;
}

/* Utility classes */
.sfp-display{font-family:var(--font-display);font-weight:var(--fw-black);letter-spacing:var(--ls-display)}
.sfp-eyebrow{font-family:var(--font-body);font-weight:var(--fw-semibold);font-size:var(--fs-eyebrow);line-height:var(--lh-eyebrow);letter-spacing:var(--ls-eyebrow)}
.sfp-data{font-family:var(--font-body);font-variant-numeric:tabular-nums lining-nums;font-feature-settings:var(--tnum)}
.sfp-mono{font-family:var(--font-mono)}

/* ---- Spacing & Layout ---- */
:root {
--sp-h:4px;--sp-1:8px;--sp-2:16px;--sp-3:24px;--sp-4:32px;--sp-5:40px;--sp-6:48px;--sp-7:64px;--sp-8:80px;--sp-9:96px;--sp-10:128px;

--gutter-mobile:20px;--gutter-tablet:28px;--gutter-desktop:40px;
--container-max:1280px;--container-reading:680px;
--bp-mobile:390px;--bp-tablet:768px;--bp-desktop:1024px;--bp-wide:1440px;

--radius-xs:3px;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--radius-xl:20px;--radius-pill:999px;

--hit-min:44px;
--row-height:48px;
--row-height-compact:40px;
--border-width:1px;
--border-width-strong:2px;
--rail-width:3px;
}

/* ---- Shadows — light mode ---- */
:root {
--shadow-none:none;
--shadow-card:0 1px 3px rgba(0,0,0,.07),0 1px 2px rgba(0,0,0,.05);
--shadow-raised:0 4px 20px rgba(0,0,0,.09),0 1px 4px rgba(0,0,0,.05);
--shadow-modal:0 24px 64px rgba(0,0,0,.14);
--shadow-sticky:0 2px 12px rgba(0,0,0,.07);
--shadow-brand-glow:0 0 0 1px rgba(37,99,235,.35),0 0 18px rgba(37,99,235,.10);
--shadow-gold-glow:var(--shadow-brand-glow);
--shadow-live-glow:0 0 0 1px rgba(37,99,235,.35),0 0 18px rgba(37,99,235,.10);
--ring-focus:0 0 0 2px #FFFFFF,0 0 0 4px var(--focus-ring);
--blur-scrim:blur(10px);
--blur-heavy:blur(20px);
}

/* ---- Animation ---- */
:root {
--dur-instant:80ms;
--dur-fast:120ms;
--dur-base:200ms;
--dur-slow:300ms;
--dur-pulse:1600ms;
--ease-out:cubic-bezier(.2,.7,.3,1);
--ease-in-out:cubic-bezier(.4,0,.2,1);
--ease-snap:cubic-bezier(.16,1,.3,1);
--transition-control:background-color var(--dur-fast) var(--ease-out),border-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out),box-shadow var(--dur-fast) var(--ease-out);
}
@keyframes sfp-pulse{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes sfp-flash{0%{background-color:rgba(37,99,235,.20)}100%{background-color:transparent}}
@keyframes sfp-skeleton{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}
@keyframes sfp-shimmer{0%{background-position:-200% center}100%{background-position:200% center}}
@media (prefers-reduced-motion:reduce){:root{
--dur-instant:0ms;--dur-fast:0ms;--dur-base:0ms;--dur-slow:0ms;
}
*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
