/* BraapTrax blog — self-contained styles that mirror the main site's design
   tokens (the public pages each inline their own <style>; there is no shared
   sheet, so the blog ships its own). Keep the :root vars in sync with index.html. */
:root {
  --orange: #FF6B00;
  --orange-dark: #CC5500;
  --orange-glow: rgba(255, 107, 0, 0.15);
  --bg: #0A0A0A;
  --bg2: #111111;
  --bg3: #181818;
  --border: rgba(255,255,255,0.08);
  --text: #F0EDE8;
  --muted: #888;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); }

/* NAV (matches index.html) */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
  background: rgba(10,10,10,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 2px; color: var(--orange); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* BUTTONS */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 8px; transition: transform .15s, background .2s; }
.btn-primary { background: var(--orange); color: #111; padding: 0.85rem 1.6rem; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); padding: 0.85rem 1.6rem; }
.btn-ghost:hover { border-color: var(--orange); }

/* LAYOUT */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
main { padding-top: 60px; }

/* BLOG INDEX */
.blog-head { text-align: center; padding: 5rem 1.5rem 2.5rem; }
.blog-head .eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); }
.blog-head h1 { font-family: var(--font-display); font-size: clamp(3rem, 9vw, 5.5rem); line-height: 0.95; letter-spacing: 1px; margin: 0.5rem 0; }
.blog-head p { color: var(--muted); max-width: 40ch; margin: 0 auto; }
.post-list { display: grid; gap: 1rem; padding-bottom: 5rem; }
.post-card { display: block; text-decoration: none; color: inherit; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 1.75rem; transition: border-color .2s, transform .15s; }
.post-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.post-card .meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.post-card h2 { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.5px; line-height: 1; margin: 0.5rem 0; }
.post-card p { color: var(--muted); font-size: 0.95rem; }
.tags { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.6rem; }

/* ARTICLE */
article { padding: 3.5rem 0 4rem; }
.article-head { margin-bottom: 2.5rem; }
.article-head .meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.article-head h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 0.98; letter-spacing: 0.5px; margin: 0.6rem 0; }
.article-head .excerpt { color: var(--muted); font-size: 1.1rem; }
.article-hero { width: 100%; border-radius: 14px; margin-bottom: 2.5rem; border: 1px solid var(--border); }
.prose { font-size: 1.08rem; }
.prose h2 { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.5px; margin: 2.5rem 0 0.8rem; }
.prose h3 { font-size: 1.3rem; margin: 1.8rem 0 0.5rem; }
.prose p { margin: 0 0 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--orange); }
.prose blockquote { border-left: 3px solid var(--orange); padding-left: 1rem; margin: 0 0 1.2rem; color: var(--muted); font-style: italic; }
.prose code { font-family: var(--font-mono); background: var(--bg3); padding: 0.15rem 0.4rem; border-radius: 5px; font-size: 0.9em; }
.prose img { max-width: 100%; border-radius: 12px; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* CTA + back link */
.post-cta { margin: 3.5rem 0 0; background: linear-gradient(180deg, var(--bg2), var(--bg)); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; text-align: center; }
.post-cta h3 { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0.5px; }
.post-cta p { color: var(--muted); margin: 0.4rem auto 1.4rem; max-width: 40ch; }
.back-link { display: inline-block; margin: 2rem 0 0; color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.back-link:hover { color: var(--text); }

/* FOOTER (matches index.html) */
footer { border-top: 1px solid var(--border); padding: 3rem 2rem; text-align: center; margin-top: 4rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 2px; color: var(--orange); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin: 1.2rem 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.8rem; }
