@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Source+Sans+Pro:wght@400;600&display=swap");

/* -- Reset -- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  height: 100%;
}

ol, ul { list-style: none; }
a, a:hover { text-decoration: none; }

/* -- Base -- */
body {
  background-color: #1B2A35;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.1px;
  color: #BEC9CE;
  animation: fadein 1.5s ease;
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* -- Layout -- */
.container {
  display: flex;
  min-height: 100vh;
}

.home-image {
  flex: 0 0 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: right center;
}

.home-content {
  flex: 0 0 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 60px;
}

.home-content-inner {
  max-width: 560px;
  width: 100%;
}

/* -- Intro -- */
.home-intro {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 58px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #78C2DC;
  margin-bottom: 32px;
}

/* -- Bio -- */
.home-bio {
  margin-bottom: 40px;
}

.home-bio p {
  color: #BEC9CE;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.65;
}

.home-bio p:last-child {
  margin-bottom: 0;
}

/* -- Lists -- */
.home-lists {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.home-list h3 {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #BEC9CE;
  opacity: 0.45;
  margin-bottom: 12px;
}

.home-list ul li {
  font-size: 15px;
  line-height: 1;
  margin-bottom: 12px;
}

.home-list ul li a {
  color: #BEC9CE;
  transition: color 0.4s;
}

.home-list ul li a:hover {
  color: #C23B41;
  transition: color 0.1s;
}

/* -- Tablet -- */
@media (max-width: 900px) {
  .home-content {
    padding: 60px 40px;
  }
  .home-intro {
    font-size: 48px;
  }
}

/* -- Mobile -- */
@media (max-width: 700px) {
  .container {
    flex-direction: column;
  }

  .home-image {
    position: relative;
    flex: none;
    width: 100%;
    height: 40vh;
    /* avoid downloading a giant image just for a banner strip */
    background-attachment: scroll;
  }

  .home-content {
    flex: none;
    width: 100%;
    padding: 36px 24px 48px;
    align-items: flex-start;
  }

  .home-content-inner {
    max-width: 100%;
  }

  .home-intro {
    font-size: 42px;
    margin-bottom: 24px;
  }

  .home-bio {
    margin-bottom: 32px;
  }

  .home-bio p {
    font-size: 15px;
  }

  .home-lists {
    gap: 28px;
  }
}

@media (max-width: 400px) {
  .home-image {
    height: 30vh;
  }
  .home-intro {
    font-size: 36px;
  }
}
