/* A deliberately small stylesheet. The site is ordinary HTML first.
 * Adapted from littledivy.com. */

html {
  color-scheme: light;
}

body {
  background: white;
  color: black;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: normal;
  margin: 8px auto;
  max-width: 760px;
  padding: 0 8px;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

nav {
  margin-bottom: 1.25rem;
}

nav a:first-child {
  font-weight: bold;
}

footer {
  margin-top: 3em;
}

h1,
h2,
h3,
h4 {
  font-family: inherit;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

h2 {
  font-size: 1.5em;
  margin: 0.83em 0;
}

h3 {
  font-size: 1.17em;
  margin: 1em 0;
}

p {
  margin: 1em 0;
}

img,
svg,
video {
  height: auto;
  max-width: 100%;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

code {
  font-size: 0.9em;
}

pre {
  background: #f5f5f5;
  border: 1px solid #ccc;
  overflow-x: auto;
  padding: 0.75em;
  white-space: pre;
}

table {
  border-collapse: collapse;
  margin: 1em 0;
}

th,
td {
  border: 1px solid #ccc;
  padding: 0.35em 0.7em;
  text-align: left;
}

th {
  background: #f5f5f5;
}

blockquote {
  margin-left: 2em;
}

#chart {
  color: #666;
  margin: 1.5em 0;
}

figure {
  margin: 1.5em 0;
}

.crumb {
  color: #666;
}

.next {
  margin-top: 2.5em;
}

#chart svg {
  display: block;
  height: auto;
  width: 100%;
}

.note-card {
  border-left: 3px solid #777;
  margin: 1em 0;
  padding-left: 1em;
}

@media (max-width: 600px) {
  body {
    overflow-wrap: anywhere;
  }

  pre {
    font-size: 0.8em;
  }
}
