:root {
  --bg: #0f172a;
  --card-bg: #0b1120;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: #020617;
  color: var(--text);
}

.main-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.site-tagline {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 14px;
  font-size: 0.9rem;
}

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

/* Card / article shell */

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px 30px;
  border: 1px solid var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 8px;
}

.article-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
}

/* Typography inside generated article */

.article-body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body h2 {
  font-size: 1.3rem;
  margin: 1.8rem 0 0.6rem;
}

.article-body h3 {
  font-size: 1.08rem;
  margin: 1.4rem 0 0.4rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

.article-body li {
  margin: 0.2rem 0;
}

.article-body strong {
  font-weight: 600;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */

.footer {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
