:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #5c6270;
  --border: #e3e5e8;
  --accent: #1f5fd0;
  --code-bg: #f6f7f9;
  --radius: 8px;
  --measure: 68ch;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --fg: #e7e7e7;
    --muted: #9aa1ab;
    --border: #26292e;
    --accent: #7cb0ff;
    --code-bg: #17191d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: var(--measure);
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--font-sans);
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: 1rem; top: 1rem; padding: .5rem .75rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
h1, h2, h3 { line-height: 1.25; margin: 2rem 0 .75rem; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; margin-top: 0; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p, ul, ol, blockquote { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--border); color: var(--muted); }
code { font-family: var(--font-mono); font-size: .9em; }
p code, li code, blockquote code {
  background: var(--code-bg); padding: .15em .35em; border: 1px solid var(--border); border-radius: 4px;
}
pre {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; overflow-x: auto; margin: 0 0 1.15rem;
}
pre code { font-size: .85rem; }
.site-header {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: baseline; justify-content: space-between;
  padding-bottom: 1.25rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--border);
}
.brand { font-weight: 650; color: var(--fg); text-decoration: none; }
.site-header nav { display: flex; gap: 1rem; font-size: .95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--fg); }
.site-header nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.lede { font-size: 1.05rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 1.5rem; }
.post-list h2 { font-size: 1.1rem; margin: 0 0 .25rem; }
.post-list p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.project-list { list-style: none; padding: 0; }
.project { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.project h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.project p { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: .75rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .1rem .55rem; }
.section { margin-top: 3rem; }
.section h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer {
  margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .9rem;
}
.site-footer p { margin: 0 0 .35rem; }
article :first-child { margin-top: 0; }
@media (max-width: 480px) {
  body { font-size: 16px; padding: 1.75rem 1rem 3rem; }
  .site-header { gap: .5rem 1rem; }
}
