/* Default app palettes: FitTrackPro/Utilities/ThemePalette.swift. */
:root {
  color-scheme: light dark;
  --bg: #f2f4f8;
  --panel: #fcfdfe;
  --ink: #0f172a;
  --muted: #475569;
  --primary: #ea7600;
  --accent: #f1a933;
  --line: #d5dde8;
  /* Orange accents with dark link text keep the light theme readable. */
  --link: var(--ink);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-top: 4px solid var(--primary);
}
header, main, footer { max-width: 880px; margin: auto; padding: 28px; }
header { border-bottom: 1px solid var(--line); }
nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
a {
  color: var(--link);
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a:hover { text-decoration-color: var(--accent); }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
main { padding-top: 46px; padding-bottom: 48px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -.04em; margin: 10px 0 28px; }
h2 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 16px; }
p { margin: 0 0 18px; }
section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--primary);
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 32px 0; }
.cards a {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}
.cards a:hover { border-color: var(--primary); }
.cards p { color: var(--muted); font-size: .95rem; margin: 0; }
footer { border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); padding-bottom: 44px; }
footer p { margin-bottom: 8px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.6; }
.skip { position: absolute; left: 8px; top: -60px; padding: 8px; background: var(--panel); }
.skip:focus { top: 8px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060708;
    --panel: #16181c;
    --ink: #f4f6fa;
    --muted: #a7b0be;
    --primary: #ff8a1f;
    --accent: #ffc15a;
    --line: #2a2f38;
    --link: var(--primary);
  }
}

@media (max-width: 480px) {
  header, main, footer { padding-left: 20px; padding-right: 20px; }
  nav { gap: 10px 20px; }
  main { padding-top: 30px; }
}
