:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e6e3de;
  --accent: #b4236b;
  --accent-soft: #fbe9f2;
  --code-bg: #f3f1ee;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --surface: #1c1c1f;
    --text: #f2f2f4;
    --muted: #a1a1a8;
    --line: #2e2e33;
    --accent: #f06aa8;
    --accent-soft: #3a1a2a;
    --code-bg: #26262b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 650; font-size: 18px;
}
.brand img { width: 32px; height: 32px; }
nav.site { display: flex; gap: 20px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 48px 0 64px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 8px; }
.lede { font-size: 20px; color: var(--muted); max-width: 40em; }
.meta { color: var(--muted); font-size: 15px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 112px; height: 112px; margin-bottom: 16px; }
.hero .lede { margin: 0 auto 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 32px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.button {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 10px; font-weight: 600;
}
.callout {
  background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin: 20px 0;
}

.table-scroll { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--code-bg); font-weight: 600; }
code, kbd {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--code-bg); padding: 1px 5px; border-radius: 4px;
}

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  main { padding-top: 32px; }
}
