/*
  Eno's brand tokens: the fonts and colours every Eno site draws with.

  This file is the one place they are defined. global.css imports it for the
  marketing pages, and the build also publishes it unchanged at
  enopdf.com/brand/tokens.css (src/pages/brand/tokens.css.ts), which the docs
  site (services/docs in the eno repo) links at runtime instead of keeping its
  own copy.

  So the custom property names are a public contract: add freely, but renaming
  or removing one breaks the docs site until it changes too. Font URLs are
  root-relative, so they resolve against enopdf.com wherever the stylesheet is
  linked from; public/_headers allows that cross-origin.
*/

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Italic-VariableFont_opsz,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'New Title';
  src: url('/fonts/NewTitle-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --eno-grey-offblack: #181818;
  --eno-grey-dark: #343434;
  --eno-grey-mid: #BEBEBE;
  --eno-grey-soft: #E7E7E7;
  --eno-grey-light: #F1F1F1;
  --eno-grey-off: #FAFAFA;
  --eno-cream: #FDFAEF;
  --eno-cream-dark: #fcf8e3;
  --eno-accent-yellow: #FFE83B;
  --eno-accent-blue: #1079E8;

  /* Links are underlined in a darker yellow, which turns grey on hover. */
  --eno-link-underline: #dac62f;
  --eno-link-underline-hover: #373737;
  --eno-highlight: rgba(255, 204, 0, 0.3);

  --eno-font-sans: Inter, system-ui, sans-serif;
  --eno-font-mono: "IBM Plex Mono", "Courier New", monospace;
  --eno-font-display: "New Title", Inter, helvetica, arial, sans-serif;
  /* Body copy is set in the mono face. */
  --eno-font-body: var(--eno-font-mono);
}
