:root {
  --bg: #ffffff;
  --text: #2a2724;
  --max-width: 640px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.65;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 64px;
}

.photo {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 40px;
}

h1 {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 28px;
}

p {
  font-size: 1.0625rem;
  margin: 0 0 24px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.links {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .container {
    padding: 72px 24px 56px;
  }

  .photo {
    width: 140px;
    height: 140px;
    margin-bottom: 36px;
  }

  h1 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 48px 20px 48px;
  }

  .photo {
    width: 112px;
    height: 112px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 22px;
  }

  p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .links {
    gap: 16px;
    font-size: 0.875rem;
  }
}
