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

:root {
  --primary-color: #0066cc;
  --text-color: #333;
  --bg-light: #f8f9fa;
  --border-color: #ddd;
  --max-width: 1200px;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

/* Header */
header {
  background: var(--bg-light);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

header h1 a {
  text-decoration: none;
  color: var(--text-color);
}

header h1 a:hover {
  color: var(--primary-color);
}

/* Navigation */
nav {
  margin-top: 1rem;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

nav a {
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

nav a:hover,
nav a.active {
  border-bottom-color: var(--primary-color);
}

/* Two column layout */
.main-wrapper {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 3rem;
}

.sidebar {
  flex-shrink: 0;
  width: 250px;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.content {
  flex: 1;
  min-width: 0;
}

/* Author Bio Sidebar */
.author-bio {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.author-avatar {
  margin-bottom: 1rem;
}

.author-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.author-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.social-links {
  list-style: none;
  margin: 1.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.social-links li {
  margin: 0;
}

.social-links a {
  font-size: 0.9rem;
  display: block;
  padding: 0.3rem 0;
  color: var(--primary-color);
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

/* Main Content */
.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.btn:hover {
  background: #0052a3;
  text-decoration: none;
}

/* Cards */
.card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--bg-light);
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.4rem;
  }

  nav a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .main-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    top: auto;
  }

  .author-avatar img {
    width: 100px;
    height: 100px;
  }

  .page-title {
    font-size: 1.5rem;
  }
}
/* Regular pages (not home) - centered content */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
