:root {
  --black: #080808;
  --black-2: #0d0d0d;
  --magenta: #f80058;
  --white: #f5f5f5;
  --gray: #a1a1aa;

  --white-a06: rgb(245 245 245 / 0.06);
  --white-a10: rgb(245 245 245 / 0.1);
  --white-a16: rgb(245 245 245 / 0.16);
  --white-a28: rgb(245 245 245 / 0.28);
  --magenta-a16: rgb(248 0 88 / 0.16);
  --magenta-a40: rgb(248 0 88 / 0.4);

  --font-sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --margin: max(clamp(1.25rem, 6vw, 6rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 90rem;
  --header-h: 5rem;
}

@media (max-width: 860px) {
  :root {
    --header-h: 4rem;
  }
}

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

* {
  margin: 0;
}

html {
  color-scheme: dark;
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--white-a28) var(--black);
  scrollbar-width: thin;
  scroll-padding-top: var(--header-h);
  scrollbar-gutter: stable;
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html.is-menu-open {
  overflow: hidden;
}

body {
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  color: var(--white);
  font-weight: 500;
}

::selection {
  background: var(--magenta);
  color: var(--black);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-weight: 500;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1477 / 271;
}

.icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

.label {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.4em 1.1em;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.label__sep,
.label__index {
  color: var(--magenta);
}

.button {
  --button-h: 3.5rem;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-height: var(--button-h);
  padding: 0 1.75rem;
  overflow: hidden;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 450ms var(--ease-out);
}

.button .icon {
  transition: transform 400ms var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

.button--small {
  --button-h: 2.75rem;
  gap: 0.625rem;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
}

.button--small .icon {
  width: 1rem;
  height: 1rem;
}

.button--primary {
  background: var(--magenta);
  color: var(--black);
}

.button--primary::before {
  background: var(--white);
}

.button--outline {
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white-a28);
}

.button--outline::before {
  background: var(--white-a06);
}

.button--accent {
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--magenta);
}

.button--accent::before {
  background: var(--magenta);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover::before {
    transform: translateY(0);
  }

  .button--primary:hover {
    background-color: var(--white);
    transition:
      transform 160ms var(--ease-out),
      background-color 0s linear 300ms;
  }

  .button--outline:hover {
    box-shadow: inset 0 0 0 1px var(--white);
  }

  .button--accent:hover {
    color: var(--black);
  }

  .button:hover .icon--right {
    transform: translateX(0.25rem);
  }

  .button:hover .icon--up-right {
    transform: translate(0.15rem, -0.15rem);
  }
}

.button:focus-visible {
  outline-offset: 4px;
}

.text-line {
  display: block;
}
