:root {
  --background: #f7f7f7;
  --accent: #c5b358;
  --accent-light: #d2c47e;
  --accent-dark: #ae9b3c;
  --photo-size: 200px;
}

@media (max-width: 670px) {
  :root {
    --photo-size: 160px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes colorIn {
  from {
    border-color: rgba(0, 0, 0, 0.72);
    transform: scale(0.8);
    filter: sepia(60%);
  }

  to {
    border-color: var(--accent);
    transform: scale(1.02);
    filter: sepia(0);
  }
}

body {
  background: var(--background);
  font-family: Roboto, Helvetica, sans-serif;
  color: rgba(0, 0, 0, 0.84);
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.h-content {
  max-width: 610px;
  text-align: center;
  padding: 50px 30px;
  margin: 0 auto;
  animation: fadeIn 0.8s both;

  @media (max-width: 670px) {
    padding: 40px 30px;
  }
}

.h-photo {
  width: calc(var(--photo-size) + 8px);
  height: calc(var(--photo-size) + 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px var(--accent) solid;
  border-radius: 100%;
  margin: 0 auto 30px;
  animation: colorIn 1s 0.7s both;

  img {
    width: var(--photo-size);
    height: var(--photo-size);
    border-radius: 100%;
  }
}

h1 {
  background: var(--background);
  color: rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 55px;
  font-weight: 600;
  margin: 0;
  padding: 0 10px;
  position: relative;
  display: inline-block;

  &::before {
    background: var(--accent-light);
    width: calc(100% + 50px);
    height: 2px;
    content: " ";
    margin-top: 3px;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: -1;
    transform: translateX(-25px);
  }

  @media (max-width: 670px) {
    font-size: 40px;
    margin-bottom: 10px;
  }
}

p {
  font-family: "Slabo 27px", serif;
  font-size: 20px;
  line-height: 34px;

  @media (max-width: 670px) {
    font-size: 18px;
    margin: 10px 0;
  }
}

.h-about {
  max-width: 800px;

  a {
    color: var(--accent-dark);
    text-decoration: none;
    padding-bottom: 2px;
    transition: box-shadow 0.2s ease-in;

    &:hover {
      box-shadow: 0 5px 0 -4px currentColor;
    }
  }
}

.h-social {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;

  a {
    transition: all 0.1s ease-in;
    filter: sepia(60%);

    &:hover {
      filter: sepia(0%);
      transform: translateY(-2px);
    }
  }

  svg {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    fill-rule: evenodd;
  }
}
