/* LaunchCode Blog — static guide pages. Dark, Replicate-style theme,
   matching the tokens used in frontend/src/components/Header.jsx and
   Footer.jsx (#080808 background, #7c3aed violet accent). */

:root {
  --lc-bg: #080808;
  --lc-bg-raised: #0d0d0d;
  --lc-border: #1f1f1f;
  --lc-border-soft: #1a1a1a;
  --lc-text: #f0f0f0;
  --lc-text-muted: #a3a3a3;
  --lc-text-dim: #737373;
  --lc-text-faint: #404040;
  --lc-accent: #7c3aed;
  --lc-accent-hover: #6d28d9;
  --lc-accent-glow: rgba(124, 58, 237, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--lc-bg);
  color: var(--lc-text-muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #a78bfa;
  text-decoration: underline;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--lc-border);
  background: rgba(8, 8, 8, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lc-text);
}

.brand:hover {
  color: var(--lc-text);
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--lc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--lc-accent-glow);
  flex-shrink: 0;
}

.brand-mark img {
  width: 13px;
  height: 13px;
  display: block;
}

.brand-word {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-word .accent {
  color: var(--lc-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--lc-text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--lc-text);
  background: #1a1a1a;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--lc-text);
}

/* Breadcrumb */

.breadcrumb {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 0;
  font-size: 12px;
  color: var(--lc-text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: var(--lc-text-dim);
}

.breadcrumb span[aria-current="page"] {
  color: var(--lc-text-dim);
}

/* Article */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 64px;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lc-accent);
  margin: 20px 0 10px;
}

.article h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--lc-text);
  margin: 0 0 14px;
  font-weight: 700;
}

.article .meta {
  font-size: 13px;
  color: var(--lc-text-dim);
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--lc-border-soft);
}

.article h2 {
  font-size: 22px;
  color: var(--lc-text);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 16px;
}

.article h3 {
  font-size: 17px;
  color: var(--lc-text);
  font-weight: 600;
  margin: 28px 0 10px;
}

.article p {
  margin: 0 0 18px;
  color: var(--lc-text-muted);
}

.article ul,
.article ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--lc-text-muted);
}

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

.article strong {
  color: var(--lc-text);
  font-weight: 600;
}

.callout {
  background: var(--lc-bg-raised);
  border: 1px solid var(--lc-border);
  border-left: 3px solid var(--lc-accent);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 14px;
}

.callout p {
  margin: 0;
  color: var(--lc-text-muted);
}

.callout p + p {
  margin-top: 10px;
}

/* FAQ */

.faq {
  margin-top: 52px;
  padding-top: 8px;
  border-top: 1px solid var(--lc-border-soft);
}

.faq h2 {
  margin-top: 28px;
}

.faq-item {
  margin-bottom: 22px;
}

.faq-item h3 {
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
}

/* CTA */

.cta {
  margin-top: 52px;
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
  border: 1px solid var(--lc-border);
  text-align: center;
}

.cta p {
  color: var(--lc-text-muted);
  margin: 0 0 16px;
  font-size: 15px;
}

.cta-button {
  display: inline-block;
  background: var(--lc-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.cta-button:hover {
  background: var(--lc-accent-hover);
  box-shadow: 0 0 18px var(--lc-accent-glow);
  color: #ffffff;
  text-decoration: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--lc-border);
  background: var(--lc-bg-raised);
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.footer-inner p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--lc-text-faint);
  margin: 0 0 10px;
}

.footer-inner a {
  color: var(--lc-text-dim);
}

/* Hub page */

.hub-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 20px 24px;
  text-align: center;
}

.hub-hero .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.hub-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--lc-text);
  margin: 0 0 16px;
  font-weight: 700;
}

.hub-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--lc-text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hub-grid {
  max-width: 900px;
  margin: 32px auto 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 680px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  display: block;
  background: var(--lc-bg-raised);
  border: 1px solid var(--lc-border);
  border-radius: 10px;
  padding: 20px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hub-card:hover {
  border-color: #3a2a5c;
  transform: translateY(-2px);
  text-decoration: none;
}

.hub-card .hub-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lc-accent);
  display: block;
  margin-bottom: 10px;
}

.hub-card h2 {
  font-size: 17px;
  color: var(--lc-text);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.hub-card p {
  font-size: 13px;
  color: var(--lc-text-dim);
  margin: 0;
  line-height: 1.55;
}
