/* pacebuddy.app — shared styling.
   Kept in one file so privacy, support and terms can't drift apart.

   Type: the Apple system stack (SF Pro on Apple devices, Segoe on Windows,
   Roboto on Android). For an app that lives in Apple's ecosystem this reads as
   more considered than a webfont — it's the same face as the App Store listing
   the visitor just came from, it renders at native hinting quality, and it
   costs no network request. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5c6470;
  --faint: #8a919c;
  --accent: #0a6fb8;
  --card: #f7f8fa;
  --line: #e4e7ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d13;
    --fg: #e8eaef;
    --muted: #9aa3b2;
    --faint: #6f7887;
    --accent: #58aeff;
    --card: #111722;
    --line: #1e2634;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  /* A 34rem measure keeps lines near the 65–75 character range that reads
     fastest; wider columns are the single most common reason a text page
     feels amateurish. */
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  color: var(--fg);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ragged-right, but with smarter breaking. Justified text is left off
   deliberately — see the note in the repo README. */
p, li {
  text-wrap: pretty;
  hyphens: none;
}

nav {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
nav a:hover { color: var(--accent); }
nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
nav .brand {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--fg);
  margin-right: auto;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.125rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.35;
  margin: 2.5rem 0 0.5rem;
}

/* Small caps-ish section label above a group of questions. */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 3rem 0 0.25rem;
}

.meta { color: var(--faint); font-size: 0.9375rem; margin-top: 0; }

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-underline-offset: 2px; }

ul { padding-left: 1.1rem; margin: 0 0 1rem; }
li { margin-bottom: 0.45rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}
.card p:last-child { margin-bottom: 0; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.9375rem;
}

table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }

@media (max-width: 34rem) {
  body { padding: 2rem 1.25rem 3.5rem; font-size: 1rem; }
  h1 { font-size: 1.75rem; }
}
