:root {
  scroll-snap-type: y proximity;
  scroll-padding: 1em;
}

body {
  font-size: 24px;
  margin: 1rem;
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 2rem);
  box-sizing: border-box;
}

h1, h2 {
  font-size: inherit;
}

h1 {
  margin-top: 0.25rem;
}

h2 {
  margin-bottom: 0;
}

a, a:visited, a:active {
  color: black;
  text-decoration: none;

}

nav {
  flex: max-content 0 0;
  align-self: start;
  position: sticky;
  top: 0;
  padding-top: 1em;
  margin-right: 2em;

  section {
    display: flex;
    flex-direction: column;
  }
}

main {
  flex: auto 1 1;
  line-height: 0;

  > img {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    max-width: 100%;
    height: calc(100vh - 2rem);
    object-fit: contain;
    margin: 1rem 0;
  }

  > section {
    max-width: 100%;
    line-height: initial;
    display: block;
    margin: 1rem 0;
  }

  a {
    display: block;
  }
}

main.about {
  > img {
    scroll-snap-align: unset;
    scroll-snap-stop: unset;
    max-width: 100%;
    height: calc(100vh - 2rem);
    object-fit: contain;
    margin: 1rem 0;
  }
}
