:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e3e3df;
  --accent: #c2410c;
  --accent-soft: #fff1e8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --card: #1c1c1e;
    --text: #ececec;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --accent: #fb923c;
    --accent-soft: #2a1a10;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); overflow-wrap: anywhere; }
header, main, footer { max-width: 820px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--text); }
main { padding-top: 24px; padding-bottom: 40px; }
h1 { font-size: 34px; line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
.lead { font-size: 19px; color: var(--muted); margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 18px 0; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.lang { font-size: 14px; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 36px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 27px; }
  .lead { font-size: 17px; }
}
.yt-badge { margin: 8px 0 0; }
.yt-badge img { display: block; width: 210px; height: auto; margin-left: -18px; }
