:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e2e8f0;
  --header-bg: #1e293b;
}

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

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

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background-color: var(--header-bg);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: white;
  letter-spacing: -0.5px;
}

.main-nav a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  color: white;
}

/* Main Content */
.main {
  padding: 3rem 0;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--accent-hover);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Article Page */
.article-header {
  margin-bottom: 2rem;
}

.publish-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  margin-top: 0.5rem;
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
  background: #e2e8f0;
}

article section {
  margin-bottom: 2rem;
}

article h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.sources-list {
  padding-left: 1.5rem;
}

.sources-list li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--header-bg);
  color: #94a3b8;
  padding: 3rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer-text {
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav {
    margin-top: 1rem;
  }
  
  .main-nav a {
    margin: 0 0.75rem;
  }
}