:root {
  color-scheme: dark;
  --bg: #202123;
  --surface: #2d2e32;
  --fg: #ececec;
  --muted: #a6a7a8;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #7dd3fc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.7 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
a { color: var(--accent); }
.wrap {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.back:hover {
  color: var(--fg);
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(125, 211, 252, 0.08);
}
.back svg {
  display: block;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.brand:hover { color: var(--fg); }
.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.chat-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.chat-cta p {
  margin: 0;
  color: var(--fg);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.chat-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.chat-button:hover {
  background: var(--accent);
  color: #08111f;
}
article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 52px);
}
header { margin-bottom: 32px; }
h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.description {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}
.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.content h2,
.content h3,
.content h4 {
  line-height: 1.25;
  margin: 2em 0 0.7em;
}
.content h2 { font-size: 1.7rem; }
.content h3 { font-size: 1.35rem; }
.content p,
.content ul,
.content ol,
.content blockquote,
.content table,
.content pre {
  margin: 1.1em 0;
}
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.content blockquote {
  border-left: 4px solid var(--accent);
  color: var(--muted);
  padding-left: 18px;
}
.content code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 0.12em 0.35em;
}
.content pre {
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.26);
  border-radius: 12px;
  padding: 16px;
}
.content pre code {
  background: transparent;
  padding: 0;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}
.content th,
.content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.read-next {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.read-next h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.25;
}
.read-next-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.read-next-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}
.read-next-card:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(125, 211, 252, 0.08);
}
.read-next-title {
  display: block;
  font-weight: 800;
  line-height: 1.35;
}
.read-next-date {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-bottom: 16px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--fg); }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 20px, 880px); padding-top: 18px; }
  .chat-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .chat-button { width: 100%; }
  article { border-radius: 14px; }
}
