/* Imports */
@import "normalize.css";
@import "fonts.css";
@import "audioplayer.css";

:root {
  --green: #21b573;
}

/* Geometrics */
* {
  box-model: border-box;
}

html {
  height: 100%;
  font-size: 62.5%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  padding: 0 36px;
  font-size: 3.6rem;
  line-height: 150%;
  color: black;
  border-color: black;
  display: flex;
  flex-direction: column;
}

p {
  margin: 0;
}

main {
  flex: 1;
}

main section {
  margin-bottom: 1em;
}

/* Typographics */
body {
  font-family:
    Times New Roman,
    times,
    serif;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-weight: inherit;
  font-size: inherit;
  margin: 0;
  color: black;
}

ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: item;
  li {
    counter-increment: item;
    padding-left: 1.3em;
  }
  li:before {
    content: counter(item) ".";
    width: 1.3em;
    display: inline-block;
    margin-left: -1.3em;
  }
}

ul {
  margin-top: 0;
}

/* Inline links */
main a {
  border: 2px solid;
  border-color: inherit;
  padding: 0px 3px;
  margin: 0 3px;
  font-size: 88%;
  font-family: Neuzeit S;
  letter-spacing: 0.5px;
  @media screen and (max-width: 700px) {
    border-width: 1px;
  }
}
main a:hover {
  color: inherit;
  background-color: var(--green);
}

/* Color settings */
main p,
main span,
main *:before,
main *:after {
  color: black;
  border-color: inherit;
}

/* Helper classes */
.emphasis,
strong {
  font-family: Neuzeit S;
  text-transform: uppercase;
  font-size: 90%;
  line-height: 147%;
  font-weight: normal;
}

.cursive {
  font-style: italic;
}

.small-caps {
  text-transform: uppercase;
  font-size: 69%;
  letter-spacing: 0.03em;
}

.colored {
  color: inherit;
}

.extra_large {
  font-size: 300%;
  line-height: 110%;
}

.large {
  font-size: 150%;
}

.small {
  font-size: 75%;
  line-height: 140%;
}

.extra_small {
  font-size: 57%;
  line-height: 150%;
}

.hidden {
  display: none;
}

.interactive {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -ms-user-select: none;
}

.inline {
  display: inline;
}

.nowrap {
  white-space: nowrap;
}

.columns {
  display: flex;
  justify-content: space-between;
  > *:last-child {
    text-align: right;
  }
}

.center {
  display: flex;
  justify-content: center;
}

.sentence.js-chaining {
  cursor: pointer;
}
.sentence.js-chaining:after {
  content: "…";
  color: #f71e3b;
}

/* Header */
header {
  margin-top: 4rem;
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  .main_logo {
    flex-grow: 1;
  }
  .ponygram {
    white-space: nowrap;
    img {
      max-height: 2em;
      margin-bottom: -0.5em;
      margin-top: -0.5em;
    }
  }
  .main_menu {
    align-self: center;
    font-family: Neuzeit S;
    font-size: 90%;
    display: inline;
    span {
      padding: 0 3px;
    }
    a {
      color: black;
    }
    .active a {
      color: inherit;
    }
  }
  .menu_buttons {
    display: none;
  }
}

/* About */
main.about .content {
  > * {
    margin-bottom: 2rem;
  }
  a {
    margin: 0;
  }
}

/* Footer */
footer {
  padding-bottom: 1.6em;
  p {
    display: inherit;
  }
  section.wrapper {
    section:not(:last-child) {
      padding-right: 1em;
    }
    section.mini_colophon {
      font-family: Neuzeit S;
      text-transform: lowercase;
    }
  }
  a {
    font-family: inherit;
    text-transform: inherit;
    border-bottom: 1px solid lightgrey;
    margin-left: 4px;
  }
  p {
    margin-bottom: 0.7em;
  }
  @media screen and (max-width: 700px) {
    span {
      display: block;
      width: 100%;
      a {
        margin: 0;
      }
    }
  }
}

/* Media queries
   =================================================== */

@media screen and (max-width: 980px) {
  body {
    font-size: 2.6rem;
    padding: 0 26px;
  }
  header {
    margin-top: 2.8rem;
    margin-bottom: 1.3rem;
    padding-bottom: 1.3rem;
  }
}

@media screen and (max-width: 700px) {
  body {
    font-size: 2.4rem;
    padding: 0 14px;
  }
  header {
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    .main_menu {
      display: none;
      .menu-item {
        width: 100%;
        display: block;
      }
    }
    .menu_buttons {
      display: block;
      .menu_btn,
      .close_btn {
        display: block;
        cursor: pointer;
        margin-right: -14px;
        padding-right: 14px;
        margin-top: -2.2rem;
        padding-top: 3.2rem;
        padding-left: 14px;
      }
      img {
        max-height: 17px;
      }
      .close_btn {
        display: none;
      }
    }
  }
}

@media screen and (min-width: 980px) {
  .main_logo,
  .main_menu {
    display: block;
  }
}

/* Specifics
   =================================================== */

/* Images */
main img {
  max-width: 100%;
  height: auto;
}

#autobahn-utopia img {
  max-height: 146px;
  @media screen and (max-width: 980px) {
    max-height: 140px;
  }
  @media screen and (max-width: 700px) {
    max-height: 99px;
  }
}

main figure {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: inline-block;
}

figure:not(:last-of-type) {
  margin-bottom: 1px;
}

figure.big {
  max-height: inherit;
  max-width: 100%;
  float: right;
}

figure.big-left {
  float: left;
}

/* Utilities */
.float-left {
  float: left;
}

.float-right {
  float: right;
}

.no-wrap {
  text-wrap: nowrap;
}

/* Video */
.video {
  text-align: left;
  max-height: 600px;
  aspect-ratio: var(--aspect-ratio, 16 / 9);
  iframe {
    background-color: white;
    padding-right: 14px;
    border: none;
    display: block;
  }
}

/* Kirbytext video embeds */
figure.video {
  width: 100%;
  max-width: 600px;
  max-height: unset;
  iframe {
    width: 100%;
    height: 100%;
  }
}

/* Ponygram */
.ponygram {
  text-transform: uppercase;
  img {
    display: inline;
    max-height: 1.7em;
    margin-bottom: -0.36em;
    margin-top: -0.36em;
    mix-blend-mode: multiply;
  }
}

/* Rules */
section.one_rule {
  p {
    display: inline;
  }
}

.bottom-line {
  border-bottom: 2px solid black;
  @media screen and (max-width: 700px) {
    border-width: 1px;
  }
}

.underlined,
.children-underlined > p,
.video {
  .js-ponygram img,
  img.inline {
    max-height: 1.5em;
    margin-bottom: -0.29em;
  }
  background-image: url("../images/54_2px.gif");
  background-repeat: repeat;

  @media screen and (max-width: 980px) {
    background-image: url(../images/39_2px.gif);
  }
  @media screen and (max-width: 700px) {
    background-image: url(../images/36_1px.gif);
  }
}

.underlined-grey {
  .js-ponygram img,
  img.inline {
    max-height: 1.42em;
    margin-bottom: -0.29em;
  }
  background-image: url(../images/54_2px_grey.gif);
  background-repeat: repeat;
  @media screen and (max-width: 980px) {
    background-image: url(../images/39_2px_grey.gif);
  }
  @media screen and (max-width: 700px) {
    background-image: url(../images/36_1px_grey.gif);
  }
}

.framed {
  border: 2px solid;
  border-bottom: none;
  padding: 0 0.2em;
  @media screen and (max-width: 700px) {
    border-width: 1px;
  }
}

section.underlined.small {
  background-image: url(../images/54_1px_grey.gif);
}

/* Personnel snippet */
.personnel {
  .personnel_item {
  }
}

.personnel_item:not(:last-child):after {
  content: "·";
}

.list_item:not(:last-child):after {
  content: ", ";
}

/* Media Piece */
.media_piece {
  margin-bottom: 0;
}
.media_piece + .meta {
  justify-content: space-between;
  clear: left;
  font-size: 55%;
  line-height: 120%;
  padding-top: 6px;
  a {
    margin: 0;
  }
  > *:last-child {
    text-align: right;
  }
  display: flex;
  @media screen and (max-width: 980px) {
    font-size: inherit;
    line-height: inherit;
    padding: inherit;
    display: inherit;
    background-color: white;
    margin-top: 1px;
    > *:last-child {
      text-align: inherit;
    }
  }
  @media screen and (max-width: 700px) {
    display: inherit;
  }
}
