@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #2c3e50;
  --accent: #8e44ad;
  --bg-light: #fafafa;
  --bg-dark: #1a1a1a;
  --text-light: #333;
  --text-dark: #e0e0e0;
  --gray-light: #666;
  --gray-dark: #999;
  --border-light: #e0e0e0;
  --border-dark: #333;
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.75;
  background: var(--bg-light);
  color: var(--text-light);
}

@media (prefers-color-scheme: dark) {
  body {
    background: var(--bg-dark);
    color: var(--text-dark);
  }
  .strip { border-bottom-color: var(--border-dark); }
  .tagline { color: var(--gray-dark); }
  time { color: var(--gray-dark); }
  .post-list li { border-bottom-color: var(--border-dark); }
  blockquote { border-left-color: var(--accent); }
  pre { border-color: var(--border-dark); background: #0a0a0a; }
  hr { border-top-color: var(--border-dark); }
  .colophon { border-top-color: var(--border-dark); color: var(--gray-dark); }
  .receipt { color: var(--gray-dark); }
}

.strip {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-bottom: none;
}

.strip a { color: white; text-decoration: none; opacity: 0.9; }
.strip a:hover { opacity: 1; text-decoration: underline; }

.masthead {
  padding-top: 4rem;
  padding-bottom: 2rem;
  text-align: center;
}

.avatar {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
}

.blog-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.blog-title a {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--gray-light);
  letter-spacing: 0.02em;
}

main {
  max-width: 42rem;
  padding-bottom: 4rem;
}

.about {
  margin: 2rem 0 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
  border-radius: 0.5rem;
}

.about p:first-child { margin-top: 0; }
.about p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  h1, h2, h3, h4 { color: var(--accent); }
}

h1 { font-size: 1.8rem; margin: 2.5rem 0 0.5rem; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 0.8rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.6rem; }

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%) 1;
}

.post-header h1 { margin-top: 0; }
.post-header time { display: block; margin-top: 0.5rem; }

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

.post-link {
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--primary);
  transition: color 0.2s;
}

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

@media (prefers-color-scheme: dark) {
  .post-link { color: var(--accent); }
  .post-link:hover { color: #a569bd; }
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  opacity: 0.9;
}

pre {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
  background: #f5f5f5;
  border-radius: 0.25rem;
  border: 1px solid var(--border-light);
}

code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9em;
  padding: 0.15em 0.3em;
  background: rgba(142, 68, 173, 0.1);
  border-radius: 0.2em;
}

.receipt, .colophon {
  font-family: 'Inter', system-ui, sans-serif;
}

.colophon {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
