* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --deep-space: #0a0e27;
  --action-blue: #4A9EFF;
  --split-red: #FF5757;
  --energy-yellow: #FFD93D;
  --soft-text: #9aa5cc;
  --paper: #ffffff;
  --ink: #1a1d3a;
  --rule: #e3e6f0;
  --aside: #f4f6fb;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

body {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
  font-size: 14px;
}

header.site a {
  color: var(--ink);
  text-decoration: none;
}

header.site a:hover {
  color: var(--action-blue);
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

header.site .brand img {
  width: 28px;
  height: 28px;
}

header.site nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--soft-text);
}

header.site nav a {
  color: var(--soft-text);
}

header.site nav a.active {
  color: var(--ink);
  font-weight: 500;
}

article h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.2;
}

article .lead {
  color: var(--soft-text);
  font-size: 14px;
  margin-bottom: 32px;
}

article h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

article h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

article h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
}

article p {
  margin-bottom: 12px;
  font-size: 15px;
}

article ul, article ol {
  margin: 0 0 16px 24px;
  font-size: 15px;
}

article li {
  margin-bottom: 6px;
}

article strong {
  font-weight: 600;
}

article code {
  background: var(--aside);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

article a {
  color: var(--action-blue);
  text-decoration: none;
}

article a:hover {
  text-decoration: underline;
}

aside.notice {
  background: var(--aside);
  border-left: 3px solid var(--action-blue);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 4px;
  font-size: 14px;
  color: var(--soft-text);
}

aside.notice strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

aside.warn {
  background: #fff5e6;
  border-left-color: #d97706;
}

aside.warn strong {
  color: #92400e;
}

table.legal {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

table.legal th, table.legal td {
  padding: 8px 12px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

table.legal th {
  background: var(--aside);
  font-weight: 600;
}

footer.site {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--soft-text);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a {
  color: var(--soft-text);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--action-blue);
}

.meta-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--soft-text);
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  body { padding: 20px 16px 48px; }
  header.site { flex-direction: column; align-items: flex-start; gap: 12px; }
  article h1 { font-size: 24px; }
}
