@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Surfaces */
  --background: #212121;
  --surface: #1c1c1c;
  --border: #333333;

  /* Text */
  --text: #f5f5f5;
  --text-muted: #aaaaaa;

  /* Accents */
  --accent-primary: #fda4af;
  --accent-secondary: #8b5cf6;
  --accent-glow: #a21caf;
}

* {
  font-family: 'Archivo', sans-serif;
  margin: 0;
  outline: none;

  &::selection {
    background-color: var(--text-muted);
    color: var(--background);
  }
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
}

main {
  max-width: 32rem;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

h1 {
  color: var(--text);
  line-height: 1;
  text-wrap: balance;
}

p.description,
p.info {
  color: var(--text-muted);
  line-height: 1.5;
  text-wrap: balance;
}

a {
  font-size: 14px;
  color: var(--accent-primary);
  text-decoration: none;

  &:hover,
  &:focus-visible {
    text-decoration: underline;
  }
}

hr {
  border-style: solid;
  border-color: var(--border);
  width: 50%;
}

p.info {
  font-size: 14px;
}

button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-transform: uppercase;
  width: 16rem;
  max-width: calc(100vw - 2rem);
  height: 4rem;
  padding: 1rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 500ms;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  &::before,
  &::after {
    content: '';
    position: absolute;
    z-index: 10;
    border-radius: 9999px;
    filter: blur(16px);
    transition: all 500ms;
  }

  &::before {
    width: 3rem;
    height: 3rem;
    top: 0.25rem;
    right: 0.25rem;
    background-color: var(--accent-primary);
  }

  &::after {
    width: 5rem;
    height: 5rem;
    top: 0.75rem;
    right: 2rem;
    background-color: var(--accent-secondary);
  }

  &:not(:disabled):hover,
  &:not(:disabled):focus-visible {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
  }

  &:not(:disabled):hover::before,
  &:not(:disabled):focus-visible::before {
    top: -2rem;
    right: 3rem;
    filter: blur(8px);
    box-shadow: 16px 16px 16px 32px var(--accent-glow);
  }

  &:not(:disabled):hover::after,
  &:not(:disabled):focus-visible::after {
    right: 0;
  }

  &:not(:disabled):active {
    transform: scale(0.975);
  }

  &:disabled {
    cursor: not-allowed;
    opacity: 0.25;
  }
}
