Source Code for /public/css/style.css

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  font-weight: normal;
  color: #222;
  display: flex;
  place-content: center;
  overflow: hidden scroll;
  background: #363300 url('/img/food.webp') repeat;
  font-size: 18px;
  line-height: 1.4;
}

.page {
  width: 980px;
  max-width: 99vw;
  margin: 6px 12px 12px;
  display: grid;
  min-height: 100vh;
  border-radius: 24px 24px 0 0;
  box-shadow: 6px 6px 14px black;
  grid-template: "πŸŽ“ πŸŽ“" min-content "🍳 πŸ—ΊοΈ" auto "πŸ₯Ύ πŸ₯Ύ" min-content / 1fr auto;

  @media (max-width: 700px) {
    grid-template: "πŸŽ“" min-content "πŸ—ΊοΈ" auto "🍳" auto "πŸ₯Ύ" min-content / 1fr;
  }
}

header {
  grid-area: πŸŽ“;
  position: relative;
  text-align: center;
  min-height: 122px;
  padding-right: 150px;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
  background: #3e0838 url('/img/noisy.webp') repeat;

  .title {
    margin: 0;
    padding: 0;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
  }
  
  .subtitle {
    margin: 0;
    padding: 0;
    color: #ddd;
  }

  &::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -82px;
    height: 135px;
    aspect-ratio: 1421 / 841;
    background-image: url('/img/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
  }
}

h1, .h1 {
  font-size: 24px;
  font-weight: bold;
  text-decoration: wavy #2226 underline;
}

h2, .h2 {
  font-size: 20px;
  font-weight: bold;
  text-decoration: wavy #2226 underline;
}

h3, .h3 {
  font-size: 18px;
  font-weight: bold;
}

nav {
  ol {
    margin: 0;
    padding: 0 0 0 26px;
  }

  li {
    padding: 2px 0;

    /* First item in the list and those with .no-number class have their number hidden */
    &:first-child, &.no-number, &#nav-search {
      list-style-type: none;
    }

    /* The first appendix item has a gap before it. */
    &:not(.appendix) + li.appendix,
    &#nav-search {
      margin-top: 1em;
    }

    &.appendix {
      font-size: 14px;
    }

    ul {
      padding-left: 1.5ch;
      list-style: none;
    }

    li {
      font-size: 14px;
    }
  }

  .active {
    position: relative;
    list-style-type: none;

    & > a {
      font-weight: bold;
    }

    &::after {
      content: 'πŸ‘‰';
      position: absolute;
      left: -1.5em;
      top: 2px;
    }
  }
}

.page > nav { /* Navbar when on side of page */
  grid-area: πŸ—ΊοΈ;
  background: #390710;
  color: #aaa;
  padding: 12px;
  width: 240px;

  @media (max-width: 700px) {
    width: 100%;
  }

  @media (min-height: 780px) {
    ol {
      position: sticky;
      top: 12px;
    }
  }

  a {
    color: #fff;

    &:visited {
      color: #d4f5ff;
    }
  }
}

main {
  grid-area: 🍳;
  background: #eee;
  padding: 0 12px;

  & > ul > li, & > ol > li {
    margin: 8px 0;
  }
}

footer {
  grid-area: πŸ₯Ύ;
  padding: 12px;
  background: #dbc4c3 url('/img/merely-cubed.png') repeat;
  
  ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: space-around;
  }
}

.code-block-container {
  margin: 0;
  display: flex;
  flex-direction: column-reverse;
}

.code-block {
  white-space: pre-wrap;
  border: 1px solid black;
}

.code-block-container:has(.code-block-actions) .code-block {
  margin-top: 0;
}

.code-block-actions ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 1ch;
  font-size: 12px;
  justify-content: flex-end;

  a {
    text-decoration: none;
    background: #282c34;
    color: #ccc;
    display: block;
    padding: 2px 8px 2px 6px;
    border-radius: 3px 3px 0 0;
    border: 1px solid black;
    border-bottom: none;

    &:hover {
      background: #ccc;
      color: #282c34;
    }
  }
}

.objectives, .tip, .warning {
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 12px;

  h2 {
    font-size: 18px;
  }
}

.tip, .warning, .potion {
  position: relative;
  padding: 12px 12px 12px 48px;

  small {
    display: block;
    text-align: right;
  }

  :first-child {
    margin-top: 0;
  }

  :last-child {
    margin-bottom: 0;
  }
}

.objectives {
  padding: 0 12px;
  background: #fff8dd;
}

.tip {
  background: #def;

  &::before {
    position: absolute;
    content: 'πŸ’‘';
    left: 12px;
  }
}

.warning {
  background: #fdd;
  
  &::before {
    position: absolute;
    content: '⚠️';
    left: 12px;
  }
}

.source-tree {
  font-family: monospace;
  font-size: 14px;

  ul {
    padding-left: 24px;
  }

  li {
    padding: 0;
    margin: 0;
  }
}

/** CSS for the Potion Finder game */
.potion {
  background: lightgreen;
  padding: 12px;
}

.potion-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 12px;
  justify-content: space-around;
  margin: 0 12px;
  padding: 0;
}

.potion, .potion-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 22px;
  list-style: none;
}

.potion-list li {
  width: 300px;
}

.potion-img {
  width: 72px;
  height: 84px;
  image-rendering: pixelated;
}