*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3e;
  --accent: #7c6af7;
  --accent2: #4ecca3;
  --text: #e2e8f0;
  --muted: #8892a4;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header { border-bottom: 1px solid var(--border); padding: 1.2rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
nav a { color: var(--muted); font-size: 0.875rem; margin-left: 1.25rem; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 520px; }
.badge { display: inline-block; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px; padding: 2px 7px; margin-bottom: 0.9rem; }

/* Post list */
.posts { padding: 2rem 0; }
.posts h2 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1.5rem; }
.post-card { border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; margin-bottom: 1rem; background: var(--surface); transition: border-color 0.15s; }
.post-card:hover { border-color: var(--accent); }
.post-card .date { font-size: 0.78rem; color: var(--accent2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.post-card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }
.post-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.tags { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.72rem; background: var(--border); color: var(--muted); border-radius: 4px; padding: 2px 8px; }

/* Article page */
.article-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.article-header .date { font-size: 0.8rem; color: var(--accent2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.article-header h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.article-header .subtitle { color: var(--muted); font-size: 1.05rem; }
.article-body { padding: 2rem 0; }
.tool-item { border-left: 3px solid var(--accent); padding: 1.2rem 1.2rem 1.2rem 1.4rem; margin-bottom: 1.5rem; background: var(--surface); border-radius: 0 8px 8px 0; }
.tool-item .tool-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.tool-item .tool-meta { font-size: 0.78rem; color: var(--accent); margin-bottom: 0.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.tool-item p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.section-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent2); margin: 2rem 0 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.tldr { background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 2rem; font-size: 0.95rem; color: var(--muted); }
.tldr strong { color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 1.5rem 0; margin-top: 2rem; }
footer p { color: var(--muted); font-size: 0.83rem; text-align: center; }

/* Responsive */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  nav a:first-child { margin-left: 0; }
}
