/* Display type --------------------------------------------------------------*/
@font-face {
  font-family: "Iosevka Fixed";
  src: url("https://cdn.jsdelivr.net/gh/iosevka-webfonts/iosevka-fixed@fffeade0aaa2842750b30bc152a04ee82510bcd9/woff2/iosevka-fixed-regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Foundations ---------------------------------------------------------------*/
:root {
  color-scheme: light dark;
  --font-sans: Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "Courier New", monospace;
  --font-display: "Iosevka Fixed", var(--font-mono);
  --step-small: .875rem;
  --step-body: 1rem;
  --step-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
  --step-card: clamp(1.375rem, 2vw, 1.75rem);
  --step-heading: clamp(2.25rem, 5vw, 4.375rem);
  --step-display: clamp(3.25rem, 6.25vw, 6.25rem);
  --page-width: 90rem;
  --gutter: clamp(1.25rem, 5.15vw, 5rem);
  --section-space: clamp(4rem, 8vw, 8rem);
  --control-height: 2.875rem;
  --inverse-paper: #000;
  --inverse-ink: #fff;
  --inverse-muted: #bdbdbd;
  --accent: #44e65a;
  --accent-ink: #000;
  --focus: var(--accent);
  --focus-edge: #000;
}

:root, [data-theme="light"] {
  --paper: #fff;
  --wash: #f4f4f4;
  --ink: #000;
  --muted: #535353;
  --line: #d1d1d1;
  --control-line: #717171;
}

[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000;
    --wash: #141414;
    --ink: #fff;
    --muted: #bdbdbd;
    --line: #404040;
    --control-line: #969696;
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000;
  --wash: #141414;
  --ink: #fff;
  --muted: #bdbdbd;
  --line: #404040;
  --control-line: #969696;
}
