/*
This CSS is based on the work of Simple.css
https://github.com/kevquirk/simple.css
I made some modification on it and republish it under the same MIT license.

Copyright 2022 kevquirk
Copyright 2022-2024 felisevan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

/* simplistic CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Better readability, or called "poor person's anti-aliasing" */
  text-shadow: 0px 0px 2px #999;
}

body {
  color: #000;
  background-color: #fff;
  font-size: 1.25rem;
  display: block;
  line-height: 1.75;
  margin: 0 auto;
  /* Better readibility */
  max-width: 70ch
}

h1 {
  font-size: 3rem;
  text-align: center;
}

h2 {
  font-size: 2.6rem;
  margin-top: 2rem;
  margin-bottom: 0;
  /* Better readability, separate each sector in a less disturbing way */
  border-bottom: 1px dotted #000;
}

h3 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Prevent long strings from overflowing container */
p,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

/* Fix line height when title wraps */
h1,
h2,
h3 {
  line-height: 1.1;
}

/* Reduce header size on mobile */
@media only screen and (max-width: 430px) {
  body {
    max-width: unset;
    padding: 1rem
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

ul {
  margin-top: 0;
  margin-bottom: 0;
}

a,
a:visited {
  color: #666699;
  display: inline;
  text-decoration: none;
}

a:hover {
  background-color: #f2f2f2;
  text-decoration: underline;
}

pre {
  background-color: #f2f2f2;
  border: 1px solid #808080;
  border-radius: 5px;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-size: 1rem;
  padding: 0.5rem;
  max-width: 83ch;
  overflow: auto;
  margin: 1rem auto;
}

blockquote {
  margin: 1rem;
  padding: 0.5rem;
  border-left: 0.618rem solid #666699;
  font-style: italic;
}