@import "/styles/page.css";

header {
  margin-top: var(--size-1);
  margin-bottom: var(--size-0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  a.breadcrumb {
    margin-bottom: var(--size-0);
    display: flex;
    align-items: center;
    gap: var(--size--1);
    color: var(--fg-primary);
    font-size: var(--size-0);
    text-wrap: nowrap;
  }

  @media (any-hover: hover) {
    a:hover {
      color: var(--brand-accent);
    }
  }
}

h1 {
  font-size: var(--size-1);
  font-weight: var(--font-weight-semibold);

  @media (min-width: 768px) {
    font-size: var(--size-2);
  }
}

aside {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  height: 100%;
  padding: var(--size-0);
  z-index: 2;
  background-color: var(--bg-elevated);
  border-right: 1px solid rgba(0, 0, 0, pow(var(--phi), -5));
  box-shadow: 0 0 3rem rgba(0, 0, 0, pow(var(--phi), -5));
  text-wrap: wrap;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--size--1);
  width: calc((100vw - var(--max-width)) / 2 - 3 * var(--size-0));

  @media (max-width: 1439px) {
    display: none;
  }

  .menu-group {
    color: var(--fg-secondary);
    font-weight: var(--font-weight-medium);

    ol {
      padding-left: var(--size-0);
      color: var(--fg-primary);
      font-weight: var(--font-weight-regular);
    }
  }
}

h2 {
  font-size: var(--size-1);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--size-0);
}

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

section {
  padding-top: calc(var(--nav-height) + var(--size-0));
}

.card {
  padding: var(--size-1);

  h3 {
    font-size: var(--size-0);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--size--1);
  }

  p {
    margin-bottom: var(--size-0);
    color: var(--fg-primary);

    a {
      display: inline;
      font-weight: var(--font-weight-medium);
      color: var(--brand-alternate);
    }
  }
}

div:has(a.top) {
  padding: var(--size-1);
  display: flex;
  justify-content: center;
}

code span {
  display: inline;
}
