/* =========================================================================
   Manoj Achari design system v2 — tokens
   Source of truth for the portfolio (portfolio-redesign/design-1) and the
   social templates. Grey paper + navy ink, cyan for interaction, yellow for
   highlights only. Change a value here, not in a component.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=DM+Sans:opsz,wght@9..40,300..700&family=Roboto+Mono:wght@400;500;700&family=Stack+Sans+Headline:wght@200..700&display=swap');

:root {
  /* ---- brand scales (from the palette sheets in uploads/) ---- */
  --grey-950:#030303; --grey-500:#141414; --grey-400:#424242; --grey-300:#737373;
  --grey-200:#A1A1A1; --grey-100:#D1D1D1; --grey-50:#E8E8E8;
  --navy:#010D14;
  --lightblue-950:#011A23; --lightblue-900:#023345; --lightblue-800:#05678A;
  --lightblue-700:#079ACF; --lightblue-600:#26C0F8; --lightblue-300:#A6E5FC;
  --lightblue-100:#E1F6FE;
  --yellow-500:#F18F01; --yellow-400:#FEA92A; --yellow-600:#C17401;

  /* ---- semantic colour, light theme (default) ---- */
  --paper:#E8E8E8;          /* page ground */
  --card:#F4F4F4;           /* raised surface: hovered card, form panel */
  --line:#D1D1D1;           /* dividers, cell borders */
  --line-strong:#A1A1A1;    /* field borders, tags */
  --ink:#010D14;            /* primary text */
  --muted:#05678A;          /* secondary text, labels */
  --accent:#26C0F8;         /* interaction: buttons, links, focus, cursor */
  --on-accent:#010D14;      /* text on accent */
  --highlight:#F18F01;      /* highlights only: live dots, "Now", hovered charts, activity */
  --vec:#A1A1A1;            /* decorative line drawings sit back from content */
  --led:#010D14;            /* LED / dot-matrix panel */
  --led-dot:#023345;        /* unlit dot */
  --led-lit:#E1F6FE;        /* lit dot at rest */
  --led-text:#FFFFFF;
  --led-sub:#A6E5FC;

  /* ---- type ---- */
  --display:"Space Grotesk", "Helvetica Neue", Arial, sans-serif;   /* headings, big numbers */
  --body:"DM Sans", "Helvetica Neue", Arial, sans-serif;            /* reading text */
  --mono:"Roboto Mono", ui-monospace, monospace;                    /* labels, data, nav, buttons */
  --sans:"Stack Sans Headline", "Helvetica Neue", Arial, sans-serif;/* LED panel numbers only */

  --text-xs:11.5px;   /* mono labels */
  --text-sm:13px;     /* mono UI text */
  --text-base:14px;   /* supporting text */
  --text-md:16px;     /* reading text */
  --text-lg:22px;     /* card titles, sub-headings */
  --text-xl:36px;     /* section headings */
  --text-2xl:44px;    /* hero lead */
  --text-mega:138px;  /* page titles (fit to one line) */

  /* ---- spacing: multiples of 8 only ---- */
  --s1:8px;  --s2:16px; --s3:24px; --s4:32px; --s5:40px; --s6:48px;
  --s7:56px; --s8:64px; --s9:72px; --s10:80px; --s11:88px; --s12:96px;
  --gutter:60px;       /* frame inset on desktop; 16px on phones */

  /* ---- shape ---- */
  --radius:8px;        /* components; the page grid stays square */
  --chamfer:10px;      /* button corner cut (top-left, bottom-right) */

  /* ---- motion ---- */
  --ease-out:cubic-bezier(.2,.7,.2,1);
  --dur-fast:.15s; --dur:.2s; --dur-slow:.6s;

  color-scheme:light;
}

/* ---- dark theme: navy ground, same roles ---- */
:root[data-theme="dark"] {
  --paper:#010D14; --card:#011A23; --line:#023345; --line-strong:#05678A;
  --ink:#FFFFFF; --muted:#A6E5FC; --vec:#424242;
  --led:#00070B; --led-dot:#023345;
  color-scheme:dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:#010D14; --card:#011A23; --line:#023345; --line-strong:#05678A;
    --ink:#FFFFFF; --muted:#A6E5FC; --vec:#424242;
    --led:#00070B; --led-dot:#023345;
    color-scheme:dark;
  }
}
