/* Base Styles */
:root {
  --primary-color: #3a7bd5;
  --secondary-color: #00d2ff;
  --text-color: #333333;
  --light-text: #777777;
  --background-color: #ffffff;
  --accent-color: #f0f7ff;
  --border-color: #e0e0e0;
  --header-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

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

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-font);
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
}

h2 {
  font-size: 2rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.2rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Layout Components */
header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.site-description {
  color: var(--light-text);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

nav {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover:after {
  width: 100%;
}

main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.content {
  grid-column: 1;
}

.sidebar {
  grid-column: 2;
}

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

.post-title {
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.post-content {
  margin-top: 1.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

.widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--accent-color);
  border-radius: 5px;
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.widget ul {
  list-style: none;
}

.widget li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
  }
  
  .content, .sidebar {
    grid-column: 1;
  }
  
  .sidebar {
    margin-top: 2rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* Print Styles */
@media print {
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  header, nav, .sidebar, footer {
    display: none;
  }
  
  main {
    display: block;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}