:root {
  --bg-primary: #1e1e1e;
  --bg-secondary: #2b2b2b;
  --bg-code: #1a1a1a;
  --border-color: #404040;
  --text-primary: #e0e0e0;
  --text-heading: #ffffff;
  --text-muted: #888888;
  --accent: #b0b0b0;
  --accent-hover: #d6d6d6;
  --code-inline-bg: #333333;
  --code-inline-text: #ff9e64;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  padding-top: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1.25rem; }

pre {
  background-color: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.875rem;
}
pre code { display: block; background: none; padding: 0; }

code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  background-color: var(--code-inline-bg);
  color: var(--code-inline-text);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: #111111;
  border-bottom: 1px solid var(--border-color);
  height: 60px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  color: var(--text-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-nav a:hover { color: var(--accent); }

.hero {
  background-color: var(--bg-secondary);
  padding: 4rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}
.hero h1 { font-size: 3rem; margin: 0 0 0.5rem; }
.hero .subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  font-style: italic;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.project-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.project-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--bg-code);
}
.card-content {
  padding: 1.25rem;
}
.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--text-heading);
}
.card-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.post-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background-color: var(--bg-secondary);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.featured-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2.5rem;
}

.post-content h3 {
  margin-top: 2rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

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

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.5rem 1.5rem;
  color: var(--text-muted);
  font-style: italic;
  background-color: var(--bg-secondary);
  border-radius: 0 6px 6px 0;
}

.footer {
   margin-top: 3rem;
   padding: 2rem 0;
   border-top: 1px solid var(--border-color);
   color: var(--text-muted);
   font-size: 0.875rem;
   text-align: center;
 }

.about-container {
   display: grid;
   grid-template-columns: 300px 1fr;
   gap: 3rem;
   margin: 3rem 0;
}

.about-sidebar {
   text-align: left;
}

.about-headshot {
   width: 200px;
   height: 200px;
   border-radius: 50%;
   object-fit: cover;
   margin-bottom: 1.5rem;
   border: 2px solid var(--border-color);
}

.about-profile h2 {
   margin-top: 0;
   font-size: 1.5rem;
}

.about-bio-content {
   font-size: 0.95rem;
   color: var(--text-primary);
}

.about-bio-content p {
   margin-bottom: 1rem;
}

.about-bio-content ul {
   list-style: none;
   padding: 0;
   margin: 1rem 0;
}

.about-bio-content li {
   margin-bottom: 0.5rem;
}

.about-bio-content a {
   color: var(--accent);
   text-decoration: none;
}

.about-bio-content strong {
   display: block;
   margin-top: 1rem;
   margin-bottom: 0.5rem;
   color: var(--text-heading);
}

.about-header {
   text-align: left;
   margin-bottom: 2rem;
}

.about-header h1 {
   font-size: 2.5rem;
   margin: 0;
}

@media (max-width: 768px) {
   .about-container {
      grid-template-columns: 1fr;
      text-align: center;
   }
   .about-sidebar {
      text-align: center;
   }
   .about-headshot {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      margin: 0 auto 1.5rem;
   }
   .social-links a {
      justify-content: center;
   }
   .hero { padding: 3rem 1rem; }
   .hero h1 { font-size: 2rem; }
   .projects-grid { gap: 1.5rem; }
   body { padding-top: 56px; }
   .site-header { height: 56px; }
}
