@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --surface: #f1f1f6;
  --text: #1e1e2a;
  --muted: #5d5d6e;
  --line: #dcdce5;
  --accent: #006666;
  --mark-bg: #ffe9a8;
  --mark-text: #4d3800;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14141c;
    --surface: #1f1f2a;
    --text: #ececf3;
    --muted: #a8a8b8;
    --line: #34344a;
    --accent: #7fe0c5;
    --mark-bg: #5c4700;
    --mark-text: #ffe9a8;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14141c;
  --surface: #1f1f2a;
  --text: #ececf3;
  --muted: #a8a8b8;
  --line: #34344a;
  --accent: #7fe0c5;
  --mark-bg: #5c4700;
  --mark-text: #ffe9a8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}

.top, main, footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 16px;
}

.top { padding-block: 24px 8px; }

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}

main { padding-block: 16px 48px; }

h1 { margin: 16px 0 24px; font-size: clamp(28px, 6vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
h2 { margin: 36px 0 10px; font-size: 20px; line-height: 1.3; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
code { padding: 1px 5px; border-radius: 5px; background: var(--surface); font-size: .88em; }
mark { padding: 1px 4px; border-radius: 4px; background: var(--mark-bg); color: var(--mark-text); }

.lead { font-size: 18px; color: var(--muted); }
.notice { padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--surface); }
.docs { padding: 0; list-style: none; }
.docs a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.docs a:hover { text-decoration: underline; }

.table { overflow-x: auto; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 700; }
td code { white-space: nowrap; }

footer { padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer p { margin: 0; }

h1, h2 { font-family: "Newsreader", Georgia, serif; font-weight: 500; }
.made-in { margin-top: 12px; }
html { zoom: .9; }
