@font-face {
  font-family: "TASA Orbiter";
  src: url(../library/fonts/TASAOrbiter-VariableFont_wght.ttf);
}

* {
  --dark: #222222;
  --light: #F5F5F5;
  --blue: #62B3FF;
  --blue-dark: #316493;
  --purple: #cc56ff;
  --purple-dark: #684777;
  scroll-behavior: smooth;
  scroll-margin: 2em;
  font-family: "TASA Orbiter", system-ui, -apple-system, sans-serif;
  color: var(--dark);
  /* cursor: url(../library/images/cursor.svg), auto; */
}

h2 {
  font-size: clamp(1.75em, 3.5vw, 4em);
}

h3.uppercase {
  font-size: clamp(.75em, 1vw, 1em);
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 10%;
}

/* a {
  cursor: url(../library/images/cursor-link.svg), auto;
} */

a.text-link {
  display: inline-block;
  font-weight: bold;
  margin: 1.25em 0;
  letter-spacing: 5%;
  text-underline-offset: 5px;
  transition: text-underline-offset ease .3s;

  &:hover {
    text-underline-offset: 2px;
  }
}

p, ul, ol, ul li, ol li {
  font-size: clamp(1em, 1vw, 1.25em);
  line-height: 1.6;

  &.center {
    text-align: center;
  }

  &.small, &.small li {
    font-size: 11px; /* clamp(.75em, 1vw, 1em); */
  }

  &.large {
    font-size: clamp(1.25em, 1.5vw, 1.5em);
  }
}

ul, ol {
  @media screen and (max-width: 450px) {
    padding: 0 0 0 1em;
  }
}

.fw-reg {
  font-weight: 400;
}

.row {
  display: flex;
  flex-direction: row;
  gap: .5em;

  &.center {
    justify-content: center;
  }

}

*:not(p).headliner {
  font-size: clamp(2em, 3vw, 3.5em);
  line-height: 1.25;
}

p.headliner {
  font-size: clamp(1.5em, 3vw, 3.5em);
  line-height: 1.25;
}

.hl, .highlight {
  background: transparent;
  background: linear-gradient(0deg,rgba(98, 179, 255, .30) 60%, rgba(0, 0, 0, 0) 60%);

  &.purple {
    background: linear-gradient(0deg,rgba(204, 86, 255, .30) 60%, rgba(0, 0, 0, 0) 60%);
  }

  &.green {
    background: linear-gradient(0deg,rgba(153, 255, 98, .30) 60%, rgba(0, 0, 0, 0) 60%);
  }
}

.padded {
  padding: 2em;
}

.mt-0 {
  margin-top: 0;
}

.mt-qtr {
  margin-top: .25em;
}

.mt-half {
  margin-top: .5em;
}

.mt-2 {
  margin-top: 2em;
}

.mt-3 {
  margin-top: 3em;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-half {
  margin-bottom: .5em;
}

.mb-2 {
  margin-bottom: 2em;
}

.skills, .tools, .tags {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  list-style-type: none;
  padding: 0;
  margin-bottom: 0px;
  font-size: clamp(.85em, .5vw, 1em);
  gap: .5em;

  li {
    background: rgba(202, 208, 214, 0.3);
    color: #666;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 5px;
  }

  &.blue li {
    background: rgba(98, 179, 255, .30);
    color: var(--blue-dark);
  }

  &.purple li {
    background: rgba(204, 86, 255, .30);
    color: var(--purple-dark);
  }

  &.green li {
    background: rgba(153, 255, 98, .30);
    color: var(--green-dark);
  }
}

img {

  &.lg {
    border-radius: 10px;
    width: 100%;
  }

}

body {
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  padding: 0;
  margin: auto;

  @media screen and (max-width: 1200px) {
    /* flex-direction: column; */
  }
}

header {
  position: fixed;
  max-width: 1160px;
  width: calc(100% - 40px);
  height: 50px;
  padding: 10px;
  margin: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0,0,0,20%);
  transition: background ease .3s, box-shadow ease .3s;

  &.top {
    background: transparent;
    box-shadow: 0px 3px 10px rgba(0,0,0,0%);

    nav {
      a {
        background: transparent;
        transition: background ease .3s;

        &:hover {
          background: #fff;
        }
      }
    }

  }

  nav {
    display: flex;
    justify-content: space-between;

    img {
      width: 50px;
      height: 50px;
    }

    ul {
      display: flex;
      justify-content: flex-end;
      width: 67%;
      margin: auto 0;
      padding: 0;
      list-style: none;
      gap: .5em;
      
      li {
        cursor: pointer;
      }

      a {
        font-weight: bold;
        letter-spacing: 5%;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 14px;
        padding: 15px;
        border-radius: 10px;
        background: transparent;
        transition: background ease .3s;

        &:hover {
          background: var(--light);
        }
      }
    }
  }

  @media screen and (max-width: 450px) {
    nav {
      overflow-y: auto;
      max-width: 450px;
      justify-content: flex-start;
      gap: 30px;

      ul {
        justify-content: inherit;
      }
    }
  }
}

main {
  margin-top: 75px;

  @media screen and (max-width: 1200px) {
    /* width: 100%; */
  }

  section {

    article {
      background: #fff;
      padding: 2em;
      margin: 2em auto;
      border-radius: 10px;
      box-shadow: 0px 1px 3px rgba(0,0,0,10%);

      h5 + h3 {
        margin-top: .25em;
        font-size: clamp(1.25em, 1.5vw, 2em);
        font-weight: 300;

        span {
          font-weight: 600;
        }
      }

      * + h4 {
        margin-top: 1.75em;
        margin-bottom: .25em;
      }

      * + h4, h5 {
        font-size: clamp(.75em, 1vw, 1em);
        margin-top: 0;
        margin-bottom: 0;
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 10%;
      }

    }
  }

  #portfolio {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;

    h2 {
      width: 100%;
    }

    .container {
      display: flex;
      flex-wrap: wrap;
      flex-direction: row;
      gap: 1em;
    }

    article {
      width: calc(33% - 4.5em);
      margin: 0;

      img {
        width: calc(100% + 4em);
        margin: -2em 0 0 -2em;
        border-radius: 10px 10px 0 0;
        padding-bottom: 2em;
      }

      @media screen and (max-width: 1200px) {
        width: calc(50% - 6.5em);
      }

      @media screen and (max-width: 850px) {
        width: 100%;
      }
    }

  }
}

footer {
  padding: 3em 1em;
  
  p {
    opacity: .4;
  }

  img {
    opacity: .2;
    transition: opacity ease .3s;

    &:hover {
      opacity: .5;
    }
  }

  hr {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .15) 20%, rgba(0, 0, 0, .15) 80%, rgba(0, 0, 0, 0) 80%);
    height: 1px;
    border: 0;
  }
    
}