/***** TYPOGRAPHY *****/

:root {
  --pico-font-size: 1rem;
  --pico-accordion-open-summary-color: #fff;
}
html {
  scroll-behavior: smooth;
}

/***** TYPOGRAPHY *****/

h1 {
  margin-bottom: calc(var(--pico-typography-spacing-vertical) * 2);
}

article header {
  h2,
  h3 {
    margin-bottom: 0;
  }
}

img + *,
.markdown-alert + * {
  margin-top: 1rem;
}

button i,
a i {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Icons beside text, like the OS icons in the binaries table. */
:is(p, li, td, th) > .bi {
  margin-right: 0.25rem;
}

ul.icons {
  li {
    padding-left: 0.75rem;
  }
}
ul.pros {
  li::marker {
    content: '✅';
    font-size: 1.25rem;
  }
}
ul.cons {
  li::marker {
    content: '❌';
    font-size: 1.25rem;
  }
}

/***** LAYOUT *****/

@media (min-width: 1024px) {
  .container {
    max-width: 1000px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

#background {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;

  background: linear-gradient(to bottom, rgb(6 7 10) 0%, rgb(19, 22.5, 30.5) 100%);
  height: 770px;
  overflow: hidden;

  .section-pages & {
    height: 175px;
  }
}

/* 1px squares drawn by backdrop.js, crumbling to nothing at the bottom so they meet the page's background colour. */
#background .backdrop {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;

  .section-pages & {
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
}

header, main, footer {
  position: relative;
  z-index: 2;
}

header {
  background-color: #000;
  text-shadow: 0 0 5px black;

  .section-home & {
    background-color: transparent;
  }

  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    padding: 1rem;
  }

  #favicon,
  #favicon img {
    height: 100%;
  }

  a#logo {
    text-decoration: none;
    font-weight: bold;
    color: white;
  }

  #main-menu {
    li {
      a {
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 1rem;
      }
    }
  }
}

main {
  overflow: visible;
  padding: 1rem;

  .section-pages & {
    margin-top: 50px;
  }

  #content {
    overflow: auto;
    display: flex;
    flex-direction: column;
  }
}

footer {
  margin-top: 2rem;
  border-top: 1px solid #000;
  ul {
    display: flex;
    justify-content: center;
    li {
      margin-left: 2rem;
    }
  }
}

/***** COMPONENTS *****/

.slogan {
  margin-bottom: var(--pico-block-spacing-vertical);
  padding: var(--pico-block-spacing-vertical) 0;
  border: 5px solid violet;
  border-left-width: 0;
  border-right-width: 0;

  color: violet;
  font-family: 'DM Sans', sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
  line-height: 2.25rem;
}

.highlight {
  border-radius: 10px;
}
