:root {
  --content-width: 65rem;

  /* Greys */

  --white: #FFFFFF;
  --grey-very-light: #F2F2F3;
  --grey-light: #E5E6E7;
  --grey: #BBBDBF;
  --grey-dark: #626366;
  --black: #121313;

  /* Purple */
  --purple-light: #D3C5D5;
  --purple: #6E2F75;
  --purple-very-dark: #36173A;

  /* Blues */

  --blue-light: #66B9E7;
  --blue: #397193;
  --blue-very-dark: #062434;

  /* Reds */

  --red: #D7141B;
  --red-dark: #B61116;

  /* Match colors to usage */

  --page-background: var(--grey-very-light);
  --heading-spotlight: var(--purple);
}

@media print {
  :root {
    --content-width: none;
    --page-background: transparent;
  }
}

*,
*:after,
*:before{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: alda, serif;
  font-size: 20px;
  background-color: var(--page-background);
}

@media print {
  html { font-size: 12pt; }
}


p {
  line-height: 1.6rem;
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5 {
  font-family: mr-eaves-xl-modern-narrow, sans-serif;
}

h1 {
  font-weight: bold;
  font-size: 4rem;
  line-height: 1;
  color: var(--heading-spotlight);
}

h1.small {
  font-size: 2rem;
}

h2 {
  font-weight: normal;
  font-size: 3rem;
  line-height: 3rem;
}

h3 {
  font-weight: bold;
  font-size: 2rem;
  line-height: 2rem;
  color: var(--heading-spotlight);
}

h4 {
  font-weight: normal;
  font-size: 1.75rem;
  line-height: 2rem;
}

h5 {
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--heading-spotlight);
}

h5 {
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.8rem;
}

a {
  color: currentColor;
}

strong, b {
  font-weight: bold;
}

img {
  width: 100%;
}

.page {
  padding: 5vh 5vw 10vh;
  display: grid;
  grid-template-rows: fit-content fit-content;
  grid-template-columns: 1fr 3fr;
  grid-gap: 1rem 4rem;
}

@media print {
  .page {
    display: block;
  }
}

.page header {
  grid-column-start: 1;
  grid-column-end: -1;
}

.page nav {
    --header-background: var(--grey-light);
    --subtitle: var(--black);
    background-color: var(--header-background);
    padding: 2em 2em 1.5em;
    border-radius: 0.25em;
    position: relative;
}

@media print {
  .page nav {
    display: none;
}
}

/*.page > * {
  max-width: var(--content-width);
  margin: 0 auto;
}*/

@media print {
  .page { padding: 0; }
}

.header {
}

.header a {
  position: relative;
  text-transform: uppercase;
  font-size: .875rem;
  letter-spacing: .05em;
  padding: .5rem 0;
  font-weight: 700;
}

.header .logo {
  display: block;
  margin-bottom: 1.5rem;
  padding: .5rem 0;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu ul ul {
  margin-left: 1.5rem;
}

.menu a {
  /*margin: 0 .75rem;*/
}

.menu a[aria-current] {
  font-weight: bold;
}

@media screen and (min-width: 40rem) {
  .header .logo {
    margin-bottom: 0;
  }
  .header {
    flex-direction: row;
    justify-content: space-between;
  }
  .menu {
    margin-right: -.75rem;
  }
}


main {
  min-height: calc(100vh - 10rem);
}

.intro {
  padding: 10vh 0;
}

.tags {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: .75rem;
  font-weight: 600;
}

.text {
  line-height: 1.5em;
}
.text p,
.text figure,
.text ul,
.text ol {
  margin-bottom: 1.5em;
}
.text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}
.text > *:first-child {
  margin-top: 0;
}

.text figure {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.text img {
  width: 100%;
}

.footer {
  padding: 1.5rem 5vw 10vh;
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto;
  line-height: 1.5em;
}
.footer a {
  display: inline-block;
  font-size: .875rem;
}
.footer > a {
  margin-bottom: 1.5rem;
  border-top: 2px solid #000;
  width: 16.5rem;
  padding-top: .5rem;
}

.social a {
  margin: 0 .75rem;
  padding: .5rem 1rem;
  border: 2px solid #000;
  width: 7.5rem;
}
.social a:hover {
  background: #000;
  color: #fff;
}

/* Tables */

table {
  --borders: var(--grey-dark);
  --padding: .25rem;
  border: 1px solid var(--borders);
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--borders);
  padding: calc(var(--padding) / 2) var(--padding);
}

/* Knockout header */

.knockout-header {
    --header-background: var(--grey-light);
    --subtitle: var(--black);
    background-color: var(--header-background);
    padding: 2em 2em 1.5em;
    margin-left: -.75rem;
    margin-right: -.75rem;
    margin-bottom: 8.5em;
    border-radius: 0.25em;
    position: relative;
}

.knockout-header.koh-small {
  margin-bottom: 1rem;
}

@media print {
  .knockout-header { margin: 0; }
}

.subtitle {
  display: block;
  width: fit-content;
  font-family: alda, serif;
  color: var(--subtitle);
  font-size: 1rem;
  line-height: 1rem;
}

.knockout-header .project-image {
  float:right;
  border-radius: 0.25em;
  max-width: 33%;
  max-height: 320px;
}

/* Issue Header */

.issue-header {
  --highlight-color: var(--blue);
  --subtitle: var(--blue);
  margin: 2rem 0 1rem;
  display: flex;
  justify-content: space-between;
}

.issue-header .subtitle {
  padding-top: 1rem;
  /*border-top: .5rem solid var(--subtitle);*/
  position:relative;
}

.issue-header .subtitle::before {
  content: "";
  position: absolute;
  top:0;
  left: 0;
  display: block;
  background-color: var(--subtitle);
  width: 3rem;
  height: 5px;
}

.issue-header .infos {
  display: flex;
}

.issue-header .info {
  text-align: center;
  background-color: var(--highlight-color);
  color: var(--white);
  border-radius: .5rem .5rem .25rem .25rem;
  width: 5rem;
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
  align-self: flex-start;
}

.issue-header .info strong {
  display: block;
  color: var(--highlight-color);
  background-color: var(--white);
  border: 2px solid var(--highlight-color);
  border-radius: .25rem .25rem 0 0;
}

.issue-header .info span {
  flex: 1;
  padding: .5rem 0;
  text-transform: uppercase;
  vertical-align: middle;
}

.issue-header .info.high {
  --highlight-color: var(--red-dark);
}

.issue-header .info.low {
  --highlight-color: var(--grey-dark);
}

.whereandwhy {
  clear: both;
  display: flex;
}

.whereandwhy div{
  margin-right: 3rem;
}

.prevnext {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid  var(--grey);
}

.prevnext:first-child {
  border-top: none;
  border-bottom: 1px solid  var(--grey);
}