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

:root {
  --max-width: 720px;
  --font-sans: system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-bg: #fff;
  --color-link: #0066cc;
  --color-border: #e5e5e5;
}

html {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

header nav {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

header nav a {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
}

a {
  color: var(--color-link);
}

article h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

article time {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

article h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

article h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

article p {
  margin-bottom: 1rem;
}

article pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

article code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

article ul,
article ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

article img {
  max-width: 100%;
  height: auto;
}

.article-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.article-list a {
  display: block;
  text-decoration: none;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: border-color 0.15s;
}

.article-list a:hover {
  border-color: var(--color-link);
}

.article-list h2 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.article-list p {
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.article-list time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
