:root {
  color-scheme: dark;
  --background: #101418;
  --surface: #151b21;
  --text: #e7edf3;
  --muted: #aeb8c2;
  --link: #78b7ff;
  --border: #27313b;
  --accent: #ffd166;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

.page-shell {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  margin-bottom: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.content {
  max-width: 760px;
}

h1,
h2 {
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  margin-bottom: 12px;
}

h2 {
  color: var(--accent);
  font-size: 1.35rem;
  margin-top: 56px;
  margin-bottom: 18px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 40px;
}

ul {
  margin: 0;
  padding-left: 1.4rem;
}

li {
  margin-top: 20px;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #a8d1ff;
}

code {
  overflow-wrap: anywhere;
  color: #f6e7b4;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.95em;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 56px;
  padding-top: 24px;
}

.site-footer p {
  margin: 8px 0 0;
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 24px, 860px);
    padding-top: 18px;
  }

  .site-header {
    margin-bottom: 40px;
  }

  h1 {
    font-size: 2.35rem;
  }
}
