@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: light dark;
  overflow-x: hidden;
}

html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
}

.custom-cursor__dot {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-cursor.is-visible .custom-cursor__dot {
  opacity: 1;
}

.custom-cursor.is-active .custom-cursor__dot {
  transform: scale(2.2);
}

.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.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;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--font-body);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.6em 1.2em;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--fg-soft);
}

.split-text-target {
  overflow: hidden;
}
