/* Barebones indie stylesheet */
body {
  background-color: crimson;
  color: white;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  margin: 20px;
}
a {
  text-underline-offset: 2px;
}
a:link {
  color: gold;
  font-weight: bold;
}
a:visited {
  color: goldenrod;
}
a:hover {
  color: white;
  background-color: firebrick;
}
a:active {
  color: black;
}
h1,
h2,
h3 {
  color: white;
  font-family: "Courier New", Courier, monospace;
}
h1 {
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#wrap {
  width: 90%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
table {
  width: 100%;
  border: 2px solid midnightblue;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid midnightblue;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  background-color: midnightblue;
  color: white;
}
.marquee {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 15px;
}
.marquee span {
  font-size: 13px;
  display: inline-block;
  padding-left: 100%;
  animation: scroll 15s linear infinite;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Gold-on-crimson scrollbar */
* {
  scrollbar-color: gold crimson;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: crimson;
}
::-webkit-scrollbar-thumb {
  background-color: gold;
  border-radius: 6px;
  border: 2px solid crimson;
}
::-webkit-scrollbar-thumb:hover {
  background-color: goldenrod;
}

/* Top nav */
nav.sitenav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
nav.sitenav a {
  margin: 0;
}
/* Link cards*/
dl {
  margin: 20px 0;
}
dt {
  border: 2px dotted white;
  border-bottom: 0;
  padding: 12px 14px 0 14px;
  font-size: 18px;
}
dd {
  border: 2px dotted white;
  border-top: 0;
  margin: 0 0 12px 0;
  padding: 6px 14px 12px 14px;
  font-size: 14px;
  color: whitesmoke;
}

/* Accordion shelves */
details.shelf {
  border: 2px dotted white;
  margin: 20px 0;
  padding: 0 14px;
}
details.shelf > summary {
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  color: gold;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}
details.shelf > summary::-webkit-details-marker {
  display: none;
}
details.shelf > summary::before {
  content: "[+] ";
}
details.shelf[open] > summary::before {
  content: "[-] ";
}
details.shelf > summary:hover {
  color: white;
}
details.shelf[open] > summary {
  border-bottom: 2px dashed white;
}
details.shelf dl {
  margin: 14px 0;
}

/* Programming blocks */
section {
  margin-block: 80px;
  border: 2px dashed white;
  padding: 0 20px 15px 20px;
}

section:last-of-type {
  margin-bottom: 20px;
}

section h2 {
  margin-bottom: 20px;
  border-bottom: 2px dashed white;
  padding-bottom: 10px;
}
section h2:not(:first-of-type) {
  margin-top: 40px;
  border-top: 2px dashed white;
  padding-top: 10px;
}

section:has(+ blockquote) {
  margin-bottom: 20px;
}

section + blockquote {
  margin-top: 0;
  margin-bottom: 50px;
}

blockquote {
  border-left: 4px solid gold;
  padding-left: 10px;
  margin: 12px 0;
}

pre,
code,
samp,
kbd {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}
pre {
  margin: 12px 0;
  padding: 10px;
  border: 2px solid white;
  overflow-x: auto;
  white-space: pre;
  tab-size: 4;
}
pre.source {
  background-color: white;
  color: black;
}
pre.output {
  background-color: midnightblue;
  color: white;
}
pre code,
pre samp {
  background: none;
  color: inherit;
  border: 0;
  padding: 0;
  font-size: inherit;
}
kbd {
  background: none;
  border: 0;
  padding: 0;
  color: gold;
  font-weight: bold;
}
code,
samp {
  background-color: white;
  color: black;
  padding: 0 3px;
}
code {
  border-radius: 4px;
  padding: 2px 4px;
}
var::before {
  content: open-quote;
}
var::after {
  content: close-quote;
}

/* Question lists */
ol li {
  margin-bottom: 30px;
  padding-left: 6px;
}
