<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{% if page.title %}{{ page.title }} | {% endif %}Go Micro Blog</title>
  <meta name="description" content="{{ page.description | default: 'Go Micro Blog - News, updates, and tutorials for the Go Micro framework' }}">
  <style>
    :root {
      --bg: #ffffff;
      --border: #e5e5e5;
      --accent: #0366d6;
    }
    * { box-sizing: border-box; }
    body { font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; margin:0; background: var(--bg); color:#1a1a1a; line-height: 1.7; }
    a { color: var(--accent); text-decoration:none; }
    a:hover { text-decoration:underline; }

    /* Nav — matches landing page */
    .site-nav { display:flex; align-items:center; justify-content:space-between; max-width: 1100px; margin:0 auto; padding:.75rem 1.5rem; border-bottom: 1px solid var(--border); position:sticky; top:0; z-index:20; background:#fff; }
    .nav-brand { display:flex; align-items:center; gap:.5rem; font-weight:700; font-size:1.1rem; color:#1a1a1a; text-decoration:none; }
    .nav-brand img { height:32px; }
    .nav-brand:hover { text-decoration: none; }
    .nav-links { display:flex; align-items:center; gap:1.25rem; font-size:.9rem; }
    .nav-links a { color:#555; font-weight:500; }
    .nav-links a:hover { color: var(--accent); text-decoration:none; }

    /* Blog container */
    .container { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
    .blog-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
    .blog-header h1 { margin: 0 0 0.5rem; font-size: 2rem; color: #0d1117; }
    .blog-header .meta { color: #888; font-size: 0.9rem; }

    /* Article */
    article h1 { font-size: 2.25rem; margin: 0 0 0.5rem; line-height: 1.3; color: #0d1117; }
    article .meta { color: #888; font-size: 0.9rem; margin-bottom: 2rem; }
    article h2 { font-size: 1.5rem; margin-top: 2.5rem; color: #0d1117; }
    article h3 { font-size: 1.25rem; margin-top: 2rem; }
    article p { margin: 1rem 0; }
    article ul, article ol { margin: 1rem 0; padding-left: 1.5rem; }
    article li { margin: 0.5rem 0; }
    article img { border-radius: 8px; max-width: 100%; }

    /* Code */
    pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
    pre { background:#f6f8fa; border:1px solid #d0d7de; padding:1rem; border-radius:6px; overflow-x:auto; font-size: 0.88rem; }
    code { background: #f6f8fa; padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.9em; }
    pre code { background: none; padding: 0; }
    blockquote { margin: 1.5rem 0; padding: 0.5rem 1rem; border-left: 4px solid var(--accent); background: #f6f8fa; border-radius: 0 6px 6px 0; }
    blockquote p { margin: 0; }
    table { border-collapse:collapse; width:100%; }
    th, td { border:1px solid #d0d7de; padding:.5rem .6rem; text-align:left; }
    th { background:#f6f8fa; font-weight: 600; }

    .post-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 0.9rem; }

    /* Footer — matches landing page */
    .site-footer { max-width: 760px; margin: 0 auto; padding: 2rem 1.5rem; border-top: 1px solid var(--border); font-size: .85rem; color: #666; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
    .site-footer a { color: var(--accent); }

    @media (max-width: 600px) {
      .container { padding: 1.5rem 1rem; }
      article h1 { font-size: 1.75rem; }
      .site-nav { padding: 0.5rem 1rem; }
      .nav-links { gap: 0.75rem; font-size: 0.8rem; }
      .site-footer { flex-direction: column; text-align: center; }
    }
  </style>
</head>
<body>
  <nav class="site-nav">
    <a class="nav-brand" href="/">
      <img src="https://raw.githubusercontent.com/micro/go-micro/master/logo.png" alt="Go Micro" style="border-radius: 8px;">
      Go Micro
    </a>
    <div class="nav-links">
      <a href="/docs/">Docs</a>
      <a href="/blog/">Blog</a>
      <a href="https://github.com/micro/go-micro">GitHub</a>
    </div>
  </nav>
  <div class="container">
    {{ content }}
  </div>
  <footer class="site-footer">
    <div>&copy; {{ site.time | date: '%Y' }} Go Micro. Apache 2.0 Licensed.</div>
    <div>
      <a href="/docs/">Docs</a> &middot;
      <a href="/blog/">Blog</a> &middot;
      <a href="https://github.com/micro/go-micro">GitHub</a> &middot;
      <a href="https://github.com/micro/go-micro/issues/new?labels=question&template=question.md">Support</a>
    </div>
  </footer>
</body>
</html>
