:root {
  --surface: white;
  --highlight: hsl(180, 8%, 3%);
  --underlay: hsl(180, 8%, 13%);
}

body {
    width: clamp(50vw, 900px, 90vw);
    margin: auto;
    margin-top: 4em;

    background-color: var(--surface);
    color: var(--highlight);

    font-family: 'Courier New', Courier;
    font-weight: 100;
    font-size: 1.5rem;
    line-height: 2rem;
}

header.nav {
    height: 5vh;
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid var(--highlight);
}

header.nav .menu-btn,
header.nav .menu-icon {
  display: none
}

main {
    padding: 15px;
    margin: auto;
    margin-top: 15px;
}

a {
    color: var(--highlight);

    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

article {
    padding: 10px;
    padding-top: 0;
}

article h2 {
    margin-bottom: 5px;
    display: inline;
}

article p {
    font-weight: 100;
}

p {
    font-weight: lighter;
}

h1.center {
    width: 100%;
    text-align: center;
}

hr {
    color: var(--highlight);
}

article span {
    white-space: nowrap;
    font-weight: 100;

    display: inline;
}

article span.date {
    margin-left: .5rem;
}

figure {
    width: 100%;
}

img {
    width: 100%
}

code {
  padding: .1rem;
  background-color: var(--highlight);
  color: var(--surface);
}

figcaption {
    width: 100%;

    font-weight: lighter;
    text-align: center;
    font-size: 1.5rem;

    color: var(--underlay);
}

.fullwidth {
    width: 100%;
}

.hero {
    column-gap: 5%;
    display: flex;
}

.hero img {
    width: 30%;
    border-radius: 50%;

    margin: auto;
}

.hero div {
  width: 70%
}

.hero div * {
  width: 100%
}

@media (max-device-width: 400px) {
    .hero {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .hero div {
      width: 100%
    }

    header.nav .menu-icon {
      display: block;
    }

    header.nav nav {
      display: none;
      width: 100vw;
      height: 100vh;
    }

    header.nav .menu-btn:checked ~ .menu-icon {
      z-index: 3;
      content: "X"
    }

    header.nav .menu-btn:checked ~ nav {
      display: block;
      position: fixed;
      top: 0;

      z-index: 2;

      width: 100vw;
      height: 100vh;
      padding-top: 30vh;

      background-color: var(--surface)
    }

    header.nav .menu-btn:checked ~ nav a {
      display: inline-block;
      width: 100vw;
      height: 10vh;
      line-height: 10vh;
    }

    article span {
      margin-left: 0;
      display: block;
    }
}
