/****************************************
Variables
****************************************/
@font-face {
  font-family: "Super";
  src: url("/assets/fonts/GT-Super-Text-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Super-italic";
  src: url("/assets/fonts/GT-Super-Text-Regular-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Super-medium";
  src: url("/assets/fonts/GT-Super-Text-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Super-large";
  src: url("/assets/fonts/GT-Super-Display-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Walsheim";
  src: url("/assets/fonts/GT-Walsheim-Regular.woff") format("woff");
}
/****************************************
Reset
****************************************/
*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  font-family: Walsheim, serif;
  font-weight: normal;
  font-size: 1.3rem;
  line-height: 2rem;
  letter-spacing: -0.01em;
  text-align: center;
  color: currentColor;
  text-decoration: none; /* Remove underlines for links */
}

html {
  font-size: 14px; /* Rem used as line height*/
  color: #222222;
}

body {
  background-color: #f6f6f4;
  margin: 2rem; /* All around margins */
  margin-top: 4rem;
}

/****************************************
Type
****************************************/
h1 {
  font-family: Super-large, serif;
  font-weight: normal;
  font-size: 5.8rem;
  line-height: 6rem;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 8rem;
}

h2 {
  font-family: Super, serif;
  font-weight: normal;
  font-size: 2rem;
  line-height: 3rem;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 4rem;
}

p {
  font-family: Walsheim, serif;
  font-weight: normal;
  font-size: 1.3rem;
  line-height: 2rem;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 4rem;
}

em {
  font-family: Super-italic, serif;
  font-weight: normal;
  font-size: 1.3rem;
  line-height: 2rem;
  letter-spacing: -0.01em;
  text-align: center;
  font-style: normal;
}

a {
  font-family: Walsheim, serif;
  font-weight: normal;
  font-size: 1.3rem;
  line-height: 2rem;
  letter-spacing: -0.01em;
  text-align: center;
  display: block;
}

footer {
  font-family: Walsheim, serif;
  font-weight: normal;
  font-size: 1.3rem;
  line-height: 2rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.article-page p, li {
  text-align: left;
}

/****************************************
Navigation
****************************************/
.navigation {
  margin-bottom: 0rem;
  display: flex;
  justify-content: center;
}

.navigation a {
  font-family: Walsheim, serif;
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0em;
  text-align: center;
  margin-left: 1em;
}

/****************************************
Lists
****************************************/
ol {
  font-family: Walsheim, serif;
  font-weight: normal;
  font-size: 1.3rem;
  line-height: 2rem;
  letter-spacing: -0.01em;
  text-align: center;
  list-style-position: inside;
  margin-bottom: 4rem;
}

ul {
  font-family: Walsheim, serif;
  font-weight: normal;
  font-size: 1.3rem;
  line-height: 2rem;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 4rem;
}

.article-page ol, ul {
  list-style-position: outside;
}

/****************************************
Page structure
****************************************/
.page, .toc-page, .article-page {
  width: 90%;
  margin: 0 auto;
  margin-bottom: 2rem;
  max-width: 100rem;
}

.article-page {
  max-width: 60rem;
}

.text {
  margin-bottom: 8rem;
}

.logotype {
  margin-bottom: 2rem;
}

/****************************************
Home page
****************************************/
.page li {
  text-align: center;
}

.page a {
  border-bottom: 1px solid #222222;
  display: inline-block;
}

/****************************************
Articles table of content
****************************************/
.toc-page li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #aaaaaa;
}

.toc-page li:first-of-type {
  border-top: 1px solid #aaaaaa;
  padding-top: 1rem;
}

/****************************************
Images
****************************************/
figure {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 8rem;
  margin-bottom: 8rem;
  margin-inline-start: 0;
  margin-inline-end: 0;
  width: 100%;
}

img {
  width: 100%;
}

figure.small {
  width: 60%;
  margin: 0 auto;
  margin-top: 8rem;
  margin-bottom: 8rem;
}

/****************************************
Buttons
****************************************/
a.button {
  font-family: Walsheim, serif;
  font-weight: normal;
  font-size: 1.3rem;
  line-height: 2rem;
  letter-spacing: -0.01em;
  text-align: center;
  background-color: #f6f6f4;
  border: 1px solid #222222;
  padding: 2rem 4rem;
  text-align: center;
  text-decoration: none;
  display: block;
  width: fit-content;
  margin: 0 auto;
  margin-top: 6rem;
}

/****************************************
Images
****************************************/
footer {
  font-family: Walsheim, serif;
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0em;
  text-align: center;
}

/****************************************
Responsive layouts
****************************************/
/****************************************
Phone
****************************************/
@media (max-width: 600px) {
  body {
    margin: 1rem; /* All around margins */
    margin-top: 2rem;
  }
  .page, .toc-page, .article-page {
    width: 100%;
  }
  .logotype {
    margin-bottom: 0rem;
  }
  img {
    margin-bottom: 0rem;
  }
  h1 {
    margin-bottom: 4rem;
  }
  .text {
    margin-bottom: 2rem;
  }
  .navigation {
    margin-bottom: 2rem;
  }
}
