body {
  min-width: 0;
  padding: 0;
  overflow-wrap: anywhere;
}

body > .site-header {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  line-height: 1.5;
}

.site-header .header-inner {
  width: min(960px, calc(100% - 2.5rem));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .brand {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-header .site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header .site-nav a:hover {
  background: #f1f5f9;
  color: #6d28d9;
}

body > .container {
  width: min(820px, calc(100% - 2.5rem));
  max-width: none;
  margin: 2rem auto;
}

body > .container img,
body > .container video,
body > .container iframe {
  max-width: 100%;
}

body > .container pre,
body > .container table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 600px) {
  body > .site-header .header-inner,
  body > .container {
    width: calc(100% - 2rem);
  }

  body > .container {
    margin: 1.4rem auto;
  }

  body > .container h1 {
    font-size: clamp(1.4rem, 7vw, 1.7rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  body > .container h2 { font-size: 1.15rem; }
  body > .container p,
  body > .container li { font-size: 0.95rem; }
}

@media (max-width: 360px) {
  body > .site-header .header-inner,
  body > .container {
    width: calc(100% - 1.5rem);
  }

  .site-header .brand { font-size: 0.98rem; }
  .site-header .site-nav a { padding-inline: 0.6rem; }
}