:root {
  color-scheme: light;
  --bg: #f7f5f2;
  --fg: #1c1917;
  --muted: #57534e;
  --link: #1e3a8a;
  --rule: #e7e5e4;
  --code-bg: #efece7;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1c1917;
    --fg: #f5f5f4;
    --muted: #a8a29e;
    --link: #93c5fd;
    --rule: #44403c;
    --code-bg: #292524;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 2.5rem 1.25rem 4rem;
  color: var(--fg);
  background: var(--bg);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 1.125rem;
  line-height: 1.75;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

.site {
  margin-bottom: 2.5rem;
}

.home {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.home:hover {
  text-decoration: underline;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.875rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.intro,
.post-list p,
time,
.article time {
  color: var(--muted);
}

.intro {
  margin: 0 0 2rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.post-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.post-list time,
.article time {
  display: block;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.post-list a {
  display: inline-block;
  margin: 0.15rem 0;
  color: var(--fg);
  font-size: 1.25rem;
  text-decoration-thickness: 1px;
}

.post-list p {
  margin: 0.15rem 0 0;
  font-size: 1rem;
}

.article time {
  margin-bottom: 1.5rem;
}

.article .meta {
  margin-bottom: 1.5rem;
}

.meta time {
  display: inline;
  margin-bottom: 0;
}

.tags {
  display: inline;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.tags::before {
  content: "·";
  margin: 0 0.4em;
}

.tags li {
  display: inline;
}

.tags li + li::before {
  content: " · ";
}

.prose {
  overflow-wrap: break-word;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose img {
  margin: 0 0 1rem;
}

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

.prose h2,
.prose h3 {
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: var(--code-bg);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.prose pre {
  overflow: auto;
  padding: 0.9rem 1rem;
  border-radius: 0.4rem;
  background: var(--code-bg);
}

.prose pre code {
  padding: 0;
  background: transparent;
}

.prose a {
  text-underline-offset: 0.15em;
}

.discuss {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.discuss a {
  color: inherit;
  text-underline-offset: 0.15em;
}


