/* conventions site — page-local styles on top of the family tokens.
 * tokens.css is a verbatim copy from family-web (template v1) and is never
 * edited here; this file is the docs-site layer (typography, tables, code),
 * reusing the family's base values (system-ui 15px, 820px column, muted/
 * accent roles) in a documentation context. If a second docs site appears
 * in the family, this layer is a candidate to move into family-web.
 */

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  padding: 2rem 1rem 4rem;
}
main { max-width: 820px; margin: 0 auto; }

h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; padding-top: .5rem; border-top: 1px solid var(--border); }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
h1 a, h2 a, h3 a { color: inherit; text-decoration: none; }

a { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--card); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: .8rem 1rem; overflow-x: auto; }
pre code { background: none; padding: 0; font-size: .85rem; }

table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1rem 0; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* The provisional notice and other callouts render as blockquotes. */
blockquote {
  margin: 1rem 0; padding: .6rem 1rem;
  border-left: 3px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 7%, transparent);
  border-radius: 0 8px 8px 0;
}
blockquote p { margin: .3rem 0; }

.site-header { margin-bottom: 1.5rem; }
.site-header .home { color: var(--muted); text-decoration: none; font-size: .85rem; }
.site-header .home strong { color: var(--fg); }

footer { margin-top: 3rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); padding-top: 1rem; }
/* family-web template v1: the family footer nav */
.family { margin-top: .5rem; }
.family a, .family span { margin-right: .6rem; white-space: nowrap; }
