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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #1a1a1a;
  background: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

/* Accent */
:root {
  --accent: #2563eb;
  --muted: #6b7280;
  --border: #e5e7eb;
}

/* Layout */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Nav */
nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav .site-name {
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  margin-right: auto;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent);
}

/* Main content */
main {
  padding: 3rem 0 4rem;
}

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  text-decoration: none;
}

/* Page header */
.page-header {
  margin-bottom: 2.5rem;
}

.page-header p {
  color: var(--muted);
  margin: 0;
}

/* Blog list */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:first-child {
  border-top: 1px solid var(--border);
}

.post-list a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
}

.post-list a:hover {
  color: var(--accent);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Project list */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.project-list li:first-child {
  border-top: 1px solid var(--border);
}

.project-title {
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.project-links {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.project-links a {
  margin-right: 0.75rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  color: var(--muted);
  background: #f3f4f6;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

/* Prose (blog post body) */
.prose {
  max-width: 65ch;
}

.prose h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.prose h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
}

.prose pre {
  overflow-x: auto;
  background: #f3f4f6;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 1.25rem 0;
}

.prose code {
  font-size: 0.875em;
  background: #f3f4f6;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

/* Post header */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-links li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.contact-links li:first-child {
  border-top: 1px solid var(--border);
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--accent);
}
