@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #999;
  --accent: #1a1a1a;
  --link: #444;
  --link-hover: #000;
  --border: #e0e0e0;
}

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

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Hero */
.hero {
  margin-bottom: 3rem;
}

.name {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.name a {
  color: inherit;
  text-decoration: none;
}

.name a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.prompt {
  color: var(--text-tertiary);
}

.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--text-tertiary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Sections */
.section {
  margin-bottom: 2.5rem;
}

.separator {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

/* About */
.about-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Links in text */
.about-text a,
.post-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.15s;
}

.about-text a:hover,
.post-body a:hover {
  text-decoration-color: var(--text);
}

/* Post list (homepage) */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-item {
  display: flex;
  gap: 1.5rem;
  text-decoration: none;
  padding: 0.375rem 0;
  transition: opacity 0.15s;
}

.post-item:hover {
  opacity: 0.6;
}

.post-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.post-title {
  font-size: 0.8125rem;
  color: var(--text);
}

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

.post-header h1 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.post-body {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body h2 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.375rem;
}

.post-body code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
  font-size: 0.8em;
}

.post-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-decoration: none;
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--text);
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 3rem 1.25rem;
  }

  .post-item {
    flex-direction: column;
    gap: 0.125rem;
  }
}

/* Selection */
::selection {
  background: var(--text);
  color: var(--bg);
}
