/* Discretion Labs design tokens. The logo colours also live in brand/build.py; change both together. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the two brand colours: small touches only */
  --blue: #24389C;
  --yellow: #F5B635;

  /* light: the default */
  --ground: #E9EDF1;
  --surface: #F4F6F9;
  --ink: #14171B;
  --text-2: #55606B;       /* secondary text */
  --grey: #77808A;         /* "Labs", and nothing smaller than 18 px */
  --line: #D3D9E0;
  --mark: var(--blue);     /* the round mark, and links */
  --highlight: #F8DA8C;    /* the highlighter behind one word */
  --highlight-ink: var(--ink);

  /* type */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* space */
  --edge: clamp(1.25rem, 3.2vw, 2.75rem);
}

/* dark: the two colours swap jobs. `.light` on <html> pins a page to light; `.dark` forces dark. */
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --ground: #0F1318;
    --surface: #161B22;
    --ink: #ECEFF2;
    --text-2: #A3ACB6;
    --grey: #6C747E;
    --line: #262D36;
    --mark: var(--yellow);
    --highlight: var(--blue);
    --highlight-ink: #FFFFFF;
  }
}

/* any element can carry the dark set for itself and everything inside it */
.dark {
  --ground: #0F1318;
  --surface: #161B22;
  --ink: #ECEFF2;
  --text-2: #A3ACB6;
  --grey: #6C747E;
  --line: #262D36;
  --mark: var(--yellow);
  --highlight: var(--blue);
  --highlight-ink: #FFFFFF;
}
