/* Shared by the home page and the not-found page: typefaces, ground, the name and the links. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-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;
}
:root {
  color-scheme: dark;
  --field: #05080c;    /* ground */
  --light: #dfe9ee;    /* the name, and values read under a cursor */
  --tick: #93a3b1;     /* numerals, units, axis titles */
  --grid: #18222c;     /* grid hairlines */
  --rule: #2a3947;     /* link underlines, control outline */
  --cursor: #4fb3a0;   /* fermPlot's linked cursor; link hover and focus */
  --mx: 72px;
  --sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--field); }
body { margin: 0; background: var(--field); color: var(--light); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
main { max-width: 1584px; margin: 0 auto; padding: 0 var(--mx) 20px; }
a { color: var(--light); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--cursor); outline-offset: 4px; border-radius: 2px; }

.top { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: baseline; padding-top: 20px; }
h1 { margin: 0; font-weight: 500; font-stretch: 125%; font-size: clamp(21px, 2.05vw, 30px); line-height: 1.1; letter-spacing: .01em; }
nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
nav a { padding: 4px 0; border-bottom: 1px solid var(--rule); }
nav a:hover { border-bottom-color: var(--cursor); }

@media (max-width: 639px) {
  :root { --mx: 16px; }
  main { padding-bottom: 40px; }
  .top { padding-top: 16px; }
  nav { gap: 16px; font-size: 13px; }
}
