:root {
  --base: #191724;
  --surface: #1f1d2e;
  --overlay: #26233a;
  --muted: #6e6a86;
  --subtle: #908caa;
  --text: #e0def4;
  --love: #eb6f92;
  --gold: #f6c177;
  --rose: #ebbcba;
  --pine: #31748f;
  --foam: #9ccfd8;
  --iris: #c4a7e7;
  --highlight_low: #21202e;
  --highlight_med: #403d52;
  --highlight_high: #524f67;
}

html {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--highlight_high) var(--highlight_low);
  background-color: black;
}

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

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, var(--highlight_low), var(--overlay));
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--highlight_med);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--highlight_high),
    var(--highlight_med)
  );
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px var(--overlay),
    0 1px 0 rgba(0, 0, 0, 0.25);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--pine), var(--iris));
  box-shadow:
    inset 0 0 0 1px var(--foam),
    0 2px 6px rgba(0, 0, 0, 0.35);
}

::-webkit-scrollbar-thumb:active {
  background: var(--pine);
  box-shadow:
    inset 0 0 0 1px var(--foam),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-blend-mode: overlay;

  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  height: 100svh;
  padding: 1rem;
  margin: 0px;
  display: flex;
  justify-content: center;
  align-items: center;

  color: black;
  background: url("../img/background.webp");
  background-size: cover;
}

::selection {
  /* iris @ ~28% */
  background: rgba(196, 167, 231, 0.28);
  color: var(--text);
}

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

a {
  color: var(--foam);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-skip-ink: auto;
}

a:hover {
  color: var(--rose);
}

:root {
  accent-color: var(--pine);
  caret-color: var(--foam);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::marker {
  color: var(--subtle);
}
