/* Body styles for the site's own pages. Header and footer live in chrome.css,
   which these pages load first; the --site-* tokens come from there. */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--site-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

main { flex: 1; padding: 72px 0 96px; }

h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede { margin: 0 0 16px; font-size: 19px; }
.muted { color: var(--site-muted); }

/* Project pages */

h2 {
  margin: 48px 0 12px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.3; }

ol, ul { padding-left: 1.4em; }
li { margin: 6px 0; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

code { padding: 1px 5px; border-radius: 5px; background: var(--site-line); overflow-wrap: anywhere; }

kbd {
  padding: 1px 6px;
  font-family: inherit;   /* the system font draws ⌘⇧⌥ better than monospace */
  font-size: 0.92em;
  border: 1px solid var(--site-line);
  border-bottom-width: 2px;
  border-radius: 5px;
  white-space: nowrap;
}

pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  line-height: 1.5;
}
pre code { padding: 0; background: none; font-size: 1em; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--site-accent);
  color: var(--site-bg);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

.fine { font-size: 15px; color: var(--site-muted); }

.note {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--site-accent);
  background: color-mix(in srgb, var(--site-line) 45%, transparent);
  border-radius: 0 8px 8px 0;
}

details { margin: 12px 0; }
summary { cursor: pointer; color: var(--site-accent); }

video { display: block; width: 100%; height: auto; border: 1px solid var(--site-line); border-radius: 10px; }
