@font-face {
  font-family: "berthold-block";
  src: url("BlockBerthold.ttf");
}

@font-face {
  font-family: "Arbutus Slab";
  src: url("ArbutusSlab-Regular.ttf");
}

@font-face {
  font-family: "Google Sans";
  src: url("GoogleSans.ttf");
}

@font-face {
  font-family: "Inter";
  src: url("Inter.ttf");
}

:root {
  background-color: #fefff7;
}

body {
  /* background-image: url('paper-texture.svg');
  background-repeat: repeat;
  background-size: 500px 500px; */

  /* font-family: "berthold-block", sans-serif; */
  /* font-family: "Arbutus Slab", sans-serif; */
  font-family: "Google Sans", sans-serif;
  /* font-family: "Inter", sans-serif; */
  font-style: normal;
  color: var(--font-color);
}

a {
  color: #30313e;
}

a :visited {
  color: #454545;
}

p {
  font-weight: 400;
  max-width: 40rem;
}

h1,h2,h3,h4,h5,h6 {
  font-family: "berthold-block", sans-serif;
  font-weight: 800;
}

body {
  display: grid;
  grid-template-columns: 1fr 5fr;
  min-height: 100vh;
  max-width: 360mm;
  margin: 0 auto;
}

main {
  margin: 1.2rem;
}

main img {
  max-width: 40rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

main>table {
  max-width: 40rem;
  border-collapse: collapse;
}

main>table td {
  border: 1px solid gray;
  padding: .2rem;
}

footer {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

menu {
  display: flex;
  flex-direction: column;
  align-items: end;
  margin-right: .5rem;
  margin-left: .5rem;
}

menu * {
  margin-top: .3rem;
  margin-right: 1rem;
  margin-bottom: .3rem;
  margin-left: 1rem;
}

menu :first-child {
  max-height: 40mm;
  align-self: center;
}

menu a {
  text-decoration: none;
  font-size: 1.6rem;
  font-family: "berthold-block", sans-serif;
}

section {
  padding: .3rem .3rem .3rem .3rem;
}

div.home {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

section.featured {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: row;
}

section.featured>div {
  flex: 0 1 auto;
  margin-top: .2rem;
  margin-right: .2rem;
  margin-bottom: .2rem;
  margin-left: .2rem;
}

section.featured>div>a {
  position: relative;
  display: inline-block;
}

section.featured>div>a::after {
  position: absolute;
}

section.featured>div>a>small {
  position: absolute;
  right: .6rem;
  bottom: .5rem;
  color: #fefff7;
  font-size: .8rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

section.featured>div>a>img {
  max-height: 30rem;
  max-width: 100%;
  margin: 0;
}

section.feed>ul {
  list-style: none;
  padding-left: .8rem;;
}

section.feed>ul>li>h3 {
  margin-bottom: .2rem;
}

section.feed>ul>li>p {
  margin-top: .2rem;
  margin-bottom: .2rem;
}

div.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

div.cards h2 {
  margin: .5rem 0;
}

div.cards h3 {
  margin: .5rem 0;
}

div.cards p {
  margin: .5rem 0;
}

.icon {
  display: inline-block;
  color: #fefff7;
  background-color: #454545;
  padding: .1rem .2rem;
  border-radius: 2px;
}

.c41-icon {
  display: inline-block;
  color: #fefff7;
  background: linear-gradient(cyan, magenta, yellow);
  padding: .1rem .2rem;
  border-radius: 2px;
}

.e6-icon {
  display: inline-block;
  color: #fefff7;
  background: linear-gradient(red, green, blue);
  padding: .1rem .2rem;
  border-radius: 2px;
}

.ecn2-icon {
  display: inline-block;
  color: #fefff7;
  background: linear-gradient(cyan, magenta, yellow);
  padding: .1rem .2rem;
  border-radius: 2px;
  border: 1px solid black;
}

.svg-icon {
  max-height: .7em;
  max-width: 1.6em;
  display: inline-block;
  margin: 0;
}

.format-icon {
  align-items: center;
  color: #fefff7;
  background-color: #454545;
  padding: .1rem .3rem;
  border-radius: 2px;
}

.format-icon .svg-icon {
  filter: invert(1);
}

img.member-image {
  width: 100%;
  margin: 0;
}

@media (width <= 800px) {
  :root {
    font-size: 4mm;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: auto;
    max-width: auto;
    margin: auto;
  }

  menu {
    flex-direction: row;
    margin-left: 0;
    padding-left: 0;
    flex-wrap: wrap;
  }

  menu :first-child {
    max-height: 20mm;
    align-self: center;
  }

  menu a {
    font-size: 1.2rem;
    margin-top: 2rem;
  }

  section.featured {
    flex-wrap: wrap;
    justify-content: center;
  }

  section.featured>div>a>img {
    max-height: 20vh;
    max-width: none;
  }

  div.cards {
    grid-template-columns: 1fr;
  }
}