@import url("/css/syntax-theme-dark.css") (prefers-color-scheme: dark);
@import url("/css/syntax-theme-light.css") (prefers-color-scheme: light);

@media (prefers-color-scheme: light) {
  :root {
    --text-color: #000;
    --page-background: #fff;
    --link-color: rgb(42, 93, 173);
    --hover-color: rgb(60, 110, 200);
    --draft-color: rgb(255, 0, 0);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #fff;
    --page-background: #252525;
    --link-color: rgb(125, 175, 255);
    --hover-color: rgb(60, 110, 200);
    --draft-color: rgb(255, 0, 0);
  }
}

:root {
  --body-width: 960px;
}

@media screen {
  html {
    font-size: 62.5%;
  }

  hr {
    width: 100%;
  }

  body {
    background-color: var(--page-background);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
        "Fira Sans", "Droid Sans", "Helvetica Neue",
        sans-serif;
    font-size: 2rem;
    max-width: var(--body-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  pre[class*="language-"] {
    font-family: Menlo,
        "Droid Sans Mono", "Source Code Pro", "Consolas",
        Courier, monospace;
    font-size: 1.6rem;
    padding: 10px;
    border: 0;
  }

  pre table td {
    padding: 0;
    padding-left: 10px;
 }

  pre table td:nth-of-type(1) {
    text-align: right;
    user-select: none;
    padding-right: 5px;
    border-right: var(--text-color) 1px solid;
  }

  pre mark {
    display: block;
    background-color: rgba(254, 252, 232, 0.9);
  }

  pre table {
    width: 100%;
    border-collapse: collapse;
  }

  a {
    color: var(--link-color);
  }

  a:hover {
    color: var(--hover-color);
  }

  header {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  header h1 {
    margin: 0px;
  }

  header nav ul {
    margin: 0px;
    display: flex;
    justify-content: space-around;
  }

  header nav ul li {
    list-style: none;
    padding: 10px;
    transition: color .5s;
  }

  .nav-link {
    font-size: 3.3rem;
    color: #929292;
    text-decoration: none;
  }

  .nav-link:hover {
    color: var(--link-color);
    text-decoration: none;
  }

  .icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
  }

  a.anchor {
    color: var(--text-color);
    display: none;
    text-decoration: none;
  }

  a.anchor:hover {
    color: var(--link-color);
  }

  a.anchor .icon {
    height: .60em;
    width: .60em;
    vertical-align: middle;
  }

  h1:hover a.anchor,
  h2:hover a.anchor,
  h3:hover a.anchor,
  h4:hover a.anchor {
    display: inline;
  }

  .debug {
    max-width: var(--body-width);
    word-break:break-all;
  }
}

@media only screen and (max-device-width: 414px) {
  pre[class*="language"] {
    font-size: 1.0rem;
    padding: 10px;
  }
}

@media print {
  header {
    display: none;
  }

  [aria-hidden=true] {
    display: none;
  }

  .icon {
    display: none;
  }
  
  a {
    text-decoration: none;
  }

  a[href^="https://"]:after {
    content: " (" attr(href) ")";
  }

  section {
    page-break-inside: avoid;
  }
}
