/* Shared by every page and loaded first: the self-hosted fonts and the design tokens (colours, fonts, sizes).
   Change a colour or font here and it changes everywhere. Page styles live in home.css (home page) and
   /blog/blog.css (every other page); the navigation bar and footer in layout.css.
   Fonts are the same files Google Fonts served. Licences: /assets/fonts/OFL-*.txt */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-italic-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback: Arial resized to take the same space as DM Sans, so nothing jumps when DM Sans arrives.
   Regular text uses Arial at 106%, bold and headings Arial Bold at 95% (DM Sans is narrower at large sizes).
   ascent/descent come from DM Sans (0.992 / 0.310 em), divided by the size-adjust. */
@font-face {
  font-family: 'DM Sans Fallback';
  font-weight: 400 600;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'), local('Helvetica');
  size-adjust: 106%;
  ascent-override: 93.6%;
  descent-override: 29.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans Fallback';
  font-weight: 700 900;
  src:
    local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'),
    local('Helvetica Bold');
  size-adjust: 95%;
  ascent-override: 104.4%;
  descent-override: 32.6%;
  line-gap-override: 0%;
}

:root {
  /* brand colours */
  --ink: #111111;
  --ink-2: #1b1b1b;
  --ink-3: #262524;
  --orange: #ff6b1a;
  --orange-deep: #e85a0c; /* icons and accents, not small text */
  --peach: #ffe1cc;
  --paper: #f7f5f2;
  /* text colours: the -text ones reach 4.5:1 contrast on paper and peach, so use them for small text */
  --orange-text: #b93d0a;
  --grey-text: #6b6660;
  --grey: #8c8781; /* only on dark backgrounds or for large text */
  --grey-on-dark: #a9a49e;
  --line-dark: rgba(247, 245, 242, 0.12);
  --line-light: rgba(17, 17, 17, 0.12);
  /* fonts */
  --sans: 'DM Sans', 'DM Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Gaegu', 'Comic Sans MS', 'Chalkboard SE', cursive;
  /* layout */
  --wrap: 1160px;
  color-scheme: light;
}
