/* Fonts */
@font-face {
  font-family: 'Roboto Flex';
  src: url('fonts/roboto-flex/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf');
}

@font-face {
  font-family: 'Roboto Slab';
  src: url('fonts/roboto-slab/RobotoSlab-VariableFont_wght.ttf');
}

@font-face {
  font-family: 'Roboto Mono';
  src: url('fonts/roboto-mono/RobotoMono-VariableFont_wght.ttf');
}

/* Reset some stuff */
* {
  box-sizing: border-box;
  font-family: 'Roboto Flex', Verdana, sans-serif;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Roboto Slab', Georgia, serif;
}

html {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 100vh;

  font-size: 20px;
}

body {
  width: 100vw;
  min-height: 100vh;

  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 3rem;

  & > header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

    column-gap: 3rem;

    border-bottom: 2px solid black;
    padding: 1rem;
    width: 100vw;

    & > span {
      font-size: 1.8rem;
      font-family: 'Roboto Slab', Georgia, serif;
      font-weight: bold;
    }

    & > nav {
      display: flex;
      flex-direction: row;
      gap: 0.6rem;
    }
  }

  & > main {
    max-width: calc(100vw - 4rem);
    width: 36rem;

    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    line-height: 1.6;

    & > header, h1, h2, h3, h4, h5, h6 {
      line-height: 1.2;
    }

    & > header {
      font-family: 'Roboto Slab';
      font-size: 1.8rem;
      font-weight: bold;
      margin-bottom: 0.4rem;
      text-align: center;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }

    & > nav {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;

      column-gap: 1rem;
      row-gap: 0.4rem;
    }
  }

  & > footer {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    border-top: 2px solid black;
    padding: 1rem;
    text-align: center;
    width: 100vw;
  }
}

