/* mulsed: shared tokens, faces, and the browser surfaces both pages inherit. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;

  /* Lacquer: every neutral leans violet. */
  --lacquer-0: oklch(0.105 0.022 300);
  --lacquer-1: oklch(0.145 0.028 300);
  --lacquer-2: oklch(0.185 0.034 300);
  --lacquer-3: oklch(0.235 0.04 300);
  --edge: oklch(0.34 0.05 300 / 0.55);
  --edge-strong: oklch(0.46 0.07 300 / 0.7);

  --text: oklch(0.955 0.014 305);
  --text-soft: oklch(0.78 0.045 302);
  --text-faint: oklch(0.66 0.05 300);

  /* The film: three stops of one interference band. */
  --azure: oklch(0.78 0.14 238);
  --violet: oklch(0.66 0.22 300);
  --magenta: oklch(0.72 0.24 338);
  --film: linear-gradient(115deg, var(--azure), var(--violet) 48%, var(--magenta));
  --film-angle: conic-gradient(from var(--spin, 210deg), var(--azure), var(--violet), var(--magenta), var(--violet), var(--azure));

  --danger: oklch(0.74 0.19 12);
  --well: oklch(0.075 0.02 300);
  --field-edge: oklch(0.56 0.08 300);

  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --out-quint: cubic-bezier(0.22, 1, 0.36, 1);

  --drop: 0 18px 40px -18px oklch(0.02 0.03 300 / 0.9), 0 4px 10px -4px oklch(0.02 0.03 300 / 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--lacquer-0);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--lacquer-3) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--lacquer-0);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--magenta);
  accent-color: var(--violet);
}

::selection {
  background: oklch(0.52 0.22 300);
  color: oklch(0.99 0.01 300);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--lacquer-3);
  border: 2px solid var(--lacquer-0);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: oklch(0.34 0.07 300);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  display: block;
  flex: none;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
