/* Design tokens for the landing page: the dashboard's light colours, fonts, radius and spacing
   (copied from web/src/styles/tokens.css, keep the two in step), plus layout sizes for this page.
   The page is light only: a near-white page, white surfaces, black ink, brand yellow as a fill.
   Uses: the self-hosted fonts in ../fonts. Used by: css/styles.css. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  /* Three layers, from the dashboard's light values: the page, the boxes that sit on it, and
     the wells set into a box (code chips, screenshot frames). */
  --bg: #fbfbfa;
  --card: #ffffff;
  --well: #f2f2f0;
  --hover: #e8e8e5;
  --line: #e0e0dd;
  --button-line: #cfcfcb;
  --muted: #5c5c5c;
  --text: #0a0a0a;
  --ink: #0a0a0a;
  --ink-raised: #191919;
  --ink-line: #2f2f2f;
  --on-ink: #f5f5f5;
  --on-ink-muted: #9a9a9a;
  --brand: #ffe600;
  --brand-ink: #0a0a0a;
  --brand-hover: #f5dc00;
  --brand-edge: #b8a600;
  --plain-edge: #b4b4af;
  --edge-w: 2px;
  --bar-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 4px 12px -4px rgb(0 0 0 / 0.06);
  --focus: #0a0a0a;
  --link: #0a0a0a;
  --ok: #12b76a;
  --ok-edge: #0c8a50;
  --band: #efefec;
  --demo-bg: #12251d;
  --demo-line: #2c4a3d;
  --gloss: rgb(255 255 255 / 0.1);
  --gloss-edge: rgb(255 255 255 / 0.28);
  --demo-shadow: 0 28px 48px -20px rgb(0 0 0 / 0.65);
  --stone: #d6d6d1;
  --stone-light: #eeeeea;
  --stone-edge: #a3a39d;
  --stone-text: #3d3d3a;
  --shot-shadow: 0 24px 60px -32px rgb(0 0 0 / 0.28);
  --box-lift: 0 1px 2px rgb(0 0 0 / 0.04), 0 14px 32px -18px rgb(0 0 0 / 0.18);
  --plate: transparent;
  --plate-text: var(--text);
  --flag-filter: none;

  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Landing only: page width, header height and type scale. */
  --container: 1120px;
  --box-pad: 56px;
  --gutter: 24px;
  --header-h: 60px;
  --header-w: 880px;
  --clip-w: 768px;
  --clip-start: 0.73;
  --faq-w: 760px;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-md: 15px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 22px;
  --measure: 760px;
  --h1: clamp(38px, 5.4vw, 68px);
  --h2: clamp(28px, 3.4vw, 40px);
  --h3: clamp(20px, 2vw, 24px);
  --sign-size: min(21.5vw, 262px);
  color-scheme: light;
}

/* Dark theme, switched on by pressing the big name in the footer (js/main.js). A soft dark,
   not black: text on the page is about 15:1, muted text about 7:1. Brand yellow keeps its
   black text. */
:root[data-theme='dark'] {
  --bg: #1c1c1b;
  --card: #262625;
  --well: #2f2f2d;
  --hover: #383836;
  --line: #3b3b38;
  --button-line: #50504c;
  --muted: #adada8;
  --text: #f2f2ef;
  --ink: #111110;
  --ink-raised: #2b2b29;
  --ink-line: #3f3f3c;
  --on-ink: #f5f5f5;
  --on-ink-muted: #a6a6a1;
  --plain-edge: #5f5f5a;
  --bar-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 12px -4px rgb(0 0 0 / 0.4);
  --focus: #f2f2ef;
  --link: #f2f2ef;
  --ok: #34d08c;
  --ok-edge: #1c9a63;
  --band: #232322;
  --stone: #4b4b47;
  --stone-light: #62625d;
  --stone-edge: #30302d;
  --stone-text: #efefeb;
  --shot-shadow: 0 24px 60px -32px rgb(0 0 0 / 0.7);
  --box-lift: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 32px -18px rgb(0 0 0 / 0.6);
  --plate: #ecece8;
  --plate-text: #0a0a0a;
  --flag-filter: invert(1);
  color-scheme: dark;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --box-pad: 24px;
  }
}
