:root {
  color-scheme: dark;
  --background: #0B0F14;
  --surface: #111820;
  --border: #263241;
  --text: #E6EDF3;
  --muted: #8B949E;
  --accent: #36C5B4;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.accent { color: var(--accent); }
.muted, .excerpt, .dates, .tags, .site-footer { color: var(--muted); }
.skip-link { position: absolute; top: -100px; left: 24px; background: var(--surface); padding: 12px; z-index: 1; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 24px; }
.brand { text-decoration: none; font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.brand-subtitle { display: block; font-size: 12px; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.site-nav a, .category-filter a { text-decoration: none; }
main { min-height: 65vh; padding-block: 56px 80px; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(32px, 5vw, 48px); margin-block: 16px; }
h2 { font-size: 25px; }
.eyebrow, .badge { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .1em; }
.eyebrow { color: var(--accent); }
.notes-heading { margin-bottom: 32px; }
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.category-filter a { padding: 7px 12px; font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; }
.category-filter a[aria-current], .category-filter a:hover { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.note-list, .tags { list-style: none; padding: 0; }
.note-list { margin: 0; }
.note-entry { padding-block: 32px; border-bottom: 1px solid var(--border); }
.note-entry h2 { margin-block: 14px 10px; }
.note-entry h2 a { text-decoration: none; }
.badges, .dates, .tags { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.badge { border: 1px solid var(--border); padding: 3px 8px; border-radius: 3px; overflow-wrap: anywhere; }
.badge-public { color: var(--accent); }
.badge-private { background: var(--border); color: var(--text); }
.dates, .tags { font-size: 12px; }
.dates time { color: var(--text); }
.tags { margin-bottom: 0; }
.tags li, .excerpt { overflow-wrap: anywhere; }
.excerpt { margin-block: 12px 20px; max-width: 75ch; }
.article-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 44px; font-size: 14px; }
.reading-column { max-width: 800px; margin-inline: auto; min-width: 0; }
.article-heading { padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.article-heading .excerpt { font-size: 18px; }
.article-body { line-height: 1.85; overflow-wrap: anywhere; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { margin-top: 1.8em; }
.article-body h1 { font-size: 32px; }
.article-body a { color: var(--accent); }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface); padding: .15em .35em; border-radius: 3px; }
.article-body pre { max-width: 100%; overflow-x: auto; white-space: pre; overflow-wrap: normal; word-break: normal; tab-size: 4; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; line-height: 1.65; }
.article-body pre code { padding: 0; background: none; border: 0; white-space: pre; overflow-wrap: normal; }
.article-body blockquote { margin-inline: 0; border-left: 3px solid var(--accent); padding-left: 20px; color: var(--muted); }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin-block: 36px; }
.article-footer { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 28px; }
.site-footer { border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 28px; font-size: 12px; }
.login-panel, .empty-state { padding: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.empty-state { margin-block: 32px; }
.login-panel { max-width: 440px; margin: 32px auto; }
.login-panel h1 { font-size: 32px; }
.login-form { display: grid; gap: 14px; margin-top: 28px; }
.login-form label { font-size: 14px; }
.login-form input[type="password"] { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--background); color: var(--text); }
.login-form button { margin-top: 8px; padding: 12px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--background); font-weight: 700; }
.login-error { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--background); font-size: 14px; }
.text-button { color: var(--muted); border: 1px solid var(--border); border-radius: 4px; background: var(--surface); padding: 8px 12px; }
.text-button:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .site-nav { gap: 12px 18px; }
  main { padding-block: 32px 56px; }
  .article-toolbar { margin-bottom: 32px; }
  .login-panel { padding: 24px; margin-block: 16px; }
  .article-body pre { padding: 16px; }
}
