@font-face {
  font-display: swap;
  font-family: 'Black Ops One';
  src: url('../assets/fonts/BlackOpsOne.woff2') format('woff2');
}

:root {
  --amber: #ffb300; /* MUI-amber-500 */
  --black: #0c0a09; /* tw-stone-950 */
  --tap: #0c0a0980;
  --olive: #556b2f;
  --olive-fg: #202812;
  --font: 'Black Ops One', sans-serif;
  --shadow: 0.375rem 0.375rem var(--olive-fg);
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);

  scrollbar-width: thin;
  scroll-behavior: smooth;
  background: var(--amber);
  accent-color: var(--olive-fg);
}

::selection {
  color: var(--amber);
  background: var(--olive-fg);
}

body {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--olive-fg);
  font-family: var(--font);

  @media (width >= 64rem) {
    flex-direction: row;
    align-items: flex-start;
  }
}

nav {
  gap: 1.5rem;
  min-width: 100%;
  position: fixed;
  display: inherit;
  min-height: 3rem;
  user-select: none;
  align-items: center;
  font-size: 1.375rem;
  justify-content: center;
  background: var(--olive);
  border-bottom: 0.125rem solid var(--olive-fg);

  & header {
    display: none;
    color: var(--amber);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    background: var(--olive-fg);
    
    @media (width >= 64rem) {
      display: inline-block;
    }
  }
}

@media (width >= 64rem) {
  nav {
    gap: 2rem;
    min-width: 16rem;
    min-height: 100%;
    padding-top: 2rem;
    border-bottom: none;
    padding-left: 2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-right: 0.125rem solid var(--olive-fg);
  }
}

a {
  color: currentColor;
  text-decoration: none;
  transition: color var(--transition);
  -webkit-tap-highlight-color: var(--tap);

  &.nav-link {
    font-size: 0;

    & i {
      font-size: 1.375rem;
    }
    
    @media (width >= 64rem) {
      & {
        font-size: 1.375rem;

        & i {
          margin-right: 0.5rem;
        }
      }
    }
  }

  @media (hover: hover) {
    &:hover {
      color: var(--black);
    }
  }
}

main {
  gap: 2rem;
  display: inherit;
  min-height: 100dvh;
  margin: 4.5rem 1rem;
  margin-bottom: 2rem;
  max-width: 47.25rem;
  flex-direction: column;

  @media (width >= 64rem) {
    margin-top: 2rem;
    margin-left: 18rem;
  }
}

aside {
  gap: 1.5rem;
  display: inherit;
  flex-direction: column;
}

section {
  margin: 0;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  scroll-margin-top: 4rem;
  box-shadow: var(--shadow);
  border: 0.125rem solid var(--olive-fg);

  @media (width >= 64rem) {
    scroll-margin-top: 1rem;
  }

  & header {
    margin: 0;
    font-weight: 400;
    margin-bottom: 1rem;
    font-size: 1.625rem;

    & i {
      margin-right: 0.5rem;
    }
  }

  & img {
    width: 100%;
    margin-bottom: 1rem;
  }

  & figcaption {
    gap: 1rem;
    display: flex;
    flex-direction: column;
  }

  & p {
    margin: 0;
    gap: 1rem;
    display: inherit;
    flex-direction: column;
  }

  & ul {
    margin: 0;
    padding-left: 1.5rem;
  }
}

footer {
  user-select: none;
  text-align: center;
}
