/* Design tokens of the owner's ChatGPT blog and shell design (27/11/2026). Loaded on every page that uses pages/layout.html. */
@layer tokens, components, pages;

@font-face { font-family: Glovebox; src: url('/assets/fonts/roboto.woff2') format('woff2'); font-style: normal; font-weight: 400 800; font-display: swap; }
@font-face { font-family: GloveboxHebrew; src: url('/assets/fonts/noto-hebrew-regular.woff2') format('woff2'); font-style: normal; font-weight: 400 600; font-display: swap; }
@font-face { font-family: GloveboxHebrew; src: url('/assets/fonts/noto-hebrew-bold.woff2') format('woff2'); font-style: normal; font-weight: 700 900; font-display: swap; }
@font-face { font-family: GloveboxArabic; src: url('/assets/fonts/noto-arabic-regular.woff2') format('woff2'); font-style: normal; font-weight: 400 600; font-display: swap; }
@font-face { font-family: GloveboxArabic; src: url('/assets/fonts/noto-arabic-bold.woff2') format('woff2'); font-style: normal; font-weight: 700 900; font-display: swap; }


@layer tokens {
  :root {
    color-scheme: dark;
    --color-background: #111311;
    --color-surface: #1a1c19;
    --color-surface-raised: #252823;
    --color-text: #f1f2ec;
    --color-muted: #a4a79d;
    --color-line: #35392f;
    --color-control-border: #6d7467;
    --color-accent: #d4f04a;
    --color-accent-soft: #30371c;
    --font-body: Glovebox, GloveboxHebrew, GloveboxArabic, Arial, sans-serif;
    --font-hebrew: GloveboxHebrew, Glovebox, Arial, sans-serif;
    --font-arabic: GloveboxArabic, Glovebox, Arial, sans-serif;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 700;
    --weight-heading: 800;
    --text-xs: .75rem;
    --text-sm: .875rem;
    --text-base: 1rem;
    --text-reading: 1.125rem;
    --text-lead: clamp(1.0625rem, 1.65vi, 1.375rem);
    --text-display: clamp(2.75rem, 8vi, 7rem);
    --text-article-display: clamp(2.25rem, 6.15vi, 5.5rem);
    --text-section: clamp(1.5rem, 2.65vi, 2rem);
    --leading-body: 1.65;
    --leading-heading: 1.02;
    --tracking-heading: 0; /* the one headline tracking of the whole site: landing, help, blog, header, dialog; change it here only */
    --tracking-label: .07em;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --radius-card: 1.375rem;
    --radius-control: .875rem;
    --radius-button: 1.25rem;
    --radius-pill: 999px;
    --container-width: 80rem;
    --reading-width: 46rem;
    --page-gutter: 3.5rem;
    --tap-target: 2.75rem;
    --header-height: 4.5rem;
    --text-nav: 1rem;
    --motion-duration: 160ms;
    --motion-easing: cubic-bezier(.2, 0, 0, 1);
  }
  /* the same side margins as the landing's .wrap (1280 px) on every page */
  @media (max-width: 1100px) { :root { --page-gutter: 2.25rem; } }
  @media (max-width: 760px) { :root { --page-gutter: 1.25rem; --header-height: 4rem; } }
  @media (max-width: 370px) { :root { --page-gutter: 1rem; } }
  :lang(he) { --font-body: var(--font-hebrew); --tracking-label: 0; }
  :lang(ru) { --tracking-heading: .015em; } /* Roboto's Cyrillic at weight 800 is tight at 0; the only per-language headline tracking besides Arabic */
  :lang(ar) { --font-body: var(--font-arabic); --tracking-heading: normal; --tracking-label: normal; --leading-heading: 1.28; }
}
