@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/atkinson.woff2) format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/atkinson-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(/fonts/roboto-mono.woff2) format("woff2");
}
:root {
  color-scheme: light dark;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  /* light: warm paper, near-black ink */
  --fg: #2a2723;
  --bg: #f5f2ec;
  --muted: #7a756d;
}
/* dark: charcoal, off-white text */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fg: #d6d3cd; --bg: #1a1a1a; --muted: #8a877f; color-scheme: dark; }
}
:root[data-theme="dark"] { --fg: #d6d3cd; --bg: #1a1a1a; --muted: #8a877f; color-scheme: dark; }
:root[data-theme="light"] { --fg: #2a2723; --bg: #f5f2ec; --muted: #7a756d; color-scheme: light; }
* { box-sizing: border-box; }
html { font: 17px/1.65 var(--sans); }
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
nav {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font: 0.8rem var(--mono);
}
#links { display: flex; gap: 1.25rem; }
#menu { display: none; }
nav a, nav button {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: pre;
}
nav a:hover, nav button:hover { color: var(--fg); text-decoration: none; }
main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}
h1, h2, h3 { font-family: var(--mono); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol, blockquote, pre { margin: 0 0 1.2rem; }
a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
time, .back, small { color: var(--muted); font-size: 0.8rem; font-family: var(--mono); }
article > time { display: block; margin-bottom: 2.5rem; }
.back { margin-bottom: 3rem; }
.back a { text-decoration: none; }
.back a::before { content: "<- "; }
.back a:hover { color: var(--fg); text-decoration: underline; }
.posts { list-style: none; padding: 0; margin-top: 2.5rem; }
.posts li { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.posts a { text-decoration: none; font-family: var(--mono); }
.posts a:hover { text-decoration: underline; }
.posts time { flex-shrink: 0; }
blockquote { margin-left: 0; padding-left: 1rem; border-left: 2px solid var(--muted); color: var(--muted); }
code { font: 0.85em var(--mono); }
pre { padding: 1rem; overflow-x: auto; border: 1px solid var(--muted); }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--muted); margin: 2.5rem 0; }
@media (max-width: 600px) {
  html { font-size: 16px; }
  main { padding: 1.5rem 1.25rem 4rem; }
  nav {
    position: static;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0;
    padding: 1.25rem 1.25rem 0;
    font-size: 0.9rem;
  }
  nav a, nav button { padding: 0.25rem 0; }
  #menu { display: block; }
  #links {
    display: none;
    flex-basis: 100%;
    justify-content: flex-end;
    gap: 1.5rem;
    padding-top: 0.75rem;
  }
  .menu-open #links { display: flex; }
  h1 { font-size: 1.35rem; }
  .posts li { flex-direction: column; gap: 0; margin-bottom: 1rem; }
  pre { margin-left: -1.25rem; margin-right: -1.25rem; border-left: 0; border-right: 0; padding: 1rem 1.25rem; }
}
