[data-theme="light"]{
  --c-note-bg: #252323;
  --c-note-text: #faf8f7;
  --c-note-link: #ecd0ab;
  --c-note-link-hover: #f7e4cc;
  --c-note-scrollbar: #443f3d;
}

[data-theme="dark"]{
  --c-note-bg: #faf8f7;
  --c-note-text: #252323;
  --c-note-link: #888d57;
  --c-note-link-hover: #afb390;
  --c-note-scrollbar: #dfd9d4;
}

body{
  margin: 10%;
}

main{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5em;
}

article{
  background: var(--c-note-bg);
  color: var(--c-note-text);
  outline: 1px solid var(--c-note-bg);
  outline-offset: 2px;
  padding: 1em;
  overflow-y: auto;

  > div{
    height: 315px;
    padding: 1em;
    overflow-y: auto;
    scrollbar-color: var(--c-note-scrollbar) transparent;
  }
}

pre{
  font: inherit;
  white-space: pre-wrap;
  text-align: left;
  margin: 0;
}

.info{
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
  text-align: right;
  line-height: normal;

  a, b{
    font-size: 18px;
  }

  a{
    color: var(--c-note-link);
    font-family: Arial, sans-serif;
    font-weight: bold;
  }

  a:hover{
    color: var(--c-note-link-hover);
  }

  p{
    margin: 0;
  }
}

p:last-of-type{
  margin-bottom: 0;
}

hr{
  margin: 1em !important;
  border-color: var(--c-note-text) !important;
}