body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 80px;
  color: #333;
  line-height: 1.7;
}

nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  margin-bottom: 48px;
  z-index: 100;
}
nav a { margin-right: 20px; color: #555; text-decoration: none; font-size: 0.9em; }
nav a:hover { color: #2980b9; }
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #2980b9;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75em;
  letter-spacing: 0.04em;
  margin-right: 24px;
  text-decoration: none !important;
  vertical-align: middle;
  flex-shrink: 0;
}
.logo:hover { background: #1f6391; text-decoration: none !important; }

a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  background: #f4f4f4;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.88em;
  line-height: 1.6;
}

ol, ul { padding-left: 20px; }
li { margin-bottom: 8px; }
.subtitle { color: #666; margin-top: 0; }

#nav-toggle { display: none; }
.nav-hamburger { display: none; }

@media (max-width: 640px) {
  nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .logo { order: 0; margin-right: auto; }
  .nav-hamburger {
    order: 1;
    display: inline-block;
    cursor: pointer;
    font-size: 1.3em;
    padding: 2px 8px;
  }
  nav button { order: 2; }
  nav a:not(.logo) {
    order: 3;
    display: none;
    width: 100%;
    padding: 8px 0;
    margin-right: 0;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
  }
  #nav-toggle:checked ~ a:not(.logo) { display: block; }
}
