:root {
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
  Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
}

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.nav a {
  margin-left: 20px;
  color: var(--muted);
  font-weight: 500;
}

/* HERO */
.hero {
  padding: 48px 0;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  margin: auto;
}

/* CONTENT */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .main-grid {
    grid-template-columns: 3fr 1fr;
  }
}

/* POST CARD */
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.post-card h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.post-meta {
  font-size: 14px;
  color: var(--muted);
}

/* SIDEBAR */
.sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav a {
  margin: 0 8px;
  color: var(--muted);
}

.post-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.post-card {
  transition: box-shadow .2s ease;
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px;
}

.article-title {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #111;
}

.article-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 24px;
}

.article-featured {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
}

.article-content p {
  margin-bottom: 1.4em;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2.2em 0 0.8em;
  color: #111;
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.8em 0 0.6em;
}

.article-content ul {
  padding-left: 20px;
  margin-bottom: 1.4em;
}

.article-content li {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .article-title {
    font-size: 1.7rem;
  }
}
