:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #20252d;
  --muted: #626b7a;
  --line: #dfe4eb;
  --accent: #275c4f;
  --accent-soft: #e9f3ef;
  --code: #f1f3f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px clamp(18px, 4vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-cta {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 0.375rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  opacity: 0.92;
}

.brand {
  color: var(--text);
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  font-size: 0.94rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 680;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 36px auto 54px;
}

.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
}

h1, h2, h3 {
  line-height: 1.22;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-top: 38px;
}

h3 {
  font-size: 1.15rem;
  margin-top: 28px;
}

p, ul, ol, table, blockquote, pre {
  margin: 0 0 18px;
}

ul, ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 7px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

code {
  background: var(--code);
  border-radius: 4px;
  padding: 0.1rem 0.32rem;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  background: var(--code);
  border-radius: 8px;
  padding: 16px;
}

pre code {
  padding: 0;
}

blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  overflow: hidden;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
}

th {
  background: #f8fafb;
  font-weight: 700;
}

.site-footer {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }
}
