/* Runfidence – runfidence.app. System fonts, no external resources, light and dark. */
:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --text: #1d1b19;
  --muted: #5f5a54;
  --accent: #c2410c;
  --line: #e7e1d9;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1e1b18;
    --text: #f3efe9;
    --muted: #b1a99f;
    --accent: #fb923c;
    --line: #2f2a25;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.page { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
header.site a.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
header.site img { width: 40px; height: 40px; border-radius: 9px; }
nav.lang a { color: var(--muted); font-size: 0.95rem; }
h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.15; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
p, li { color: var(--text); }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.hero { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.hero img { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.25rem; margin: 1rem 0; }
a { color: var(--accent); }
code { font-size: 0.92em; overflow-wrap: anywhere; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); }
.note { color: var(--muted); font-size: 0.95rem; }
footer.site { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer.site a { color: var(--muted); }
@media (max-width: 30rem) {
  .hero { flex-direction: column; align-items: flex-start; }
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
