:root {
  --page-background: #f4f1e9;
  --text-primary: #171714;
  --text-secondary: #56564f;
  --rule: #b8b5aa;
  --content-width: 54rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-background);
  color: var(--text-primary);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

main {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.profile {
  width: min(100%, var(--content-width));
}

.name-block {
  margin-bottom: clamp(3rem, 8vw, 6.5rem);
}

.domain {
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4.75rem, 17vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.8;
  margin: 0 0 0 -0.075em;
}

.introduction {
  max-width: 47rem;
}

.lead {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.details {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  margin: 0;
}

nav {
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin-top: clamp(2.75rem, 7vw, 5rem);
  padding-top: 1.1rem;
}

a {
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-transform: uppercase;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 0.35rem;
}

@media (max-width: 35rem) {
  main {
    place-items: start;
    padding-top: 14vh;
  }

  .name-block {
    margin-bottom: 4rem;
  }
}

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