/****************************************
Fonts
****************************************/
@font-face {
  font-family: "Arbeit";
  src: url("/assets/fonts/arbeit-book.woff") format("woff");
}
/****************************************
Variables & mixins
****************************************/
/****************************************
Reset
****************************************/
*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: currentColor;
  text-decoration: none; /* Remove underlines for links */
}

html {
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
  font-size: 24px; /* Rem used as line height*/
  color: #333333;
}

body {
  margin: 2rem; /* All around margins */
}

/****************************************
Typography
****************************************/
h1 {
  font-family: Arbeit, serif;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

h2 {
  font-family: Arbeit, serif;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 3rem;
  margin-bottom: 4rem;
  padding-top: 1.5rem;
}

h2:after {
  content: "";
  display: block;
  color: #333333;
  background-color: #333333;
  margin-top: 0.75rem;
  height: 2px;
  width: 2rem;
}

h3 {
  font-family: Arbeit, serif;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

h4 {
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

p {
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1.5rem;
}

a {
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
}

.content a {
  border-bottom: 1px solid #333333;
}

ol {
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1.5rem;
}

ul {
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  list-style-type: circle;
  margin-bottom: 1.5rem;
}

li {
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
  padding-left: 0.25em;
  margin-left: 1em;
}

/****************************************
Header area with navigation
****************************************/
header {
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
}

header.front-page {
  margin-bottom: 1rem;
}

.menu {
  display: flex;
}

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

a.logo {
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
}

/****************************************
Footer
****************************************/
footer {
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
  width: 100%;
  border-top: 1px solid #cccccc;
  padding-top: 1rem;
  display: flex;
}

footer a {
  margin-right: 1.5rem;
}

/****************************************
Table on contents
****************************************/
.contents-page {
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.content-row {
  grid-column: span 3;
  border-bottom: 1px solid #cccccc;
  padding-top: 0rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.content-row:last-of-type {
  margin-bottom: 2rem;
}

.contents-page h1 {
  font-family: Arbeit, serif;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
  grid-column: span 2;
  width: 100%;
  margin: 0;
  margin-bottom: 3rem;
}

.contents-page h1.big-title {
  font-family: Arbeit, serif;
  font-weight: normal;
  font-size: 4.2rem;
  line-height: 4rem;
  letter-spacing: -0.05em;
  grid-column: span 2;
  width: 100%;
  margin: 0;
  margin-bottom: 3rem;
}

.contents-page h2 {
  grid-column: span 3;
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
  margin: 0;
  margin-bottom: 3rem;
  width: 100%;
}

.contents-page h3 {
  font-family: Arbeit, serif;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0;
  padding-bottom: 0.5rem;
}

.contents-page p {
  font-family: Arbeit, serif;
  font-weight: normal;
  font-size: 4.2rem;
  line-height: 4rem;
  letter-spacing: -0.05em;
  grid-column: span 2;
  width: 100%;
  margin: 0;
}

.contents-page p:first-of-type {
  margin: 0;
}

.contents-page img {
  grid-column: span 4;
  margin-bottom: 2rem;
}

/****************************************
Article
****************************************/
.article-header {
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
}

p:first-of-type {
  margin-top: 4rem;
}

hr {
  border: none;
  background-color: #333333;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  height: 2px;
  width: 2rem;
}

.content {
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 8rem;
}

/****************************************
Images
****************************************/
img {
  width: 100%;
  margin-bottom: 0.5rem;
}

figure {
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

figure.large {
  width: 100%;
}

figcaption {
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
}

/****************************************
Quotes
****************************************/
blockquote {
  font-family: Arbeit, serif;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
  width: 50%;
  margin-right: auto;
  margin-left: auto;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

blockquote::before {
  content: open-quote;
  margin-left: -0.5em; /* Hanging quote */
}

blockquote::after {
  content: close-quote;
}

blockquote p {
  display: inline;
  font-family: Arbeit, serif;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
}

/****************************************
Tables
****************************************/
table {
  font-family: Arbeit, sans-serif;
  font-weight: normal;
  font-size: 0.7rem;
  line-height: 1rem;
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
  border-collapse: collapse;
}

th, td {
  font-weight: normal;
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
  padding-right: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  vertical-align: top;
}

/****************************************
Apple music player
****************************************/
.apple-player {
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

/****************************************
Sound player
****************************************/
audio {
  display: block;
  width: 75%;
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/****************************************
Responsive
****************************************/
/****************************************
Phone
****************************************/
@media (max-width: 600px) {
  body {
    margin: 0.5rem; /* All around margins */
  }
  .table-of-content {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 2rem;
    width: 100%;
  }
  .contents-page {
    width: 100%;
    margin-bottom: 6rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .contents-page h1.big-title {
    font-family: Arbeit, serif;
    font-weight: normal;
    font-size: 4.2rem;
    line-height: 4rem;
    letter-spacing: -0.05em;
    font-size: 2.9rem;
    line-height: 3rem;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
  }
  .contents-page p {
    font-family: Arbeit, serif;
    font-weight: normal;
    font-size: 4.2rem;
    line-height: 4rem;
    letter-spacing: -0.05em;
    font-size: 2.9rem;
    line-height: 3rem;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
  }
  .content {
    width: 100%;
  }
  .article-header {
    width: 100%;
  }
  blockquote {
    width: 80%;
  }
  h1,
h2,
h3,
h4,
p,
figure,
figcaption,
ol,
ul,
audio {
    width: 100%;
  }
}
/****************************************
Print
****************************************/
@media print {
  html {
    font-size: 20px; /* Rem used as line height*/
  }
  body {
    margin: 1rem; /* All around margins */
  }
  .contents-page, .content, .article-header {
    width: 100%;
  }
  h1,
h2,
h3,
h4,
p,
figure,
figcaption,
ol,
ul,
audio {
    width: 100%;
  }
}
/****************************************
End
****************************************/
