*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #fff;
  --fg: #111;
  --muted: #666;
  --accent: #0060df;
  --border: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --fg: #f0f0f0;
    --muted: #999;
    --accent: #6bb3ff;
    --border: #2a2a2a;
  }
}

body {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.site-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}

nav { display: flex; gap: 1.25rem; }
nav a { color: var(--muted); font-size: 0.95rem; }
nav a:hover { color: var(--fg); text-decoration: none; }

h1 { font-size: 1.75rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }

.post-header { margin-bottom: 2rem; }
.post-header h1 { margin-bottom: 0.25rem; }
.post-header time { color: var(--muted); font-size: 0.9rem; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.post-list time { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

.back { color: var(--muted); font-size: 0.9rem; display: inline-block; margin-top: 2.5rem; }
.back:hover { color: var(--fg); text-decoration: none; }

.hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.hero-logo { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.hero h1 { margin: 0; }
.hero p { color: var(--muted); margin: 0.25rem 0 0; }

section { margin-bottom: 2rem; }
section p { margin: 0.5rem 0 0; }

.project-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.project-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.project-list li a { color: var(--fg); }
.project-list li a:hover { color: var(--accent); }
.project-list code { font-size: inherit; }

pre {
  background: var(--border);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9rem;
}
code { font-size: 0.9em; color: var(--muted); }
pre code { background: none; padding: 0; }
