:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9;
  --border: #e2e8f0;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

.site-header {
  padding: 24px 18px 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  margin-bottom: 6px;
  height: 40px;
  width: 40px;
}

.site-brand img {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 10px;
}

.article-meta {
  max-width: 900px;
}

.article-title {
  margin: 6px 0 4px;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  line-height: 1.2;
}

.article-subhead {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-description {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 900px;
}

.article-tags {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tags span {
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid #bae6fd;
}

.article-container {
  max-width: 900px;
  margin: 32px auto 80px;
  background: var(--panel);
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

@media (max-width: 720px) {
  .article-container {
    margin: 18px 12px 60px;
    padding: 22px 18px;
  }
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  margin: 1.4em 0 0.35em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin: 1em 0;
  color: var(--text);
}

ul, ol {
  padding-left: 1.2em;
  margin: 1em 0;
}

li + li {
  margin-top: 0.35em;
}

blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: #e0f2fe;
  color: #0b4065;
  border-radius: 0 10px 10px 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

code {
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95em;
}

pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 16px;
  border-radius: 12px;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

strong {
  font-weight: 700;
  color: #0f172a;
}

em {
  color: #0f172a;
}
