:root {
  color-scheme: only light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: #111;
  font-family: serif;
  font-size: 18px;
  line-height: 1.55;
}

body {
  background: #fff;
  color: #111;
  width: 100%;
  max-width: 42rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

main,
article {
  min-width: 0;
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 2rem;
}

.site-mark {
  margin: 0 0 2.75rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.site-mark a:link,
.site-mark a:visited {
  color: #111;
  text-decoration: none;
}

.site-mark a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.site-mark span {
  color: #0000ee;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin: 0 0 0.4rem;
}

.post-date {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

a:link {
  color: #0000ee;
}

a:visited {
  color: #551a8b;
}

a:active {
  color: #ff0000;
}

hr {
  border: 0;
  border-top: 1px solid #bbb;
  margin: 2rem 0 1rem;
}

.post-list {
  padding-left: 1.25rem;
}

.post-list li + li {
  margin-top: 0.5rem;
}

.post-list time {
  display: inline-block;
  width: 6.5rem;
  font-variant-numeric: tabular-nums;
}

article h2 {
  margin-top: 2.5rem;
}

article h3 {
  margin-top: 2rem;
}

figure {
  max-width: 100%;
  margin: 2rem 0;
}

figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

figcaption {
  margin-top: 0.5rem;
  color: #555;
  font-size: 0.85rem;
}

blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 2px solid #bbb;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  border-left: 3px solid #0000ee;
  background: #f5f5f5;
  font-size: 0.85rem;
  line-height: 1.45;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

:not(pre) > code {
  padding: 0.08em 0.25em;
  background: #f0f0f0;
  font-size: 0.9em;
}

table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #666;
}

.token.keyword,
.token.operator {
  color: #5a189a;
}

.token.function,
.token.class-name {
  color: #0055aa;
}

.token.number,
.token.boolean,
.token.string {
  color: #8b2500;
}
