* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 75px 24px 40px;
  min-width: 0;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 18.667px;
  line-height: 1.35;
  background: #1b201f url("/images/the_eye_has_it_dark.jpg") repeat;
  background-size: 115px 80.5px;
}

.main {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 30px 25px;
  border-radius: 12px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 90%), rgb(187 187 187 / 90%));
  box-shadow: 4px 4px 8px #000;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 7.5vw, 3.5rem);
}

h2 {
  margin-top: 4px;
  font-size: clamp(1.125rem, 4.5vw, 1.75rem);
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
}

.portrait {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.bio {
  min-width: 0;
}

.bio ul {
  margin: 1em 0;
  padding-left: 1.5em;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #777;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
}

.social img {
  display: block;
  border: 0;
}

.social a:focus-visible {
  outline: 3px solid #173e66;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  body {
    min-height: 100svh;
    padding: 80.5px 24px;
    font-size: 14px;
    line-height: 1.25;
  }

  .main {
    max-width: 280px;
    padding: 14px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 14px;
  }

  .profile {
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }

  .portrait {
    align-self: center;
    width: 176px;
  }

  .bio ul {
    margin: 6px 0;
  }

  .social {
    margin-top: 10px;
    padding-top: 6px;
  }

  .social a {
    width: 32px;
    height: 32px;
  }

  .social img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 600px) and (max-height: 660px) {
  body {
    font-size: 13px;
    line-height: 1.2;
  }

  .main {
    padding: 12px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 13px;
  }

  .profile {
    gap: 8px;
    margin-top: 10px;
  }

  .portrait {
    width: 128px;
  }

  .social {
    margin-top: 8px;
    padding-top: 4px;
  }

  .social a {
    width: 28px;
    height: 28px;
  }

  .social img {
    width: 22px;
    height: 22px;
  }
}
