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

body.has-mouse *,
body.has-mouse *::before,
body.has-mouse *::after {
  cursor: none !important;
}

*:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--bg-base);
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg-base: oklch(0.12 0.015 240);
  --panel: oklch(0.16 0.018 240);

  --accent: oklch(0.68 0.14 195);
  --accent-dim: oklch(0.54 0.11 195);
  --warning: oklch(0.72 0.16 60);
  --warning-faded: oklch(0.72 0.16 60 / 0.25);

  --text: oklch(0.96 0.005 240);
  --text-muted: oklch(0.70 0.01 240);

  --glass-bg: oklch(1 0 0 / 0.03);
  --glass-border: oklch(1 0 0 / 0.15);
}

@font-face {
  font-family: 'Google Sans Flex';
  src: url('../assets/fonts/GoogleSansFlex.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Google Sans Flex', sans-serif;
  color: var(--text);
  background-color: var(--bg-base);
  background-image:
    linear-gradient(oklch(0 0 0 / 0.2), oklch(0 0 0 / 0.2)),
    url('../assets/background/background3.webp');
  background-size: cover;
  background-position: center 10%;
  background-attachment: fixed;
}

@media (hover: none) and (pointer: coarse) {
  body {
    background-attachment: scroll;
  }
}