/* ============================================================
   COSMOFRAME — Design tokens
   Single source of truth for colors, type, spacing, radius.
   All other CSS references these vars.
   ============================================================ */

:root {
  /* ---------- Colors ---------- */
  --color-bg: #f5f5f7;          /* page light bg */
  --color-fg: #1d1d1f;          /* primary text + dark sections */
  --color-card: #252525;        /* dark card / chip bg */
  --color-card-light: #ffffff;  /* light card bg */

  --color-accent: #f46036;      /* orange CTA / highlight */
  --color-lime: #9bc53d;
  --color-yellow: #fde07a;
  --color-navy: #344e68;

  --color-muted: #929292;
  --color-muted-2: #86868c;
  --color-muted-3: #828287;

  --color-stroke: rgba(132, 132, 132, 0.2);
  --color-overlay-light: rgba(255, 255, 255, 0.1);
  --color-overlay-dark: rgba(0, 0, 0, 0.5);

  /* ---------- Typography ---------- */
  --font-display: "Jost", system-ui, -apple-system, sans-serif;
  --font-body: "Jost", system-ui, -apple-system, sans-serif;

  --text-hero: 112px;
  --text-display: 54px;
  --text-h2: 36px;
  --text-h3: 24.64px;
  --text-body-l: 20px;
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;

  --leading-hero: 1.05;
  --leading-tight: 1.1;
  --leading-snug: 1.15;
  --leading-normal: 1.35;
  --leading-loose: 1.5;

  --tracking-hero: -4.48px;
  --tracking-display: -2.16px;
  --tracking-h3: -0.2464px;
  --tracking-body-l: -0.4px;
  --tracking-small: -0.28px;
  --tracking-nav: -0.32px;

  /* ---------- Spacing (4px grid) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-11: 42px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 125px;

  /* ---------- Border radius ---------- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 102px;
  --radius-circle: 50%;

  /* ---------- Effects ---------- */
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.1);

  /* ---------- Layout ---------- */
  --page-max-width: 1512px;
  --page-padding: var(--space-11);   /* 42px desktop default */
  --content-width: calc(var(--page-max-width) - (var(--page-padding) * 2));

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 800ms;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

/* Tablet portrait + mid */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --page-padding: var(--space-8);   /* 32px */
    --text-hero: 72px;
    --tracking-hero: -2.88px;
  }
}

/* Wide desktop down */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root {
    --text-hero: 88px;
    --tracking-hero: -3.52px;
  }
}

/* MOBILE — 20px borders / smaller type */
@media (max-width: 767px) {
  :root {
    --page-padding: 20px;             /* user request: 20px borders */
    --text-hero: 44px;
    --text-display: 36px;
    --text-h2: 28px;
    --text-h3: 20px;
    --text-body-l: 18px;
    --space-32: 80px;
    --tracking-hero: -1.6px;
    --tracking-display: -1.2px;
  }
}

/* Phone */
@media (max-width: 479px) {
  :root {
    --page-padding: 18px;
  }
}
