@font-face {
  font-family: "Geneva";
  src: url("/fonts/geneva-9-2.otf.woff2") format("woff2");
  font-display: swap;
  font-weight: normal;
}

@font-face {
  font-family: "Chicago";
  src: url("/fonts/chicago-12-1.otf.woff2") format("woff2");
  font-display: swap;
  font-weight: normal;
}

.classic-mac {
  main {
    background: url("/images/classic-mac-patterns/pattern_22_32x32-gray-bg.png");
    padding-top: 2em;
    padding-bottom: 2em;
  }

  article {
    background: white;
    padding: 0 10px 10px 10px;
    border: none;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-family: "Chicago";
      font-size: 20pt;
    }
    h2,
    h3,
    h4,
    h5,
    h6 {
      text-align: center;
      border: 1px solid black;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      background-image: url("/images/classic-mac-patterns/window-bar-bg.png");
      background-repeat: repeat-x;
      background-size: contain;
      padding: 5px;
      margin-top: 1em;
      span {
        background: white;
        padding: 5px 5px 5px 8px;
      }
    }
    p,
    ul,
    code,
    pre {
      font-family: "Geneva";
      margin-top: 0;
      margin-bottom: 1rem;
      line-height: 20pt;
      font-size: 20pt;
    }
    li {
      margin-bottom: 0;
    }
  }
}

@media (max-width: 768px) {
  .classic-mac {
    article {
      pre,
      code {
        font-size: 16pt;
      }
    }
  }
}
