/* Fitnesta public site. No animation, no web fonts, no third-party anything. */

:root {
  --bg: #ffffff;
  --text: #16181d;
  --muted: #4a4f59;
  --rule: #d9dce1;
  --surface: #f4f5f7;
  --link: #0b57d0;
  --focus: #0b57d0;
  --accent: #0f7b5f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --text: #e9ebef;
    --muted: #b3b8c2;
    --rule: #2e333b;
    --surface: #1a1d23;
    --link: #8ab4f8;
    --focus: #8ab4f8;
    --accent: #5fd3ae;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 2px solid var(--focus);
  z-index: 1;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.brand::before {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.4em;
  border-radius: 50%;
  background: var(--accent);
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

.nav li + li {
  margin-top: 0;
}

.nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li + li {
  margin-top: 0.4rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc {
  background: var(--surface);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem 0.5rem;
  margin: 1.5rem 0;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
}

.links {
  font-size: 1.1rem;
}

.contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

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