/* Static pages (about, privacy, terms) and the no-JS fallback in index.html. */
:root {
  color-scheme: light dark;
  --bg: #f6f4ee;
  --fg: #1d1c1a;
  --card: #fbfaf6;
  --muted: #5c574e;
  --border: #d6d0c2;
  --accent: #2b5a7a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161718;
    --fg: #ecebe6;
    --card: #1f2022;
    --muted: #a8a49b;
    --border: #3a3b3d;
    --accent: #8cb8d6;
  }
}
* {
  box-sizing: border-box;
}
body.site {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.55 ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}
.site main,
.site header,
.site footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.site header {
  padding-top: 1rem;
}
.site header a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
.site main {
  padding-bottom: 2rem;
}
.site h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.75rem;
}
.site h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.5rem;
}
.site p,
.site li {
  max-width: 36rem;
}
.site a {
  color: var(--accent);
}
.site .lead {
  font-size: 1.1rem;
  color: var(--muted);
}
.site .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.site .button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}
.site .button.outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.site .example {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1rem 0;
}
@media (min-width: 36rem) {
  .site .example {
    grid-template-columns: 14rem 1fr;
    align-items: start;
  }
}
.site .example img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}
.site table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
.site th,
.site td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.site td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.site caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 0.4rem;
}
.site footer {
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site footer a {
  color: var(--muted);
}
.site footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
/* index.html: the fallback inside #root is for clients without JavaScript. */
html.js .nojs-only {
  display: none;
}
