:root {
  color-scheme: dark;
  --bg: #090719;
  --ink: #f1f2ff;
  --muted: #a7a9bf;
  --line: #2d2d43;
  --red: #ff353f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

main {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px 20px;
  text-align: center;
}

.mark {
  display: block;
  width: clamp(220px, 38vmin, 410px);
  height: auto;
  margin: -5% 0 -8%;
  user-select: none;
  -webkit-user-drag: none;
}

.name h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.25rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.name p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 8px;
  margin-top: 34px;
}

nav a,
nav button {
  min-width: 94px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

nav a:first-child {
  border-color: var(--red);
  background: var(--red);
  color: #090719;
}

nav a:hover,
nav button:hover,
nav a:focus-visible,
nav button:focus-visible {
  border-color: var(--ink);
  outline: none;
}

nav a:first-child:hover,
nav a:first-child:focus-visible {
  background: var(--ink);
}

nav [aria-disabled="true"] {
  cursor: default;
}

@media (max-width: 520px) {
  .mark {
    width: min(78vw, 330px);
    margin-bottom: -5%;
  }

  .name h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  nav {
    width: min(100%, 330px);
    flex-wrap: wrap;
  }

  nav a,
  nav button {
    flex: 1 1 30%;
    min-width: 0;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
