:root {
  --bg-color: #0a0a0a;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #e0e0e0;
  --text-dim: #999;
  --accent: #ffffff;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-main);
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* links */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* layout */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.content {
  max-width: 980px;
  margin-left: 80px;
}

@media (max-width: 900px) {
  .content { margin-left: 0; }
}

/* navigation */
.nav {
  display: flex;
  gap: 24px;
  margin-bottom: 60px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav a {
  color: var(--text-dim);
  transition: 0.2s;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* home */
.hero { margin-bottom: 80px; }

.subtitle {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0;
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 24px;
}

/* grid + cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.card {
  display: block;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
}

.card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.card h2,
.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
}

.tag {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: block;
  opacity: 0.6;
}

.card--placeholder {
  border-style: dashed;
  opacity: 0.5;
  pointer-events: none;
}

/* article typography */
.article-container { max-width: 680px; margin: 0 auto; }

.page-title {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 24px;
  color: #fff;
}

.meta {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.prose {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.prose p { margin-bottom: 24px; }

/* responsive */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .page-title { font-size: 32px; }
  .nav { margin-bottom: 40px; }
}