:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --text: #24221d;
  --muted: #6b665b;
  --line: #e8e2d4;
  --honey: #f2b300;
  --honey-ink: #8a6300;
  --link: #8a6300;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1d20;
    --surface: #25272b;
    --text: #ece9e2;
    --muted: #a7a297;
    --line: #34363b;
    --honey: #f5bf1f;
    --honey-ink: #f5bf1f;
    --link: #f5c84a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; }

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

header.site {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px;
}

.brand img { width: 30px; height: 30px; flex: none; }

nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:hover { color: var(--text); }

main { padding: 40px 0 64px; }

.hero { padding: 48px 0 24px; text-align: center; }
.hero img { width: 88px; height: 88px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 20px 0 8px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 19px; margin: 0 auto; max-width: 30em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; text-decoration: none; color: var(--text);
}
.card strong { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
a.card:hover { border-color: var(--honey); }

.doc h1 { font-size: 32px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 40px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 24px 0 4px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .summary {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--honey);
  border-radius: 10px; padding: 16px 20px; margin: 0 0 8px;
}
.doc .summary ul { margin: 8px 0 0; }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  nav a { margin-left: 12px; }
}
