@font-face {
  font-family: Dada;
  src: url("./../../../../assets/fonts/DadaGrotesk-Book.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: Dada;
  src: url("./../../../../assets/fonts/DadaGrotesk-Bold.otf") format("opentype");
  font-weight: 600;
}

:root {
  --bkg: #eeece9;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bkg);
  font-family: Dada, sans-serif;
  font-size: clamp(16px, calc(14px + 0.75vw), 24px);
  line-height: 1.35;
  margin: 0;
  padding-top: 80px;

  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: Dada, sans-serif;
  font-weight: 500;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  
  @media screen and (min-width: 1024px) {
    font-size: 2.75rem;
  }
}

h2 {
  font-size: 1.875rem;
  
  @media screen and (min-width: 1024px) {
    font-size: 2.25rem;
  }
}

h1,
h2 {
  letter-spacing: -0.02em;
}

figure {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

/* sticky footer */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.nav {
  flex-shrink: 0;
}

.main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;

  & > * {
    width: 100%;
  }
  
}

.footer {
  flex-shrink: 0;
}
/* end sticky footer */

.nav {
  align-items: center;
  background-color: var(--bkg);
  border-bottom: 1px solid #111; 
  display: flex;
  justify-content: center;
  padding: 0 20px;
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
}

.nav-menu {
  height: auto;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: 80px;
  width: 100%;
  /* z-index: -1; */

  @media screen and (min-width: 1024px) {
    position: relative;
    top: unset;
  }

  &.is-open {
    .nav-menu-list {
      transform: translateY(0%);
      opacity: 1;
      filter: blur(0);
    }
  }
}

.nav-menu-list {
  background-color: #fff;
  border-bottom: 1px solid;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: 600;
  gap: 1em;
  left: 0;
  letter-spacing: 0.04em;
  list-style-type: none;
  margin: 0;
  padding: 20px;
  pointer-events: all;
  text-transform: uppercase;
  top: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease, opacity .3s, filter .3s;
  width: 100%;
  filter: blur(6px);
  opacity: 0;

  @media screen and (min-width: 1024px) {
    background-color: transparent;
    border-bottom: none;
    flex-direction: row;
    left: unset;
    padding: 0;
    position: relative;
    top: unset;
    transform: none;
    transition: none;
    width: auto;
    opacity: 1;
    filter: blur(0);
  }

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

  & li.is-open {
    a {
      text-decoration: underline;
      text-decoration-thickness: 0.05em;
      text-underline-offset: 0.325em;
    }
  }
}

#nav-toggle {
  cursor: pointer;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  & > * {
    width: 100%;
    position: absolute;
    height: 2px;
    background-color: #111;
    pointer-events: none;
    transition: transform 0.3s ease;
  }

  & > *:nth-child(1) {
    transform: translateY(-5px);
  }

  & > *:nth-child(2) {
    transform: translateY(5px);
  }

  &.is-open {
    & > *:nth-child(1) {
      transform: rotate(45deg);
    }

    & > *:nth-child(2) {
      transform: rotate(-45deg);
    }
  }

  @media screen and (min-width: 1024px) {
    display: none;
  }
}

.nav-logo {
  align-items: center;
  display: flex;
  gap: 1rem;

  & .logo-img{
    height: 0.8125em;
    width: auto;

    @media screen and (min-width: 520px) {
      height: 0.825em;
    }

    @media screen and (min-width: 1024px) {
      height: 1em;
    }
  }
}

.nav-logo .nav-linkedin {
  & a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  & svg {
    width: clamp(1.75rem, calc(1.75rem + 0.4vw), 3rem);
    height: clamp(1.75rem, calc(1.75rem + 0.4vw), 3rem);
    display: inline-block;
  }
}

.footer {
  background-color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;

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

  & .item-letter {
    margin-right: 1em;
  }

  & .linkedin {
    margin: 20px 0;
    
    & svg {
      width: clamp(1.75rem, calc(1.75rem + 0.4vw), 3rem);
      height: clamp(1.75rem, calc(1.75rem + 0.4vw), 3rem);
    }
  }
}

.footer-content {
  color: #eee;
  display: grid;
  font-size: 14px;
  gap: 10px;
  max-width: 1280px;
  grid-template-columns: 1fr;
  padding: 20px;
  width: 100%;

  @media screen and (min-width: 560px) {
    grid-template-columns: 1fr 1fr;
  }

  @media screen and (min-width: 960px) {
    display: flex;
    justify-content: space-between;
  }
}

/* list */
.text {
  margin-bottom: 40px;
  
  & ul {
    list-style-type: none;
    padding-left: 1.3em;

    & li {
      position: relative;
    }
    
    & li:before {
      top: 0.5em;
      border-radius: 50%;
      border: 1px solid black;
      content: "";
      height: 0.5em;
      left: -1.3em;
      position: absolute;
      top: 0.38em;
      width: 0.5em;
    }
  }
}