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

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.08);
  --max-width: 60rem;
  --copy: "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--copy);
  color: var(--text);
  overflow-x: hidden;
  background: var(--bg);
  line-height: 1.6;
}

body::selection {
  background: rgba(255, 255, 255, 0.22);
}

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

button {
  font: inherit;
  color: inherit;
}

.page {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
  min-height: 100vh;
  padding: 2.75rem 0 1.5rem;
}

.hero {
  display: grid;
  gap: 0.45rem;
  margin-left: min(8rem, 10vw);
}

.hero__name {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 700;
}

.hero__tagline-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.hero__links {
  margin-top: 3.9rem;
  display: grid;
  gap: 0.62rem;
  width: min(100%, 18rem);
}

.link-card {
  display: inline-block;
  width: fit-content;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.link-card:hover,
.link-card:focus-visible {
  color: var(--text);
  opacity: 0.72;
  transform: translateX(8px);
  outline: none;
}

.link-card__content {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.link-card__label {
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
  transition: transform 220ms var(--ease);
}

.link-card__arrow {
  display: inline-block;
  color: var(--text);
  font-size: 0.95em;
  line-height: 1;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.link-card:hover .link-card__label,
.link-card:focus-visible .link-card__label {
  transform: translateX(2px);
}

.link-card:hover .link-card__arrow,
.link-card:focus-visible .link-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.note {
    width: min(100%, 29rem);
    margin-top: 4.5rem;
    margin-left: min(8rem, 10vw);
    position: absolute;
    bottom: 50px;
}

.note__body {
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.note__email {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
  transition: opacity 220ms var(--ease);
}

.note__email:hover,
.note__email:focus-visible {
  color: var(--text);
  opacity: 0.78;
  outline: none;
}

[data-animate] {
  opacity: 0;
  transform: translateY(14px);
}

[data-animate="slide-in"] {
  transform: translateX(16px);
}

body.is-ready [data-animate] {
  opacity: 1;
  transform: translate(0, 0);
  transition:
    opacity 500ms var(--ease),
    transform 500ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

@media (min-width: 741px) {
  html,
  body {
    height: 100%;
  }

  body {
    overflow: hidden;
  }

  .page {
    height: 100vh;
    min-height: 100vh;
  }
}

@media (max-width: 740px) {
  html {
    font-size: 15px;
  }

  .page {
    width: min(calc(100% - 1.5rem), var(--max-width));
    min-height: auto;
    padding: 2.25rem 0 2rem;
  }

  .hero {
    margin-left: 0;
    gap: 0.65rem;
  }

  .hero__name {
    font-size: clamp(2rem, 12vw, 3.15rem);
    max-width: 7ch;
  }

  .hero__tagline {
    font-size: 1.4rem;
  }

  .hero__links {
    margin-top: 2.5rem;
    gap: 0.65rem;
  }

  .link-card:hover,
  .link-card:focus-visible {
    transform: translateX(0);
  }

  .link-card:hover .link-card__label,
  .link-card:focus-visible .link-card__label {
    transform: translateX(0);
  }

  .link-card__arrow {
    display: none;
  }

  .link-card__label {
    font-size: 1rem;
  }

  .note {
    width: 100%;
    margin-top: 3rem;
    margin-left: 0;
  }

  .note__body,
  .note__email {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
