/* PC Buddy 247 — design tokens
   Source: PC_Buddy_247_Design_System.md (palette, semantic tokens) + approved mockup refinements.
   Theme: system preference by default; [data-theme="light"|"dark"] on <html> overrides (saved by the theme switch). */


:root {
  /* Brand palette (fixed) */
  --midnight: #0c1420;
  --midnight-2: #08101a;
  --gold: #c8a66a;
  --gold-hover: #d6b77d;
  --turquoise: #35cfd0;
  --platinum: #f2f4f8;

  /* Type */
  --font-display: "Manrope", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1.0625rem;   /* 17 body */
  --fs-lg: 1.25rem;     /* 20 lead */
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 3.8vw, 4.5rem);
  --fw-display: 560;    /* lighter headline weight, per review */
  --lh-tight: 1.1;
  --lh-body: 1.6;

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --section-y: clamp(96px, 6rem + 4vw, 160px);  /* ~double the mockup spacing */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Shape & motion */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --dur: 200ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;

  /* Light theme (default) */
  color-scheme: light;
  --canvas: #f7f8fa;
  --canvas-2: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f2f5f8;
  --text: #0c1420;
  --muted: #526173;
  --accent-gold: #7f5d2a;      /* gold for text on light (darkened from #96713B for AA on tinted grounds) */
  --accent-teal: #066a6f;      /* teal for text/links on light (darkened from #087F85 for AA on tinted grounds) */
  --border: #dce1e7;
  --border-soft: rgba(12, 20, 32, .08);
  --cta-bg: var(--gold);
  --cta-bg-hover: var(--gold-hover);
  --cta-text: #0c1420;
  --focus: #066a6f;
  --shadow: 0 1px 2px rgba(12,20,32,.04), 0 12px 32px -12px rgba(12,20,32,.12);
  --header-bg: rgba(247, 248, 250, .86);
  /* Atmosphere (signature background), light: a daylight sky with teal haze, a warm champagne glow and a glowing horizon */
  --atmos-base: #e4f3f5;
  --atmos-bg: radial-gradient(120% 70% at 50% -10%, #bfe9ec 0%, rgba(191, 233, 236, 0) 60%), linear-gradient(180deg, #d6eff2 0%, #eaf6f7 55%, #f7f8fa 100%);
  --atmos-glow: rgba(53, 207, 208, .45);
  --atmos-deep: rgba(8, 127, 133, .22);
  --atmos-beam: rgba(53, 207, 208, .42);
  --atmos-warm: rgba(200, 166, 106, .32);
  --atmos-rim: rgba(6, 106, 111, .9);
  --atmos-rim-glow: rgba(53, 207, 208, .75);
  --atmos-glint: rgba(255, 255, 255, 1);
  --planet-edge: #dff0f3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0c1420;
    --canvas-2: #0a111b;
    --surface: #111c2a;
    --surface-2: #142030;
    --text: #f2f4f8;
    --muted: #a5b2c4;
    --accent-gold: #c8a66a;
    --accent-teal: #35cfd0;
    --border: #263445;
    --border-soft: rgba(242, 244, 248, .08);
    --focus: #35cfd0;
    --shadow: 0 1px 2px rgba(0,0,0,.2), 0 16px 40px -16px rgba(0,0,0,.5);
    --header-bg: rgba(12, 20, 32, .82);
    --atmos-base: #08111c;
    --atmos-glow: rgba(53, 207, 208, .34);
    --atmos-deep: rgba(8, 127, 133, .42);
    --atmos-beam: rgba(70, 170, 200, .30);
    --atmos-rim: rgba(170, 245, 255, .95);
    --atmos-rim-glow: rgba(53, 207, 208, .75);
    --atmos-glint: rgba(235, 255, 255, 1);
    --planet-edge: #102236;
    --atmos-bg: var(--atmos-base);
    --atmos-warm: rgba(200, 166, 106, .10);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0c1420;
  --canvas-2: #0a111b;
  --surface: #111c2a;
  --surface-2: #142030;
  --text: #f2f4f8;
  --muted: #a5b2c4;
  --accent-gold: #c8a66a;
  --accent-teal: #35cfd0;
  --border: #263445;
  --border-soft: rgba(242, 244, 248, .08);
  --focus: #35cfd0;
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 16px 40px -16px rgba(0,0,0,.5);
  --header-bg: rgba(12, 20, 32, .82);
  --atmos-base: #08111c;
  --atmos-glow: rgba(53, 207, 208, .34);
  --atmos-deep: rgba(8, 127, 133, .42);
  --atmos-beam: rgba(70, 170, 200, .30);
  --atmos-rim: rgba(170, 245, 255, .95);
  --atmos-rim-glow: rgba(53, 207, 208, .75);
  --atmos-glint: rgba(235, 255, 255, 1);
  --planet-edge: #102236;
  --atmos-bg: var(--atmos-base);
  --atmos-warm: rgba(200, 166, 106, .10);
}
