:root {
  color-scheme: light;
  --paper: #fbfbf7;
  --ink: #161b18;
  --muted: #5d665f;
  --line: #dddfd8;
  --soft: #f1f3ed;
  --accent: #23684a;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
}

.nav {
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--ink);
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 52px 24px 96px;
}

.intro {
  max-width: 760px;
  margin-bottom: 58px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(2.8rem, 9vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: lowercase;
}

p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

strong {
  color: var(--ink);
}

.section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

pre code {
  display: block;
  min-width: min-content;
  padding: 18px;
  color: #203026;
  font-size: clamp(0.82rem, 1.8vw, 0.96rem);
  line-height: 1.72;
  white-space: pre;
}

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

  .nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .page {
    padding-top: 38px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
