/* mattjesc.github.io: minimal, no framework */
:root {
  --bg: #fdfdfc;
  --fg: #1a1a1a;
  --muted: #667;
  --line: #ddd;
  --accent: #0b4c8c;
  --code-bg: #f4f4f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --fg: #d7dae0;
    --muted: #8b93a1;
    --line: #2c313a;
    --accent: #6db3f9;
    --code-bg: #1f232b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.65 Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--fg);
}
main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
header.site {
  border-bottom: 1px solid var(--line);
  padding-bottom: .75rem;
  margin-bottom: 2rem;
}
header.site .title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}
header.site .title a { color: var(--fg); text-decoration: none; }
header.site .byline {
  color: var(--muted);
  font-family: Helvetica, Arial, sans-serif;
  font-size: .85rem;
  margin-top: .2rem;
}
h1, h2, h3 { font-family: Helvetica, Arial, sans-serif; line-height: 1.25; }
h1 { font-size: 1.55rem; margin: 0 0 .4rem; }
h2 { font-size: 1.2rem; margin-top: 2.2rem; border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
h3 { font-size: 1.02rem; margin-top: 1.8rem; }
a { color: var(--accent); }
code, pre {
  font: .86rem/1.5 "SF Mono", Menlo, Consolas, monospace;
}
code { background: var(--code-bg); padding: .1em .3em; border-radius: 3px; }
pre {
  background: var(--code-bg);
  padding: .9rem 1rem;
  border-radius: 5px;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; font-family: Helvetica, Arial, sans-serif; }
th, td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: top; }
th { background: var(--code-bg); }
blockquote {
  margin: 1rem 0; padding: .25rem 1rem;
  border-left: 3px solid var(--line); color: var(--muted);
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.meta {
  color: var(--muted);
  font-family: Helvetica, Arial, sans-serif;
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.meta .tags a { text-decoration: none; }
.postlist { list-style: none; padding: 0; }
.postlist li {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.postlist .date { color: var(--muted); font-family: Helvetica, Arial, sans-serif; font-size: .8rem; }
.postlist .t { font-family: Helvetica, Arial, sans-serif; font-size: 1.08rem; margin: .15rem 0; }
.postlist .d { margin: .3rem 0 0; font-size: .95rem; }
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: .9rem;
  color: var(--muted);
  font-family: Helvetica, Arial, sans-serif;
  font-size: .8rem;
}

nav.site {
  font-family: Helvetica, Arial, sans-serif;
  font-size: .85rem;
  margin: -1.2rem 0 2rem;
}
nav.site a { margin-right: 1rem; text-decoration: none; }
nav.site a:hover { text-decoration: underline; }
table.credits td:first-child { white-space: nowrap; color: var(--muted); }
table.credits td:last-child { white-space: nowrap; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
ul.plain .n { font-family: Helvetica, Arial, sans-serif; font-size: .98rem; }
ul.plain .d { display: block; font-size: .92rem; color: var(--muted); }
@media (max-width: 560px) {
  table:not(.credits) { display: block; overflow-x: auto; }
  p, li, td { overflow-wrap: anywhere; }
  table.credits, table.credits tbody, table.credits tr, table.credits td { display: block; width: auto; }
  table.credits tr:first-child { display: none; }
  table.credits tr { border: 1px solid var(--line, #30363d); border-bottom: 0; padding: .5rem .7rem; }
  table.credits tr:last-child { border-bottom: 1px solid var(--line, #30363d); }
  table.credits td { border: 0; padding: .1rem 0; }
  table.credits td:last-child { white-space: normal; }
}
