* {
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
}

body {
  font-family: "Open Sans", Verdana, sans-serif;
  color: #191919;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  font-size: calc(13px + (17 - 13) * ((100vw - 300px) / (1600 - 300)));
  height: 100%;
  width: 100%;
  background-color: #e8e8e8;
}

ul, li {
  margin: 0;
  padding: 0;
}

li {
  list-style-type:none;
  padding: 2px;
  margin: 2px 0;
}

.main {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
}

@media screen and (max-width: 800px) {
  .main {
    flex-direction: column;
  }
}

@media screen and (min-width: 801px) { 
  .main {
    padding-left: calc(10px + (48 - 10) * ((100vw - 800px) / (1600 - 800)));
  }
}

.sider {
  flex: 0 0 15%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

@media screen and (max-width: 800px) {
  .sider {
    position: sticky;
    top: -3rem;
    flex-direction: row;
    background: #e8e8e8;
    z-index: 1000;
    justify-content: space-between;
    align-items: baseline;
  }
}

.image {
  object-fit: cover;
  float:right;
  margin-left: 0.5em;
  margin-bottom: 0.5em;
}

.image--rect {
  width: 15vw;
}

.image--rounded {
  height: 15vw;
  width: 15vw;
  border-radius: 50%;
}


@media screen and (max-width: 800px) { 
  .image {
    height: 30vw;
    width: 30vw;
  }
}

.title {
  display: block;
  font-size: 2.5em;
  line-height: 1;
  font-weight: 900;
  margin: 4rem 2rem 0rem 2rem;
  white-space: nowrap;
  cursor: pointer;
}

.title__firstname {
  letter-spacing: 2px;
  font-size: 1.024em;
}

@media screen and (max-width: 800px) { 
  .title {
    font-size: 2em;
    margin-bottom: 0.5rem;
    margin-top: 3rem;
  }

  .title__firstname {
    letter-spacing: 1.4px;
    font-size: 1.024em;
  }
}


.menu {
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem 1rem 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
}

.menu__items {
  display: flex;
  flex-direction: column;
}

.menu__item {
  color: #161718;
  text-decoration: none;
  padding: 0.5em 0.6em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.9em;
  white-space: nowrap;
}

.menu__item:hover {
  text-decoration: underline;
}

.menu__item--active {
  background: black;
  color: white;
}

.toggle,
#menu__toggle {
  display: none;
}

@media only screen and (max-width: 800px) {
  .menu {
    flex-direction: column;
    align-items: flex-end;
  }

  label .menu__item {
    display: none !important;
  }

  #menu__toggle:checked + label .menu__item {
    display: block !important;
    font-size: 1.1em;
  }

  .toggle {
    display: block !important;
    text-align: right;
    font-size: 1.5em;
    cursor: pointer;
    align-self: flex-end;
    padding: 0 5px;
  }

  .toggle:focus {
    outline: none !important;
  }

  .toggle:hover, .toggle:active{
    background: black;
    color: white;
  }

  #menu__toggle:checked + .toggle {
    background: black;
    color: white;
  }

  #menu__toggle:checked + label .menu__items {
    height: calc(100vh - 3em);
    width: 100vw;
    position: absolute;
    top: 3em;
    right: 0;
    justify-content: center;
    z-index: -1;
    align-items: center;
    background-color: #e8e8e8;
  }
}

.content {
  flex: 1;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
  padding: 0 4rem;
  height: 100%;
}

.section {
  max-width: 650px;
}

:target:before {
  content: "";
  display: block;
}

.section:last-of-type {
  height: 100%; 
  position: relative;
}

.section__title {
  color: #161718;
  font-weight: 900;
  font-size: 1.5em;
  padding-bottom: 0.8em;
  padding-top: 4rem;
  position: sticky;
  top: 0rem;
  background: #e8e8e8;
  width: 100%;
}

.section__title span { 
  transition: all 0.25s ease;
  padding: 5px;
  margin: -5px;
}

.section--active > .section__title > span {
  background: black;
  color: white; 
}

@media only screen and (max-width: 800px) {
  .section:last-of-type {
    height: calc(100% + 2rem);
  }

  .content {
    padding: 0 2rem;
  }

  .section__title {
    top: -2rem;
  }
}

.section__title > a {
  display: none;
}

.section__subtitle {
  color: #161718;
  font-weight: 900;
  font-size: 1.1em;
  padding-bottom: 0.5em;
}

.section__subtitle:not(:first-of-type) {
  padding-top: 0.5em;
}

.section__content {
  padding-bottom: 1em;
}

.link {
  color: black;
  text-decoration: underline;
}

.link:hover {
  background: black;
  color: white;
  opacity: 1;
}

.copyright {
  position: absolute; 
  bottom: 0px;
  padding: 10px 0 3em 0;
  margin: auto;
  text-align: center;
  font-size: 0.75em;
  background: #e8e8e8;
}