:root {
  color-scheme: light dark;
  --background: #fff;
  --text: #212121;
  --muted: #595959;
  --link: #145d96;
  --rule: #ddd;
  --code: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171717;
    --text: #ebebeb;
    --muted: #b5b5b5;
    --link: #91caff;
    --rule: #484848;
    --code: #262626;
  }
}

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2rem) 2rem;
  background: var(--background);
  color: var(--text);
  font: 1.125rem/1.65 Georgia, serif;
  overflow-wrap: break-word;
}

header {
  margin-bottom: 3rem;
}

#collection header {
  text-align: center;
}

#blog-title {
  margin: 0;
  font-size: 2rem;
}

#post #blog-title {
  font-size: 1.4rem;
}

#blog-title a,
.post-title a {
  color: inherit;
  text-decoration: none;
}

#blog-title a:hover,
.post-title a:hover {
  text-decoration: underline;
}

header nav,
footer {
  font: 1rem/1.5 system-ui, sans-serif;
}

header nav {
  margin-top: 0.5rem;
}

.description {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

h2, h3, h4 {
  line-height: 1.25;
}

.post-title,
#title {
  margin: 0;
}

#title {
  font-size: clamp(1.9rem, 5vw, 2.55rem);
}

#wrapper article + article {
  margin-top: 2.75rem;
}

time {
  color: var(--muted);
  font-size: 0.95rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

.e-content img {
  max-width: 100%;
  height: auto;
}

blockquote {
  margin-inline: 0;
  padding-inline-start: 1rem;
  border-inline-start: 0.2rem solid var(--rule);
  color: var(--muted);
}

pre {
  padding: 1rem;
  overflow-x: auto;
  background: var(--code);
}

code {
  font: 0.9em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

:not(pre) > code {
  background: var(--code);
  padding: 0.1em 0.2em;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
