:root {
  --bg: #fdfbf9;
  --surface: #ffffff;
  --text: #1a1416;
  --muted: #6b5f63;
  --line: #e8ded9;
  --accent: #7a1f2b;
  --accent-soft: #f6ebe9;
  --gold: #b8873b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14100f;
    --surface: #1d1817;
    --text: #f2ebe8;
    --muted: #a99f9b;
    --line: #322a28;
    --accent: #d4848f;
    --accent-soft: #2a1d20;
    --gold: #d8ad64;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 48px;
}
header.site .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 17px; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
}
.brand .dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(145deg, var(--accent), #4a0f18);
  display: grid; place-items: center; flex: none;
}
.brand .dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
nav.site { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.site a:hover, nav.site a[aria-current] { color: var(--accent); }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 20px; letter-spacing: -0.01em; margin: 40px 0 10px; }
h3 { font-size: 16px; margin: 26px 0 6px; }
p, li { color: var(--text); }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 32px; }
.meta { font-size: 14px; color: var(--muted); margin: 0 0 36px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 22px; margin: 24px 0;
}
.card.quiet { background: var(--accent-soft); border-color: transparent; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: 15px;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
code {
  background: var(--accent-soft); padding: 2px 6px; border-radius: 5px;
  font: 13.5px ui-monospace, SFMono-Regular, Menlo, monospace;
}
pre {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto;
}
pre code { background: none; padding: 0; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
footer.site {
  margin-top: 72px; padding: 28px 0 48px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
footer.site a { color: var(--muted); }
