/*
Theme Name: Personal Supercomputing Systems
Theme URI: https://github.com/Kushala-Manjunath/supercompute-store
Author: Kushala Rani Talakad Manjunath
Description: Marketing theme for Personal Supercomputing Systems, supplier of reconditioned GPGPU hardware. Ported from the Next.js + Payload build.
Version: 0.5.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pss
*/

/* ---------------------------------------------------------------------------
 * Typefaces.
 *
 * Archivo for text, JetBrains Mono for the eyebrows, figures, tables and the
 * terminal. next/font pulled these from Google and self-hosted them at build
 * time; the same two latin variable subsets are shipped in the theme here, for
 * the same reason its comment gives — no request to Google at runtime, so no
 * third-party dependency in production and nothing to slow the first paint.
 *
 * Both are variable fonts, so one file per family covers every weight the
 * design uses.
 * ------------------------------------------------------------------------ */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-var.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-var.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;
}

/* ---------------------------------------------------------------------------
 * Design tokens.
 *
 * Ported verbatim from src/lib/theme.ts. There, a TypeScript registry
 * generated this block at runtime so the accent could be edited in the CMS.
 * Here the values are static: WordPress has no equivalent injection point that
 * runs before first paint, and a static rule cannot be broken by a malformed
 * value from the database — which is the whole reason normalizeHex() exists
 * on the Next.js side.
 *
 * Components reference only these semantic tokens, never a raw hex.
 * ------------------------------------------------------------------------ */

:root {
  color-scheme: dark;

  /* The names globals.css already asks for. next/font set these on <html>
   * from its generated class; here they are plain custom properties, so the
   * 16 font-family declarations in globals.css resolve unchanged. */
  --font-sans: 'Archivo';
  --font-mono: 'JetBrains Mono';

  --pss-bg: #0a0c0d;
  --pss-bg-sunken: #060708;
  --pss-surface: #0e1112;
  --pss-surface-raised: #151a1b;

  --pss-text: #f1f5f5;
  --pss-text-muted: #aab6b7;
  --pss-text-faint: #7e898b;

  --pss-border: #1e2426;
  --pss-border-strong: #2e383a;

  --pss-code-bg: #000000;
  --pss-code-text: #c8d2d3;

  --pss-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.45);
  --pss-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);

  /* The accent, and the foreground that sits on top of it. Mint against the
   * near-black page measures 12.27:1, comfortably past WCAG AA. */
  --pss-accent: #7ce0b0;
  --pss-on-accent: #07100c;

  --pss-accent-quiet: color-mix(in srgb, var(--pss-accent) 14%, transparent);
  --pss-accent-line: color-mix(in srgb, var(--pss-accent) 38%, transparent);
  --pss-accent-hover: color-mix(in srgb, var(--pss-accent) 82%, white);
}

/* No baseline rules here on purpose.
 *
 * assets/css/globals.css is a verbatim copy of src/styles/globals.css and
 * carries the whole reset, the type scale and every component rule. It is
 * enqueued after this file, so anything restated here would either be dead
 * weight or a silent conflict — an earlier draft set a system font stack on
 * body and quietly fought the real one. */
