:root {
  color-scheme: dark;
  --background: #000000;
  --text: #ffffff;
  --muted: #8c8c8c;
  --line: #292929;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  min-width: 20rem;
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
}

body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.profile {
  display: flex;
  width: min(100%, 120rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--gutter);
  flex-direction: column;
  justify-content: space-between;
}

.identity {
  margin-top: auto;
  margin-bottom: auto;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(5rem, 15.2vw, 18rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.085em;
}

.identity p {
  margin: clamp(1.5rem, 3vw, 2.75rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.contact-links {
  display: flex;
  padding-top: clamp(1.5rem, 2.5vw, 2.5rem);
  border-top: 1px solid var(--line);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.contact-links a {
  color: var(--text);
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  line-height: 1.4;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--muted);
}

@media (max-width: 40rem) {
  .profile {
    padding-block: 1.5rem;
  }

  h1 {
    font-size: clamp(4.3rem, 24vw, 8rem);
    line-height: 0.84;
  }

  .identity p {
    margin-top: 1.25rem;
  }

  .contact-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }
}
