/* --- Baseline --- */

@font-face {
  font-family: 'Unica77LL';
  src: url(../fonts/Unica77LL-Regular.otf) format("opentype");
  font-style: normal;
}
@font-face {
  font-family: 'Unica77LL';
  src: url(../fonts/Unica77LL-Italic.otf) format("opentype");
  font-style: italic;
}

:root {
    --content-width: 65rem;
    --bg-color: #000;
    --font-color: #fff;
    --font-size: 14px;
    --main-margin: .8571rem;
    --font-fix: 2px;
  }
  
  *,
  *:after,
  *:before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-family: 'Unica77LL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: var(--font-size);
    color: var(--font-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    /* line-height: 1.2; */
  }

  body {
    /* max-width: 500px; */
    margin: auto;
  }
  
  li {
    list-style: none;
  }
  
  a {
    color: currentColor;
    text-decoration: none;
  }
  
  strong, b {
    font-weight: 500;
  }
  
  img,
  video {
    width: 100%;
  }

  /* --- Swiper --- */

  @supports not (aspect-ratio: 1 / 1) {
    .swiper-wrapper::before {
        float: left;
        padding-top: var(--ratio);
        content: "";
      }

    .swiper-wrapper::after {
      display: block;
      content: "";
      clear: both;
    }
  }

  .swiper-slide img {
    object-fit: contain;
    height: 100%;
    object-position: bottom left;
  }

  .swiper-button-next {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
  }

  .swiper-button-next:after, .swiper-button-prev:after {
    display: none;
  }

  .swiper-pagination {
      text-align: left;
      bottom: calc(var(--main-margin) - var(--font-fix));
      left: var(--main-margin);
      /* mix-blend-mode: difference; */
      font-feature-settings: 'tnum' on;
      width: auto;
  }
  
  /* --- Nav --- */

  nav {
    font-size: 1.5rem;
    padding: calc(var(--main-margin) - (2 * var(--font-fix))) var(--main-margin) 0;
  }

  nav ul li {
      display: inline-block;
  }

  nav ul li a.active, nav ul li a:hover {
      font-style: italic;
  }

  /* --- Main --- */

  main {
    padding: var(--main-margin);
    padding-top: calc(var(--main-margin) - (1.5 * var(--font-fix)));
  }
  
  main.projects {
    width: 100%;
    opacity: 0;
    transition: opacity .15s;
  }
  main.about {
    max-width: var(--content-width);
  }

  section.project {
    width: calc(50% - calc(var(--main-margin) * 1.5));
    margin-bottom: calc(var(--main-margin) - var(--font-fix));
  }

  section.project p {
    margin-top: var(--font-fix);
  }

  @media all and (max-width: 767px){
    section.project {
      width: calc(100% - calc(var(--main-margin) * 2));
    }
  }
  @media all and (min-width: 1440px){
    section.project {
      width: calc(33.33% - calc(var(--main-margin) * 1.35));
    }
  }
  

  ul.description {
    position: absolute;
    bottom: 3rem;
    opacity: 0;
    transition: opacity .1s linear;
  }
