:root,
html[data-theme='dark'] {
  --ink-0: #ffffff;
  --ink-50: #f5f5f5;
  --ink-100: #e5e5e5;
  --ink-300: #a3a3a3;
  --ink-500: #737373;
  --ink-700: #262626;
  --ink-800: #1a1a1a;
  --ink-900: #171717;
  --ink-950: #0d0d0d;
}
html[data-theme='light'] {
  --ink-0: #0d0d0d;
  --ink-50: #171717;
  --ink-100: #262626;
  --ink-300: #595959;
  --ink-500: #8c8c8c;
  --ink-700: #d4d4d4;
  --ink-800: #e5e5e5;
  --ink-900: #f0f0f0;
  --ink-950: #ffffff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--ink-50);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ink-800);
}
.brand {
  font-size: 13px;
  color: var(--ink-500);
}
.brand a {
  color: inherit;
  text-decoration: none;
}
.theme-toggle {
  background: transparent;
  border: 1px solid var(--ink-800);
  color: var(--ink-0);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
}
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  flex: 1;
  width: 100%;
}
h1.title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--ink-0);
}
.meta {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-500);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-800);
}
.content {
  font-size: 16.5px;
  line-height: 1.75;
  /* Body copy reads more comfortably a shade below full-strength white/black —
     pure ink-0 on ink-950 is high enough contrast to cause halation over a
     long note. Headings stay at ink-0 for hierarchy against softened prose. */
  color: var(--ink-100);
}
.content h1,
.content h2,
.content h3 {
  color: var(--ink-0);
}
.content h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 32px 0 10px;
}
.content h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 28px 0 8px;
}
.content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 22px 0 6px;
}
.content h1:first-child,
.content h2:first-child,
.content h3:first-child {
  margin-top: 0;
}
.content p {
  margin: 14px 0;
}
.content ul,
.content ol {
  padding-left: 24px;
  margin: 14px 0;
}
.content li {
  margin: 5px 0;
}
.content li > ul,
.content li > ol {
  margin: 5px 0;
}
.content blockquote {
  border-left: 2px solid var(--ink-300);
  padding-left: 16px;
  margin: 18px 0;
  color: var(--ink-100);
  font-style: italic;
}
.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--ink-900);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.87em;
}
.content pre {
  background: var(--ink-900);
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  line-height: 1.55;
  font-size: 0.87em;
}
.content pre code {
  background: transparent;
  padding: 0;
}
.content a {
  color: var(--ink-0);
  text-decoration-color: var(--ink-500);
  text-underline-offset: 2px;
}
.content a:hover {
  text-decoration-color: var(--ink-0);
}
.task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 4px 0;
}
.task-item input {
  margin-top: 5px;
  accent-color: var(--ink-0);
}
.task-item.checked > div {
  text-decoration: line-through;
  color: var(--ink-500);
}
.task-list {
  padding-left: 0;
}
.state {
  color: var(--ink-500);
  font-size: 14px;
  padding: 60px 20px;
  text-align: center;
}
.site-footer {
  border-top: 1px solid var(--ink-800);
  padding: 16px 20px;
  text-align: center;
}
.site-footer a {
  color: var(--ink-500);
  font-size: 12px;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink-0);
  text-decoration: underline;
}
