* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f6f8;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

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

.brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  gap: 10px;
}

.brand img {
  width: 32px;
}

nav a {
  margin-left: 20px;
  font-size: 14px;
  color: #374151;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.card img {
  width: 100%;
  display: block;
}

.card div {
  padding: 20px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: #4b5563;
}

.sidebar {
  background: white;
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.sidebar h3 {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  background: #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.footer {
  margin-top: 60px;
  padding: 30px 0;
  background: #111827;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}
