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

:root {
  --cursor-default: url("../icons/cursor/pointer-cursor.svg?v=3") 5 1, default;
  --cursor-link: url("../icons/cursor/hand-pointer-cursor.svg?v=3") 13 1, pointer;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 150% 100% at 50% 0%, #2b2b2b 0%, #020202 100%);
  z-index: -1;
  pointer-events: none;
}

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

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

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

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

p {
  text-wrap: pretty;
  max-width: 68ch;
}

::selection {
  background: var(--color-accent-glow);
}

[data-no-select],
[data-no-select] * {
  -webkit-user-select: none;
  user-select: none;
}

[data-no-drag],
[data-no-drag] * {
  -webkit-user-drag: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--s8);
}

.section {
  padding-block: clamp(var(--s16), 7vw, var(--s24));
  background: transparent;
  position: relative;
}

.parallax-slide {
  will-change: transform, opacity;
  transition: none !important;
}


.parallax-slide.parallax-done {
  will-change: auto;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition) !important;
}

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


section {
  scroll-margin-top: 0px;
}


#about {
  scroll-margin-top: -135px;
}

#projects {
  scroll-margin-top: -415px;
}


html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

* {
  cursor: var(--cursor-default);
}

a,
button,
a *,
button * {
  cursor: var(--cursor-link);
}
