@import url("/reset.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
  font-family: "Inter", sans-serif;
  --bg-color: #1d1b1e;
  --fg-color: #ffffff;
  --accent-color: #fa8a90;
}

body {
  background-color: var(--bg-color);
  color: var(--fg-color);
}

h1 {
  font-weight: 600;
}

.profile-pic {
  border-radius: 100%;
  max-width: 200px;
}

.header-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
  list-style-type: none;
  margin: 2em;
  padding: 0;
}

.links a {
  color: var(--fg-color);
  font-weight: 600;
  background-color: #1d1b1eaa;
  padding: 0.5em 1em;
  border-radius: 5px;
  border: 2px solid var(--fg-color);
  text-decoration: none;
  transition: color 200ms ease,
    background-color 200ms ease;
}

.links a:hover {
  --fg-color: var(--accent-color);
  background-color: var(--bg-color);
}

.links a:focus {
  outline: var(--fg-color) solid 0.1em;
  outline-offset: 0.2em;
}

@media screen and (max-width: 1000px) {
  .header-image > img {
    max-height: 25vh;
  }

  .profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: calc(max(-25vw, -100px)) 1em 0;
    text-align: center;
  }

  .profile-pic {
    width: 50vw;
    margin-bottom: 0.5em;
  }
}

@media screen and (min-width: 1000px) {
  .header-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
  }

  body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas: "none" "profile" "links";
    gap: 1em;
  }

  .profile {
    width: 750px;
    grid-area: profile;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2em;
    justify-self: center;
    margin-left: -40%;
  }

  .title {
    font-size: 2em;
  }

  .links {
    grid-area: links;
    flex-direction: row;
    align-self: end;
  }
}
