/* Rally Radar blog — shared styles. Keeps the app's dark brand but switches the
   article body to a readable sans-serif at a comfortable measure. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0d1117;
  --surface: #161b22;
  --border:  #30363d;
  --text:    #c9d1d9;
  --heading: #e6edf3;
  --muted:   #8b949e;
  --green:   #3fb950;
  --blue:    #58a6ff;
  --cyan:    #39d0d8;
  --mono:    'Courier New', Courier, monospace;
  --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}

/* ── Site header ─────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 10;
  font-family: var(--mono);
}
.site-header a.brand { font-size: 15px; letter-spacing: 1px; color: var(--blue);
  text-decoration: none; font-weight: bold;
  display: inline-flex; align-items: center; gap: 8px; }
.site-header a.brand:hover { text-decoration: none; }
.brand-mark { height: 1.35em; width: auto; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-size: 13px; margin-left: 16px;
}
.site-header nav a:hover { color: var(--text); }

/* ── Layout ──────────────────────────────────────────────────── */
.wrap { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Article typography ──────────────────────────────────────── */
.post-meta { color: var(--muted); font-size: 13px; font-family: var(--mono);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }

article h1 {
  font-size: 34px; line-height: 1.25; color: var(--heading);
  margin: 6px 0 18px; letter-spacing: -0.4px;
}
article h2 {
  font-size: 23px; color: var(--heading); margin: 40px 0 14px;
  padding-top: 8px; letter-spacing: -0.2px;
}
article h3 { font-size: 19px; color: var(--heading); margin: 28px 0 10px; }
article p  { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 18px; padding-left: 24px; }
article li { margin: 6px 0; }
article strong { color: var(--heading); }
article hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
article blockquote {
  margin: 0 0 18px; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--cyan); color: var(--heading);
  font-size: 17px;
}

.lead { font-size: 19px; color: var(--text); }

/* ── Call-to-action box ──────────────────────────────────────── */
.cta {
  border: 1px solid var(--blue); border-radius: 8px; padding: 20px 24px;
  background: rgba(88,166,255,0.06); margin: 36px 0;
}
.cta h3 { margin: 0 0 8px; color: var(--blue); }
.cta p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.cta a.button {
  display: inline-block; font-family: var(--mono); font-size: 14px;
  color: var(--bg); background: var(--blue); padding: 8px 18px;
  border-radius: 6px; font-weight: bold;
}
.cta a.button:hover { text-decoration: none; opacity: 0.9; }

/* ── Blog index list ─────────────────────────────────────────── */
.index-title { font-size: 30px; color: var(--heading); margin-bottom: 6px; }
.index-sub { color: var(--muted); margin-bottom: 36px; }
.post-list { list-style: none; padding: 0; }
.post-list li { border-top: 1px solid var(--border); padding: 22px 0; }
.post-list li:last-child { border-bottom: 1px solid var(--border); }
.post-list a.post-link { display: block; }
.post-list h2 { font-size: 21px; color: var(--heading); margin: 0 0 6px; }
.post-list a.post-link:hover h2 { color: var(--blue); }
.post-list .excerpt { color: var(--muted); font-size: 15px; line-height: 1.6; }
.post-list .date { color: var(--muted); font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); padding: 24px 20px; text-align: center;
  color: var(--muted); font-size: 12px; font-family: var(--mono);
}
.disclaimer { max-width: 720px; margin: 30px auto 0; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
  color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  article h1 { font-size: 27px; }
  article h2 { font-size: 20px; }
  .wrap { padding: 28px 16px 60px; }
}
