/* RTrack public site. One stylesheet, system fonts, no external requests. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --fg: #1c1b1a;
  --muted: #5d5a55;
  --line: #dedad3;
  --card: #ffffff;
  --accent: #b5400c;
  --accent-fg: #ffffff;
  --code: #f0ede8;
  --focus: #1a5fb4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --fg: #ece9e4;
    --muted: #aaa49b;
    --line: #34312d;
    --card: #1d1c1a;
    --accent: #ff8a50;
    --accent-fg: #141312;
    --code: #2a2825;
    --focus: #8ab4f8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
code {
  font: 0.9em/1.4 ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  background: var(--code);
  padding: 0.1em 0.3em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem 0.75rem; z-index: 1; }

header.site, main, footer.site { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
header.site {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.25rem;
  padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; letter-spacing: 0.01em; }
header.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
header.site nav a { color: var(--fg); text-decoration: none; padding: 0.25rem 0; }
header.site nav a[aria-current="page"], header.site nav a:hover { color: var(--accent); text-decoration: underline; }

main { padding-top: 1.5rem; padding-bottom: 2.5rem; }
footer.site { padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }

h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); line-height: 1.2; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin: 0.3rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.lede { font-size: 1.2rem; color: var(--muted); }
.badge {
  display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--accent); color: var(--accent-fg); padding: 0.2rem 0.6rem; border-radius: 999px;
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.card > :last-child { margin-bottom: 0; }
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; }
.features li { margin: 0; }
.features h3 { margin-top: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
th { border-bottom-width: 2px; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  table { min-width: 36rem; }
}
