:root {
  --text-color: #111111;
}

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

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text-color);
  background: #642667;
}

.page {
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 88px 72px 72px;
}

h1 {
  margin: 0 0 56px;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
  hyphens: none;
  -webkit-hyphens: none;
}

.content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 72px;
}

.bio {
  margin: 0;
  max-width: 650px;
  font-size: clamp(1.2rem, 1.76vw, 2.36rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  orphans: 3;
  widows: 3;
}

.links {
  flex-shrink: 0;
  width: min(430px, 36vw);
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 6px;
}

.links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: clamp(1.2rem, 1.9vw, 2.05rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.links a:hover,
.links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

@media (max-width: 900px) {
  .page {
    padding: 40px 24px 36px;
  }

  h1 {
    margin-bottom: 28px;
    line-height: 1;
  }

  .content {
    flex-direction: column-reverse;
    gap: 28px;
  }

  .bio {
    max-width: 100%;
    font-size: clamp(1.24rem, 5.6vw, 1.72rem);
    line-height: 1.16;
    text-wrap: pretty;
  }

  .links {
    width: 100%;
    gap: 18px;
    margin-top: 0;
  }

  .links a {
    font-size: clamp(1.2rem, 5.6vw, 1.8rem);
  }
}
