*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'F';
  src: url('./assets/font/f.woff2') format('woff2');
  font-weight: 300;
  font-display: block;
	font-feature-settings: "ss10" 1, "ss03" 1, "ss02" 1;
}

body {
  background-color: #002FA7;
  color: #FFFFFF;
  height: 100vh;
  width: 100vw;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  font-family: 'F', sans-serif;
  font-size: clamp(1.125rem, 0.82rem + 1.3vw, 2rem);
  font-weight: 300;
  line-height: 110%;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #FFFFFF;
  text-decoration: none;
}

.bio {
  max-width: 28ch;
}

.bio p + p {
  margin-top: 1em;
}

.bio p {
  text-wrap: balance;
}

.friends-list {
  display: flex;
  gap: 5rem;
  align-items: start;
  line-height: 125%;
}

.friends-col {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.page-index > a,
.page-friends > a {
  height: fit-content;
}

a:hover {
  opacity: 0.65;
}

@media (max-width: 768px) {
  html {
    overflow: hidden;
  }
  
  .page-index,
  .page-friends {
    grid-template-columns: 1fr;
	
  }

  .page-index {
    grid-template-rows: 1fr;
  }

  .page-index > a,
  .page-friends > a  {
    position: fixed;
	bottom: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom));
    left: 20px;
  }
  
  .page-friends {
	padding-bottom: calc(3em + env(safe-area-inset-bottom));
  }

  .bio {
    line-height: 125%;
  }

  .friends-list {
    gap: 2rem;
  }

  .friends-col {
    flex: 1;
    min-width: 0;
    gap: 0.15rem;
  }
}
