/* Rawlog blog — shared styles, brand-matched to the landing page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: #222;
  --text: #f0f0f0;
  --muted: #888;
  --faint: #444;
  --primary: #c8f97a;
  --primary-dark: #0a0a0a;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Nav (matches landing) */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary); color: var(--primary-dark);
  padding: 9px 18px; border-radius: 8px; font-weight: 700;
  font-size: 14px; text-decoration: none;
}
.nav-cta:hover { opacity: 0.85; }
@media (max-width: 640px) { .nav-links { display: none; } nav { padding: 16px 20px; } }

/* Layout */
.wrap { max-width: 720px; margin: 0 auto; padding: 140px 24px 100px; position: relative; z-index: 1; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 28px; }
.back:hover { color: var(--text); }

/* Blog index */
.blog-head { margin-bottom: 56px; }
.blog-head h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -2px; line-height: 1.05; }
.blog-head p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 540px; }
.post-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.post-card {
  display: block; text-decoration: none; color: inherit;
  padding: 24px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); transition: border-color .15s;
}
.post-card:hover { border-color: var(--primary); }
.post-card .date { color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.post-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin: 8px 0; }
.post-card p { color: var(--muted); font-size: 15px; }

/* Article */
article .date { color: var(--faint); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
article h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin: 12px 0 24px; }
article h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin: 44px 0 14px; }
article h3 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
article p { font-size: 17px; color: #d8d8d8; margin-bottom: 18px; }
article ul, article ol { margin: 0 0 18px 22px; color: #d8d8d8; font-size: 17px; }
article li { margin-bottom: 8px; }
article strong { color: var(--text); }
article em { color: var(--primary); font-style: normal; }
article a { color: var(--primary); }
.lead { font-size: 20px; color: var(--muted); margin-bottom: 32px; }
.callout {
  border: 1px solid var(--primary); border-radius: 12px;
  background: rgba(200,249,122,0.06); padding: 24px; margin: 36px 0;
}
.callout p { margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }
.cta-row { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.btn-primary {
  display: inline-block; background: var(--primary); color: var(--primary-dark);
  padding: 14px 28px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.btn-primary:hover { opacity: 0.9; }
footer { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; color: var(--faint); font-size: 14px; position: relative; z-index: 1; }
footer a { color: var(--muted); }
