/* --- Simple CSS --- */

/*
    This file contains the rules from Simple CSS that are actually used for the website,
    according to https://css.github.io/csso/csso.html

    It may have missed some unused parts, so it's probably good to revisit this for manual trimming.
 */

:root {
  --sans-font:
    -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L",
    Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica, "Helvetica Neue",
    sans-serif;
  --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  --standard-border-radius: 5px;
  --border-width: 1px;
  --bg: #fff;
  --accent-bg: #f5f7ff;
  --text: #212121;
  --text-light: #585858;
  --border: #898ea4;
  --accent: #0d47a1;
  --accent-hover: #1266e2;
  --accent-text: var(--bg);
  --code: #d81b60;
  --preformatted: #444;
  --marked: #fd3;
  --disabled: #efefef;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #212121;
    --accent-bg: #2b2b2b;
    --text: #dcdcdc;
    --text-light: #ababab;
    --accent: #ffb300;
    --accent-hover: #ffe099;
    --accent-text: var(--bg);
    --code: #f06292;
    --preformatted: #ccc;
    --disabled: #111;
  }
}
*,
:before,
:after {
  box-sizing: border-box;
}
input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
html {
  font-family: var(--sans-font);
  scroll-behavior: smooth;
}
body {
  color: var(--text);
  background-color: var(--bg);
  grid-template-columns: 1fr min(45rem, 90%) 1fr;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
  display: grid;
}
body > * {
  grid-column: 2;
}
main {
  padding-top: 1.5rem;
}
body > footer {
  color: var(--text-light);
  text-align: center;
  border-top: var(--border-width) solid var(--border);
  margin-top: 4rem;
  padding: 2rem 1rem 1.5rem;
  font-size: 0.9rem;
}
h1 {
  font-size: 3rem;
}
h2 {
  margin-top: 3rem;
  font-size: 2.6rem;
}
p {
  margin: 1.5rem 0;
}
p,
h1,
h2 {
  overflow-wrap: break-word;
}
h1,
h2 {
  line-height: 1.1;
}
@media only screen and (width<=720px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2.1rem;
  }
}
a,
a:visited {
  color: var(--accent);
}
a:hover {
  text-decoration: none;
}
input:disabled {
  cursor: not-allowed;
  background-color: var(--disabled);
  border-color: var(--disabled);
  color: var(--text-light);
}
.button:focus-visible,
button:focus-visible:where(:enabled),
input:enabled:focus-visible:where(
    [type="submit"],
    [type="reset"],
    [type="button"]
  ) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
section {
  border-top: var(--border-width) solid var(--border);
  border-bottom: var(--border-width) solid var(--border);
  margin: 3rem 0;
  padding: 2rem 1rem;
}
section:first-child {
  border-top: 0;
  padding-top: 0;
}
section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
input {
  font-size: inherit;
  border-radius: var(--standard-border-radius);
  box-shadow: none;
  max-width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5em;
  font-family: inherit;
  display: inline-block;
}
input {
  color: var(--text);
  background-color: var(--bg);
  border: var(--border-width) solid var(--border);
}
label {
  display: block;
}
input[type="checkbox"] {
  vertical-align: middle;
  width: min-content;
  position: relative;
}
input[type="checkbox"] + label {
  display: inline-block;
}
input[type="checkbox"]:checked {
  background-color: var(--accent);
}
input[type="checkbox"]:checked:after {
  content: " ";
  border-right: solid var(--bg) 0.08em;
  border-bottom: solid var(--bg) 0.08em;
  background-color: #0000;
  border-radius: 0;
  width: 0.2em;
  height: 0.4em;
  font-size: 1.8em;
  position: absolute;
  top: 0.04em;
  left: 0.18em;
  transform: rotate(45deg);
}
@media only screen and (width<=720px) {
  input {
    width: 100%;
  }
}
code {
  font-family: var(--mono-font);
  color: var(--code);
}
dialog::backdrop {
  background-color: var(--bg);
  opacity: 0.8;
}
@media print {
  @page {
    margin: 1cm;
  }
  body {
    display: block;
  }
  body > footer {
    display: none;
  }
  a[href^="http"]:after {
    content: " <" attr(href) ">";
  }
  a {
    text-decoration: none;
  }
  p {
    widows: 3;
    orphans: 3;
  }
  svg {
    break-inside: avoid;
  }
}
