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

:root {
  --font: 'Textura', serif;
  --bone: beige;
  --blood: maroon;
  --tap: #f5f5dc80;
  --shadow: #00000040;
  --onyx: oklch(0.125 0 0);
  --radius: 0.25rem;
  --border: 1px solid var(--shadow);
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --text-shadow: 0 0.125rem 0.25rem var(--onyx);
  --box-shadow: 0 0.125rem 0.25rem -0.125rem var(--shadow);

  scrollbar-width: thin;
  scroll-behavior: smooth;
}

::selection {
  color: var(--bone);
  background: var(--onyx);
}

body {
  background: var(--bone);
  font-family: var(--font);
  min-height: 100dvh;
  min-width: 100%;
  user-select: none;
}

a, button {
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: var(--tap);
  text-decoration: none;
  transition: color var(--transition),
  background var(--transition),
  border-color var(--transition);
}

nav {
  align-items: center;
  background: var(--blood);
  display: flex;
  font-size: 1.75rem;
  height: 4rem;
  justify-content: space-between;
  padding: 0 1rem;

  & #logo {
    gap: 0.25rem;
    cursor: pointer;
    display: inherit;
    font-weight: bold;
    color: var(--bone);
    align-items: center;

    & p {
      margin: 0;
      text-shadow: var(--text-shadow);
    }
  }

  & #dropdown {
    &:hover #content {
      display: block;
    }

    & button {
      display: inherit;
      background: none;
      aspect-ratio: 1 / 1;
    }

    & #content {
      background: var(--bone);
      border: var(--border);
      border-radius: var(--radius);
      box-shadow: var(--box-shadow);
      display: none;
      min-width: 9rem;
      padding: 0.125rem 0.25rem;
      position: absolute;
      right: 1rem;
      text-align: end;
      z-index: 1;

      & p {
        color: var(--onyx);
        cursor: pointer;
        margin: 0.5rem 0.75rem;
        -webkit-tap-highlight-color: var(--tap);
        transition: color var(--transition);

        & i {
          vertical-align: middle;
        }

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

  & .icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.action {
  background: var(--bone);
  border: 1px solid var(--onyx);
  box-shadow: var(--box-shadow);
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.75rem 0;
  padding: 0.625rem 0.875rem;

  @media (hover: hover) {
    &:hover {
      background: var(--onyx);
      border-color: var(--bone);
      color: var(--bone);
    }
  }

  &:active {
    background: var(--onyx);
    border-color: var(--bone);
    color: var(--bone);
  }
}

header {
  align-items: center;
  background: var(--blood);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  gap: 2rem 10rem;
  justify-content: center;
  min-height: calc(100dvh - 4rem);
  padding: 1rem;
  text-align: center;
  text-shadow: var(--text-shadow);

  @media (width >= 80rem) {
    & {
      flex-direction: row;
    }
  }

  & #raven {
    padding: 1rem 0;
    background: var(--bone);
    box-shadow: var(--box-shadow);
    border: 0.125rem solid var(--onyx);
    border-radius: 8rem 8rem 0.25rem 0.25rem;
  }

  & #hero {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
  }
}

main {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem;
  text-align: center;

  & div {
    display: grid;
    gap: 4rem 16rem;
    grid-template-columns: 1fr;
    justify-content: center;
    width: max-content;

    @media (width >= 48rem) {
      & {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    & figure {
      margin: 0;
      max-width: min-content;

      & img {
        aspect-ratio: 1 / 1;
        border: var(--border);
        border-radius: var(--radius);
        box-shadow: var(--box-shadow);
        width: 20rem;
      }

      & figcaption {
        font-size: 1.75rem;
        margin-top: 1rem;
      }
    }
  }
}

article, section {
  align-items: center;
  display: flex;
  justify-content: center;

  & div {
    display: inherit;
    flex-wrap: wrap;
    gap: 0 5rem;
    width: 40rem;
  }
}

article {
  padding: 2rem 1rem;
  user-select: text;

  & div {
    align-items: flex-end;
    flex-direction: column;
    font-size: 1.625rem;
    padding: 1rem 0;
    text-align: justify;

    & blockquote {
      margin: 0 0 1rem;
    }

    & span {
      font-weight: bold;
    }
  }
}

section {
  padding: 2rem 1rem 4rem;

  & div {
    align-items: center;
    background: var(--blood);
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    color: var(--bone);
    padding: 1rem 3rem;
    text-shadow: var(--text-shadow);
  }
}

footer {
  align-content: center;
  background: var(--blood);
  color: var(--bone);
  font-size: 1.5rem;
  font-weight: bold;
  min-height: 8rem;
  text-align: center;
  text-shadow: var(--text-shadow);

  & div {
    margin: 0.5rem 0;

    & a {
      color: currentColor;

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