:root {
  color-scheme: light dark;
  --rp-base: #191724;
  --rp-surface: #1f1d2e;
  --rp-overlay: #26233a;
  --rp-muted: #6e6a86;
  --rp-subtle: #908caa;
  --rp-text: #e0def4;
  --rp-love: #eb6f92;
  --rp-gold: #f6c177;
  --rp-rose: #ebbcba;
  --rp-pine: #31748f;
  --rp-foam: #9ccfd8;
  --rp-iris: #c4a7e7;
  --rp-highlight-low: #21202e;
  --rp-highlight-med: #403d52;
  --rp-highlight-high: #524f67;

  --rp-dawn-base: #faf4ed;
  --rp-dawn-surface: #fffaf3;
  --rp-dawn-overlay: #f2e9e1;
  --rp-dawn-muted: #9893a5;
  --rp-dawn-subtle: #797593;
  --rp-dawn-text: #575279;
  --rp-dawn-love: #b4637a;
  --rp-dawn-gold: #ea9d34;
  --rp-dawn-rose: #d7827e;
  --rp-dawn-pine: #286983;
  --rp-dawn-foam: #56949f;
  --rp-dawn-iris: #907aa9;
  --rp-dawn-highlight-low: #f4ede8;
  --rp-dawn-highlight-med: #dfdad9;
  --rp-dawn-highlight-high: #cecacd;
}

body {
  color: light-dark(var(--rp-dawn-text), var(--rp-text));
  background-color: light-dark(var(--rp-dawn-base), var(--rp-base));

  width: min(100%, 1100px);
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  display: grid;
  box-sizing: border-box;
  overflow: hidden;

  grid-template-columns: 200px 1fr;

  > article {
    margin: 10px;
  }

  > header {
    grid-column: 1;
    padding-right: 10px;
    border-bottom: none;
    border-top: none;

    background-color: light-dark(var(--rp-dawn-overlay), var(--rp-overlay));
    margin: 15px;

    > nav {
      > ul {
        margin: 0;
        padding: 0;
        padding-top: 6px;
        display: flex;
        flex-direction: column;
        align-items: baseline;
        justify-content: flex-start;
        list-style-type: none;
        gap: 10px;

        > li {
          box-sizing: border-box;
          width: 100%;
          margin-left: 5px;
          padding: 8px;
          white-space: nowrap;


          border: 1px dashed light-dark(var(--rp-dawn-subtle), var(--rp-subtle));

          &:hover {
            border: 1px solid light-dark(var(--rp-dawn-subtle), var(--rp-subtle));
          }

          display: grid;

          > a {
            overflow-x: none;
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }
}

@media (max-width: 700px) {
  :root {
    max-height: unset;
  }

  body {
    display: flex;
    flex-direction: column;
    height: unset;
    max-height: unset;
    overflow: unset;

    > header {
      > nav > ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(40%, 1fr))
      }
    }
  }
}

ul {
  list-style-type: none;
}


a:link {
  color: light-dark(var(--rp-dawn-foam), var(--rp-foam));
  text-decoration: none;
}

a:visited {
  color: light-dark(var(--rp-dawn-pine), var(--rp-pine));
}

a:hover {
  background-color: light-dark(var(--rp-dawn-highlight-high), var(--rp-highlight-high));
}

.button {
  display: inline-block;
  width: 88px;
  height: 31px;
  max-width: 88px;
  max-height: 31px;
  overflow-y: auto;
  overflow-x: auto;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
}

div.highlight {
  pre {
    white-space: pre-wrap;
    word-break: break-word;
  }
}
.small {
  color: light-dark(var(--rp-dawn-subtle), var(--rp-subtle));
  font-size: smaller;
}
