/****************************/
/* general */
/****************************/

html, body {
  font-family: 'Jost*', sans-serif;
  font-weight: 300;
  font-style: normal;
  background-color: var(--page-background);
  scrollbar-gutter: stable;
  color: var(--page-text);
}

strong {
  font-weight: normal;
}

ul[role="list"] {
  list-style: disc;
  padding-inline-start: 1.5em;
}

ol {
  list-style: decimal;
  padding-inline-start: 1.5em;  
}

p {
  margin-top: 1em;
  margin-bottom: 1em;
}

a {
  color: inherit;
  text-decoration: underline dotted var(--page-text);
  text-underline-offset: 0.25em;
  /*font-weight: normal;*/
}

a:hover {
  /*background: linear-gradient(#fff, #222);*/
  text-decoration: underline;
}

/****************************/
/* containers */
/****************************/

.container {
  margin: 0 auto;
  max-width: 60em;
}

/* everything but the headers/footers */
.content-container {
  background: var(--page-background);
  line-height: 1.75;
  padding: 1rem;
}

/****************************/
/* headers */
/****************************/

h1 {
  font-weight: normal;
  font-size: 2.5em;
}

h2 {
  font-weight: normal;
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-weight: normal;
  font-size: 1.25em;
}

header h1 {
  padding: 0.5em 0;
  background-color: var(--header-background);
  color: var(--header-text);
  border-image: linear-gradient(var(--header-background)) fill 0//0 100vw;
}

header h1 a {
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: none;
}

header input, header label {
  display: none;
}

/****************************/
/* nav */
/****************************/

nav {
  background: var(--menu-background);
  position: relative;
  margin-top: 0.25rem;
}

nav ul li {
  display: inline;
}

nav a {
  color: var(--menu-text);
  display: inline-block;
  padding: 1em;
  text-decoration: none;
  font-weight: normal;
}

nav a:hover, nav li.current-page a {
  color: var(--menu-active-text);
  background: var(--menu-active-background);
  text-decoration: none;
}

/****************************/
/* mini-banner */
/****************************/
.mini-banner {
  background: url(/images/mini-banner.jpg) 50% 40%/cover;
  opacity: 0.6;
  height: 80px;
  margin-top: 0.25rem;
}

/****************************/
/* footer */
/****************************/

footer {
  clear: both;
  text-align: center;
  margin-bottom: 5em;
  line-height: 1.5;
}

footer li {
  display: inline-block;
}

footer li::after {
  content: " • ";
}

/****************************/
/* mobile */
/****************************/
@media screen and (max-width: 820px) {
  .container {
    overflow-x: hidden;
  }

  header {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
  }

  header h1 {
    flex: auto;
    margin-inline: 0.1em;
  }

  nav {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 0;
    width: 100%;
    background: transparent;
  }

  header label {
    color: var(--menu-text);
    background: var(--menu-background);
    display: block;
    padding: 0.5em;
    margin-inline: 0.5em;
    text-decoration: none;
    font-weight: normal;
    text-align: right;
    font-size: 0.75rem;
    border-radius: 0.5em;
  }

  nav ul li {
    display: block;
    text-align: right;
  }

  nav ul {
    position: absolute;
    left: 100vw;
    z-index: 9999;
    background: var(--menu-background);
    transition: 0.2s;
    width: 80%;
    opacity: 0%;
  }

  header label::after {
    content: " Ξ";
  }

  #menu-toggle:checked ~ nav ul {
    left: 20%;
    opacity: 100%;
  }

  #menu-toggle:checked + label {
    color: var(--menu-active-text);
    background: var(--menu-active-background);
  }

  nav a {
    display: block;
  }
}
