/* Layout: one reading column, a quiet header bar, policy text set like a well-kept handbook. */
:root {
  --paper: #f6f7f8;
  --ink: #1d2327;
  --muted: #5b656d;
  --rule: #dde1e5;
  --accent: #8a5a36;      /* capybara brown */
  --chip: #eceff1;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15191c; --ink: #e6e9eb; --muted: #9aa4ab; --rule: #2b3238;
    --accent: #d39a6c; --chip: #20262a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15191c; --ink: #e6e9eb; --muted: #9aa4ab; --rule: #2b3238;
  --accent: #d39a6c; --chip: #20262a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--body);
}
.wrap { max-width: 44rem; margin: 0 auto; padding-inline: 1.25rem; }

header.site {
  border-bottom: 1px solid var(--rule);
}
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1.5rem; padding-block: 1rem;
}
.brand {
  font: 700 1.125rem/1.2 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font: 500 .9375rem/1.4 var(--display); }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .3em; }

main { padding-block: 2.5rem 3.5rem; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; }
p, ul, ol { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
a { color: var(--accent); text-underline-offset: .15em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.lede { font-size: 1.1875rem; color: var(--ink); }
.meta { font: .875rem/1.4 var(--display); color: var(--muted); margin-bottom: 2rem; }
code {
  font: .875em/1.4 var(--mono); background: var(--chip); padding: .1em .35em; border-radius: 3px;
  overflow-wrap: anywhere;
}


.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: .9688rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--rule); }
th { font: 600 .8125rem/1.3 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
td:first-child { width: 32%; }
td code { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.contact {
  border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.25rem;
  font: .9375rem/1.5 var(--display); color: var(--muted);
}
.contact strong { color: var(--ink); font-weight: 600; user-select: all; }

footer.site { border-top: 1px solid var(--rule); }
footer.site .wrap {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-block: 1.25rem;
  font: .875rem/1.4 var(--display); color: var(--muted);
}
footer.site a { color: var(--muted); }

/* The official "Developed with YouTube" badge: unaltered, linked to YouTube, never the most prominent
   element. The image carries wide transparent clear space (text spans about x 14-86%, y 38-60%), so negative
   margins line the lettering up with the text column instead of the image's edge. */
.badge { display: inline-flex; line-height: 0; border-radius: 3px; }
.badge img { height: auto; max-width: none; }
.uses { display: block; margin: .25rem 0 1.25rem; }
.uses .badge img { width: 210px; margin: -28px 0 -30px -30px; }
footer.site .wrap { justify-content: center; text-align: center; }
.badge-sm { flex-basis: 100%; justify-content: center; }
.badge-sm img { width: 168px; margin-block: -22px -20px; }
