@import "less/reset.css";
@import "less/normalize.css";
@font-face {
  font-family: "nimbus_roman_no9_l-bold";
  src: url("./font/NimbusRomNo9L-Med-webfont.woff") format("woff");
  /* src: url("../font/NimbusRomNo9L-Med-webfont.eot"); */
  /* src: url("../font/NimbusRomNo9L-Med-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("../font/NimbusRomNo9L-Med-webfont.woff2") format("woff2"),
    url("../font/NimbusRomNo9L-Med-webfont.woff") format("woff"),
    url("../font/NimbusRomNo9L-Med-webfont.ttf") format("truetype"),
    url("../font/NimbusRomNo9L-Med-webfont.svg#nimbus_roman_no9_lbold")
      format("svg"); */
  font-weight: normal;
  font-style: normal;
}
* {
  box-sizing: border-box;
}
body {
  display: flex;
  overflow: auto;
  line-height: 1.3;
  padding-right: 1rem;
}
body main {
  overflow-x: hidden;
  padding-bottom: calc(1rem * 4);
  max-width: 40rem;
}
body .sidebar {
  width: 20rem;
  flex-shrink: 0;
  background-color: #fefefe;
  padding-left: 1rem;
}
.chapeau {
  font-size: 1.5rem;
  margin-bottom: 4rem;
}
.chapeau p {
  line-height: 1.15;
}
audio {
  margin: 0.5rem 0;
}
/* .audio__wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0;

  .caption-audio {
    font-size: 0.8rem;
  }
} */
.menu-toggle {
  font-size: 2.5rem;
  position: fixed;
  top: 60%;
  /* padding: @margin; */
  cursor: default;
  text-align: initial;
  margin: 0;
}
.menu-toggle .mobile-toggle {
  display: none;
}
.menu-toggle:hover {
  color: #0070c0;
}
.menu-drawer {
  background-color: #0070c0;
  color: white;
  font-size: 2.5rem;
  letter-spacing: -0.03rem;
  transform: translateX(-100%);
  z-index: 2;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  transition: 0.4s;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.menu-drawer .menu-sidebar {
  width: 20rem;
  flex-shrink: 0;
  flex-grow: 0;
}
.menu-drawer .closebtn {
  position: absolute;
  left: 1rem;
  top: 1rem;
}
.menu-drawer .logo__menu {
  position: absolute;
  left: 1rem;
  top: 60%;
  font-size: 2.5rem;
  margin: 0;
}
.menu-drawer .logo__menu .dots {
  transform: translateX(125%) translateY(-150%) rotate(90deg);
  position: absolute;
  left: 7ch;
}
.menu-drawer ul.menu-content {
  margin-top: 1rem;
  padding-right: 1rem;
}
.menu-drawer ul.menu-content > li {
  padding-left: 0;
  height: initial;
}
.menu-drawer ul.menu-content > li:before {
  display: none;
}
.menu-drawer ul.menu-content li {
  line-height: 0.9;
  display: flex;
  align-items: center;
  margin-bottom: calc(1rem * 1.5);
}
.menu-drawer ul.menu-content li:before {
  content: "";
  width: 1em;
  height: 1px;
  background-color: white;
  position: relative;
}
.menu-drawer a {
  color: white;
  text-decoration: initial;
  text-transform: initial;
  font-variant: initial;
}
.menu-drawer a:hover {
  text-decoration: underline;
  color: white;
}
html {
  font-size: 24px;
  font-family: "nimbus_roman_no9_l-bold";
}
h1 {
  font-size: 3rem;
  line-height: 0.8;
  font-weight: initial;
  letter-spacing: -0.03rem;
}
h1 div:nth-child(2) {
  margin-left: calc(3rem * 0.5);
}
h1 div:nth-child(3) {
  margin-left: 3rem;
}
h2,
h3 {
  margin-left: 3rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 0;
  width: fit-content;
}
h2 {
  border-top: 0.5rem solid black;
  margin-top: calc(1rem * 2);
  margin-bottom: 1rem;
}
a {
  /* text-transform: lowercase;
  font-variant: small-caps; */
  color: black;
}
a:hover {
  /* text-decoration: none; */
  color: #0070c0;
}
p {
  text-indent: 3rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
p:first-child,
p:first-of-type,
ul + p,
h2 + p,
h3 + p {
  text-indent: 0;
}
ul {
  margin: 0;
  padding: 0;
}
ul li {
  /* display: flex;
    align-items: baseline */
  position: relative;
  padding-left: 3rem;
}
ul li::before {
  content: "—";
  width: 3rem;
  position: absolute;
  top: 0;
  left: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: left;
}
.image__wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 1rem 0;
  aspect-ratio: 3;
  padding-left: 3rem;
}
.image__wrapper img {
  height: 100%;
  width: auto;
}
.image__wrapper .caption {
  max-width: 30ch;
}
.image__wrapper.caption-right {
  /* img + .caption {
    padding-left: @indent;
  } */
}
.image__wrapper.caption-right .caption {
  order: 10;
  padding-left: 3rem;
}
.image__wrapper.caption-left {
  justify-content: flex-end;
}
.image__wrapper.caption-left .caption {
  order: 1;
  padding-right: 3rem;
}
.image__wrapper.caption-left img {
  order: 2;
}
.image__wrapper.caption-left img + img {
  order: 3;
}
.cards__list {
  display: flex;
  flex-direction: column;
  margin-top: calc(1rem * 2);
}
.cards__list .card {
  width: 75%;
  padding: 1rem 0;
  border-bottom: 2px solid black;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cards__list .card img {
  width: 30%;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.cards__list .card .card__title {
  /* font-size: 1.2rem; */
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 0.25rem;
}
.cards__list .card a {
  display: block;
}
.cards__list .card audio {
  max-width: 100%;
}
details.video__wrapper {
  margin-bottom: 0.5rem;
}
details.video__wrapper summary {
  cursor: pointer;
  line-height: 1.2;
}
details.video__wrapper summary:hover {
  text-decoration: underline;
}
details[open].video__wrapper summary {
  text-decoration: underline;
}
details[open].video__wrapper video {
  margin-bottom: 2rem;
}
body.folder main {
  max-width: initial;
}
body.folder figure {
  position: relative;
  width: 100%;
}
body.folder figure img {
  width: 100%;
  object-fit: contain;
}
body.folder figure figcaption {
  position: absolute;
  bottom: 0;
  background-color: yellow;
  opacity: 0.5;
}
.folder__content {
  display: flex;
  flex-wrap: wrap;
}
.folder__content section.audio {
  width: 100%;
  flex-shrink: 0;
}
.folder__content section.folder__content--level-1 {
  width: 30rem;
}
.folder__content section.files a {
  display: block;
}
.folder__content section.sub-folders {
  width: 20rem;
}
@media (orientation: portrait) {
  /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */
  html {
    font-size: 18px;
  }
  body {
    padding: initial;
    display: block;
  }
  h2,
  h3 {
    line-height: 1.1;
    margin-left: 1.5rem;
  }
  p {
    text-indent: 1.5rem;
  }
  main {
    width: 100vw;
    max-width: initial;
    overflow: auto;
    padding: 1rem;
  }
  .image__wrapper {
    margin: calc(1rem * 3) 0;
    padding: 0 1.5rem;
    flex-direction: column;
    align-items: initial;
    aspect-ratio: initial;
  }
  .image__wrapper .caption {
    font-size: 0.8rem;
    order: 10 !important;
    padding: 0 !important;
    max-width: initial;
    /* max-width: 25ch; */
  }
  .image__wrapper img {
    width: 100%;
    height: auto;
  }
  .sidebar .menu-toggle {
    top: 0;
    right: 0;
  }
  .sidebar .menu-toggle > div {
    display: none;
  }
  .sidebar .menu-toggle .mobile-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: -0.5rem;
    margin: 0;
    padding-left: 1rem;
    padding-right: calc(1rem * 2);
    padding-bottom: calc(1rem * 2);
    transform-origin: center;
    transform: rotate(90deg);
  }
  .menu-drawer {
    flex-direction: column;
    padding: 1rem;
    overflow: auto;
  }
  .menu-drawer .menu-sidebar {
    width: 100%;
  }
  .menu-drawer .logo__menu {
    display: none;
  }
  .menu-drawer .closebtn {
    position: initial;
    width: 100%;
    display: flex;
    justify-content: end;
    margin-bottom: 1rem;
    /* left: initial;
      right: @margin; */
  }
  .menu-drawer .menu-content {
    margin-top: ;
  }
  .cards__list .card {
    width: 100%;
  }
  .cards__list .card img {
    object-fit: cover;
  }
}
