:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #d8d8d2;
  --block-bg: #f0f0ea;
  --accent: #1a1a1a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  margin-bottom: 32px;
}

.kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

h1 {
  font-size: 30px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 36px 0 12px;
}

p { margin: 0 0 14px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--block-bg);
  padding: 1px 5px;
  border-radius: 3px;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
li { margin-bottom: 4px; }

.block {
  position: relative;
  background: var(--block-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre;
  overflow-x: auto;
  margin: 0 0 18px;
}

.block .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.block .copy:hover { color: var(--fg); border-color: var(--fg); }
.block .copy.copied { color: var(--fg); border-color: var(--fg); }

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.example-grid .label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
@media (max-width: 560px) {
  .example-grid { grid-template-columns: 1fr; }
}

footer {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
footer a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}
footer a:hover { color: var(--muted); border-color: var(--muted); }
footer .spacer { color: var(--muted); }
