body {
  margin: 0;
  padding: 0;
  /* width: 100vw; */
  /* height: 100vh; */

  display: grid;
  grid-template-columns: 1fr minmax(auto, 1200px) 1fr;
  grid-template-rows: auto auto 2em;

  font-family: Tahoma, Geneva, sans-serif;
  letter-spacing: 0.025em;
  font-size: 1.1em;

  user-select: none;
}

.header-border {
  grid-row: 1;
  grid-column-start: 1;
  grid-column-end: 4;

  align-self: end;

  position: sticky;

  top: 0;

  height: 100%;

  border-bottom: solid thin var(--color-2-50);
}

header {
  grid-row: 1;
  grid-column: 2;

  align-self: center;


  padding-top: .5em;
  padding-bottom: .25em;

  display: flex;
  justify-content: space-between;

  position: sticky;
  top: 0;

  background: var(--bg-color);
}

nav .selected {
  color: var(--text-color-light);
  /* text-decoration: underline; */
}


#page-heading {
  font-size: 2.25em;

  font-weight: 525;
}

#page-heading a:hover {
  color: inherit;
  text-decoration: none;
}

#top-nav {
  display: flex;
  gap: 1em;

  align-self: end;

  margin-bottom: .225em;
}

#switcher {
  align-self: end;
  display: flex;
  margin-bottom: .225em;
}

#switcher .current {
  color: var(--text-color-light)
}

#theme-switch {
  display: flex;
  font-weight: bold;
}

main {
  grid-row: 2;
  grid-column: 2;

  margin-bottom: 2em;
}

footer {
  grid-row: 3;
  grid-column: 2;

  font-size: small;
  align-self: center;

  text-align: center;
}

.footer-border {
  grid-row: 3;
  grid-column-start: 1;
  grid-column-end: 4;

  height: 100%;

  border-top: solid thin var(--color-2-50);
}

.color-2 {
  color: var(--color-2)
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.5s ease-in-out;
}

a:hover {
  text-decoration: underline;
  color: var(--text-color-light);
  cursor: pointer;
}

.heading {
  text-align: center;

  color: var(--color-2);
  text-transform: uppercase;
  font-size: 1.5em;
  font-weight: 400;

  margin-top: .5em;
  margin-bottom: .75em;
  border-bottom: solid thin var(--color-2-50);
}

.heading2 {
  text-transform: uppercase;
  text-align: center;
  color: var(--color-2);
  /* padding-left: 2em; */
  font-size: 1.20em;
  margin-bottom: .5em;
}

.btn {
  border: thin solid var(--text-color-50);
  transition: color 0.5s ease-in-out;
  transition: background-color 0.5s ease-in-out;
}

.btn:hover {
  cursor: pointer;
  color: var(--bg-color);
  background-color: var(--text-color);
}

.btn.contact {
  padding: .25em;
  margin-bottom: none;
  width: 6em;
  text-align: center;
}

a.btn.contact {
  padding-left: .5em;
  padding-right: .5em;
}

.content {
  text-align: center;
  margin-bottom: 3em;
}

.content>div {
  margin-bottom: 1em;
}

.content>ul {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}


@media (max-width: 1200px) {
  body {
    grid-template-columns: 1em 1fr 1em;
  }

  header,
  main,
  footer {
    grid-column: 2;
  }

  header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: .5em;
  }

  #page-heading {
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
  }

  #top-nav {
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
  }

  #switcher {
    grid-row: 2;
    grid-column: 2;
  }
}

@media (max-width: 580px) {
  #page-heading {
    font-size: x-large;
    justify-self: center;
    grid-column: 1/span 2;
  }

  #top-nav {
    justify-self: left;
  }

  #switcher {
    justify-self: right;
  }
}

@media (max-width: 475px) {
  #page-heading {
    font-size: large;
    justify-self: left;
    grid-column: 1;
  }

  #top-nav {
    justify-self: left;
    grid-column: 1/span 2;
  }

  #switcher {
    grid-row: 1;
    grid-column: 2;
    margin-bottom: none;
  }
}