/* Shared by the dashboard and the login page.
   Palette: the devices' white plastic and grey lid, graphite controls;
   red is reserved for "needs attention". */

@font-face {
  font-family: "Archivo";
  src: url("vendor/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("vendor/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: light;
  --plastic: #f3f4f2;   /* page ground */
  --lid: #e2e4e1;       /* device panels */
  --ink: #1b1f22;       /* text, primary buttons */
  --ink-2: #4b5258;     /* secondary text (7:1 on plastic) */
  --rule: #c9ccc8;      /* rules, gauge tracks */
  --alert: #b3261e;     /* needs attention */
  --face: "Archivo", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plastic);
  color: var(--ink);
  font: 400 15px/1.45 var(--face);
  font-stretch: 100%;
}

h1 { font-size: 30px; line-height: 1.1; font-weight: 750; font-stretch: 125%; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 700; font-stretch: 112%; margin: 0; }
.lede { margin: 0; color: var(--ink-2); }
.bad { color: var(--alert); font-weight: 600; }

button {
  font: 600 14px/1 var(--face); font-stretch: 100%;
  padding: 9px 12px; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background-color .12s var(--ease), color .12s var(--ease), transform .06s var(--ease);
}
button.run { background: var(--ink); color: var(--plastic); }
button:hover:not(:disabled) { background: rgba(27, 31, 34, .08); }
button.run:hover:not(:disabled) { background: #343a3f; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.danger { border-color: var(--alert); color: var(--alert); }
button.quiet { border-color: transparent; color: var(--ink-2); padding: 6px 8px; font-weight: 500; }
button.quiet:hover { color: var(--ink); }

@media (max-width: 560px) {
  h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
