:root {
  color-scheme: dark;
  --bg: #0a0b0b;
  --surface: #0f1110;
  --surface-2: #151716;
  --fg: #ece8df;
  --fg-2: #9b978f;
  --fg-3: #807c75;
  --fg-4: #6b6761;
  --line: rgba(236, 232, 223, .08);
  --line-2: rgba(236, 232, 223, .14);
  --line-strong: rgba(236, 232, 223, .24);
  --accent: #86d29a;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font: 400 14px/1.5 "JetBrains Mono", ui-monospace, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dim { color: var(--fg-4); }

.page { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 32px 64px; }
header { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mark { font-size: 16px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; border-radius: 4px; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }

article { max-width: 68ch; padding: 48px 0 32px; }
article h1 { margin: 0; font-size: 36px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.updated { margin: 12px 0 0; color: var(--fg-3); font-size: 12px; }
.lede { margin: 24px 0 0; color: var(--fg); }
article h2 { margin: 40px 0 0; font-size: 16px; font-weight: 500; line-height: 24px; }
article p, article li { color: var(--fg-2); line-height: 24px; }
article p { margin: 12px 0 0; }
article ul { margin: 12px 0 0; padding-left: 20px; }
article li + li { margin-top: 8px; }
article strong { color: var(--fg); font-weight: 500; }
article a { color: var(--fg); text-decoration-color: var(--fg-4); text-underline-offset: 3px; }
article a:hover { text-decoration-color: var(--fg); }
code { padding: 1px 4px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); font: inherit; font-size: 13px; }

.site-foot { display: flex; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 12px; }
.site-foot a { text-decoration: none; transition: color 160ms var(--ease); }
.site-foot a:hover, .site-foot a[aria-current="page"] { color: var(--fg); }

@media (max-width: 640px) {
  .page { padding: 0 16px 48px; }
  header { height: 64px; }
  article { padding-top: 24px; }
  article h1 { font-size: 28px; }
}
