:root {
  --base-font-size: 2vh;
  --heading-font-size: 3rem;
  --spacing: 2rem;
}

@media (max-width: 600px) {
  :root {
    --base-font-size: 1.5vh;
    --heading-font-size: 3rem;
    --spacing: 1rem;
  }
}

html {
  font-family: "FreeSans", sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
}

canvas {
  position: absolute;
  z-index: -100;
}

nav {
  display: flex;
  flex-flow: row nowrap;
  column-gap: 2ch;
}

.screen {
  margin: 0 var(--spacing);
  height: 100vh;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: start;
}

.first.screen {
  position: relative;
  height: calc(100vh - 2 * var(--spacing));
  margin: var(--spacing);
}

.first.screen > div.top {
  position: absolute;
  top: var(--spacing);
  max-width: calc(100vw - 4 * var(--spacing));
}

.first.screen > div.bot {
  font-size: 0.875rem;
  text-align: right;
  position: absolute;
  bottom: var(--spacing);
  right: var(--spacing);
  max-width: calc(100vw - 4 * var(--spacing));
  padding: 1rem;
}

.screen > * {
  background-color: rgba(255, 255, 255, 0.875);
}

.screen h1 {
  font-family: "FreeSerif";
  font-size: var(--heading-font-size);
  font-weight: normal;
  padding: 1rem 1rem 0 1rem;
  margin: 0;
}

@media (max-width: 600px) {
  .screen h1 {
    font-size: calc(0.66 * var(--heading-font-size));
  }
}

.screen p {
  padding: 0 1rem;
  margin: 1rem 0;
}

.screen > div {
  margin-left: var(--spacing);
}

header {
  background-color: rgba(255, 255, 255, 0.875);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;

  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}

footer {
  position: absolute;
  bottom: var(--spacing);
  max-width: calc(100vw - 4 * var(--spacing));
  background-color: rgba(255, 255, 255, 0.875);
}

a {
  color: #000;
  text-decoration: none;
  border-bottom: 0.125rem solid rgba(64, 128, 64, 0.25);
  transition: 0.125s all;
}

a:hover {
  border-bottom-color: rgba(64, 128, 64, 0.75);
}

.alt {
  font-family: "FreeSerif";
  font-size: 1.2em;
}

.alt.tight {  
  position: relative; left: -0.2ch
}

.alt.i {
  font-style: italic;
}

#team-members {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  column-gap: 0.5rem;
}

.team-member {
  font-size: 0.875rem;
}

.title {
  font-family: "FreeSerif";
  display: flex;
  flex-flow: column nowrap;
  font-weight: normal;
  padding: 1rem 1rem 0 1rem;
  margin: 0;
  line-height: 1;
}

.title > .first.line {
  font-size: calc(0.875 * var(--heading-font-size));
}

.title > .second.line {
  font-size: calc(0.875 * var(--heading-font-size));
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  column-gap: 0.5ch;
}

.title > .second.line > .highlight {
  font-size: var(--heading-font-size);
}
