:root {
  color-scheme: light dark;
  --paper: light-dark(#f8f7f4, #1a1b18);
  --ink: light-dark(#292b27, #e8e7e1);
  --muted: light-dark(#54594f, #a8ac9f);
  --rule: light-dark(#dfe1d9, #34362f);
  --underline: light-dark(#adb5a2, #5b6153);
  --accent: light-dark(#3d5232, #a8c28e);
  --selection: light-dark(#dce4cf, #3a4730);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 3rem clamp(1.5rem, 7vw, 5rem);
}
main { width: 100%; max-width: 42rem; margin: 0 auto; }
.site-header { margin-bottom: 3rem; }
.site-name { color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.lede { margin: .75rem 0 0; color: var(--muted); line-height: 1.7; }
.post-list { margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.post-list li { padding: 1.125rem 0; border-bottom: 1px solid var(--rule); }
a { color: var(--accent); text-decoration-color: var(--underline); text-underline-offset: .22em; }
.post-title { font-size: 1.125rem; font-weight: 600; }
time, .post-meta { color: var(--muted); font-size: .875rem; }
article { margin-top: 1.5rem; line-height: 1.8; }
article h2, article h3 { margin-top: 2rem; line-height: 1.35; }
article pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--rule); border-radius: .35rem; background: color-mix(in srgb, var(--paper), var(--ink) 4%); line-height: 1.55; }
article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
article :not(pre) > code { padding: .12em .3em; border-radius: .2rem; background: color-mix(in srgb, var(--paper), var(--ink) 7%); }
article blockquote { margin-left: 0; padding-left: 1rem; border-left: 2px solid var(--rule); color: var(--muted); }
.site-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--selection); }
form { display: grid; gap: .75rem; max-width: 24rem; margin-top: 2rem; }
input, button { font: inherit; padding: .7rem .9rem; border: 1px solid var(--rule); border-radius: .3rem; }
input { min-width: 0; width: 100%; color: var(--ink); background: var(--paper); }
button { background: var(--accent); color: var(--paper); cursor: pointer; }
article img { max-width: 100%; height: auto; }
