/* Ubuntu is self-hosted (public/css/fonts.css + public/fonts/ubuntu-*.woff2,
   generated by scripts/fetch-fonts.mjs) — no Google Fonts request chain. */

:root {
  --bg: #000;
  --card: #080808;
  --border: #1F2123;
  --text: #fff;
  --text-muted: #9ca3af;
  --accent: #6366f1;
  --accent-light: #a78bfa;
  --accent-glow: rgba(126, 34, 206, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-family: "Ubuntu", sans-serif; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Utility */
.gradient-text {
  background: linear-gradient(90deg, #e5e5e5, #888);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.accent-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px var(--accent-glow); }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }

/* Prose (markdown content) */
.prose { line-height: 1.8; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; color: #d1d5db; }
.prose p { margin-bottom: 1.25rem; color: #d1d5db; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: #d1d5db; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose code { background: #1a1a1a; padding: 0.2em 0.4em; border-radius: 0.25rem; font-size: 0.9em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { text-align: left; padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); }
.prose th { background: #0a0a0a; font-weight: 600; }
.prose td { color: var(--text-muted); }

/* GSAP animation initial state */
.reveal-up { opacity: 0; transform: translateY(30px); }
