:root {
  color-scheme: light dark;
  --bg: #fcfbf8;
  --fg: #232323;
  --dim: #767471;
  --rule: #dedbd4;
  --tint: #f2efe8;
  --link: #1f4e8c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171717;
    --fg: #d9d7d2;
    --dim: #8b8984;
    --rule: #343330;
    --tint: #212120;
    --link: #8fb4e3;
  }
}

html {
  background: var(--bg);
  color: var(--fg);
  font: 112.5%/1.6 Charter, "Bitstream Charter", "Iowan Old Style",
    "Palatino Linotype", Palatino, Georgia, serif;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 30em) { html { font-size: 100%; } }

body {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  hyphens: auto;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
a:hover { text-decoration-color: currentColor; }

header { margin-bottom: 3rem; }
header a { color: var(--fg); text-decoration: none; letter-spacing: 0.01em; }
header a:hover { color: var(--link); }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
  hyphens: manual;
}
h1 { font-size: 1.75rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin: 2.4rem 0 0.7rem; }
h3 { font-size: 1rem; margin: 2rem 0 0.5rem; font-style: italic; }
h4, h5, h6 { font-size: 1rem; margin: 1.5rem 0 0.4rem; font-weight: 500; }

p { margin: 0 0 1em; text-wrap: pretty; }
.meta { color: var(--dim); font-size: 0.9rem; margin-bottom: 2.2rem; }
time { font-variant-numeric: lining-nums tabular-nums; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li + li { margin-top: 0.25em; }

blockquote {
  margin: 1.5em 0;
  padding-left: 1.1em;
  border-left: 2px solid var(--rule);
}
blockquote > :last-child { margin-bottom: 0; }

hr { width: 4rem; margin: 2.5rem auto; border: 0; border-top: 1px solid var(--rule); }

img { display: block; max-width: 100%; height: auto; margin: 1.5em 0; }

code, pre {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  hyphens: none;
}
code { background: var(--tint); padding: 0.1em 0.3em; border-radius: 3px; }
pre {
  background: var(--tint);
  margin: 1.5em 0;
  padding: 0.8em 1em;
  overflow-x: auto;
  line-height: 1.5;
  tab-size: 4;
  border-radius: 3px;
}
pre code { background: none; padding: 0; font-size: 1em; }

/* index */
.posts { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.posts li { display: flex; gap: 1.25em; align-items: baseline; margin: 0; padding: 0.2em 0; }
.posts time { flex: 0 0 3.6em; color: var(--dim); font-size: 0.9rem; }
.posts a { color: var(--fg); text-decoration: none; }
.posts a:hover { color: var(--link); text-decoration: underline; }

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 0.85rem;
}
footer a { color: inherit; }
