:root {
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #64748b;
  --color-primary: #3c6eb4;
  --color-primary-light: #e8f0fe;
  --color-accent: #51a2da;
  --color-fedora-blue: #3c6eb4;
  --color-fedora-dark: #294172;
  --color-border: #e2e8f0;
  --color-code-bg: #f1f5f9;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 800px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header */
.site-header {
  background: var(--color-fedora-dark);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.site-logo svg {
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: #fff;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-fedora-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.hero-author {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Post cards */
.post-list {
  display: grid;
  gap: 1rem;
  padding-bottom: 4rem;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.post-card a {
  display: block;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
}

.post-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.post-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-fedora-dark);
  margin-bottom: 0.4rem;
}

.post-card .post-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Single post */
.post {
  flex: 1;
}

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

.post-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-fedora-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.post-header .post-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.post-meta .author {
  font-weight: 600;
  color: var(--color-primary);
}

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

.tag {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Post content */
.post-content {
  padding-bottom: 4rem;
}

.post-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-fedora-dark);
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.post-content p {
  margin-bottom: 1.25rem;
}

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

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

.post-content strong {
  font-weight: 600;
  color: var(--color-text);
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(60,110,180,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.post-content a:hover {
  text-decoration-color: var(--color-primary);
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--color-primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-fedora-dark);
  font-style: italic;
}

.post-content code {
  background: var(--color-code-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.post-content pre {
  background: var(--color-code-bg);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* Talk cards inside content */
.talk-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.talk-card h3 {
  margin-top: 0;
  color: var(--color-fedora-dark);
  font-size: 1.1rem;
}

.talk-card p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.talk-card.speaker {
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-light);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--color-fedora-dark);
  color: rgba(255,255,255,0.7);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Section divider */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .post-header h1 {
    font-size: 1.8rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
