/* Waypoint's site, in the app's own look: the default theme's grouped grey and
   white, and the Move-ring pink as the one accent. */

:root {
  color-scheme: light;
  --canvas: #f2f2f7;
  --panel: #ffffff;
  --text: #000000;
  --secondary: #3c3c43;
  --tertiary: #6e6e76;
  --rule: #e3e3e8;
  --pink: #ff2d55;
  /* The pink darkened for text, so links clear 4.5:1 on white and grey. */
  --link: #d1123e;
  --training: #007aff;
  --weight: #af52de;
  --protein: #2bba4f;
  /* The accents darkened for small text on white and grey. */
  --training-ink: #0064d2;
  --weight-ink: #8f3cc0;
  --protein-ink: #1a7f37;
  --radius: 26px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 56px;
}

[id] { scroll-margin-top: 84px; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header, the same on every page */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.top nav { display: flex; gap: 2px; margin-left: auto; }

.top nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
}

.top nav a:hover,
.top nav a[aria-current="page"] { color: var(--text); background: var(--panel); }

/* Buttons, as the app's: ink on canvas, flipped in dark */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--canvas);
  font-weight: 650;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  padding: 17px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); opacity: 0.88; }
.btn:active { transform: scale(0.98); }

.btn-small { font-size: 15px; padding: 11px 18px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

@media (max-width: 960px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
}

@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 17px; }
}

/* Type */

h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

h3 { font-size: 17px; margin: 20px 0 4px; }

p, ul { margin: 0 0 14px; }

ul { padding-left: 22px; }

li { margin-bottom: 6px; }

.lede { font-size: 19px; color: var(--secondary); margin-bottom: 28px; }

.meta { color: var(--tertiary); font-size: 15px; margin-bottom: 24px; }

/* Cards, as the app's panels */

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
  margin-bottom: 14px;
}

.card > :last-child { margin-bottom: 14px; }

.card h3:first-child { margin-top: 0; }

.card.highlight { border: 2px solid var(--pink); }

/* Policy sections */

.section { margin-top: 28px; }

.section > h2 { padding: 0 6px; }

/* Footer */

footer {
  margin-top: 40px;
  padding: 0 6px;
  color: var(--tertiary);
  font-size: 14px;
}

footer p { margin: 0 0 8px; }

footer a { color: var(--tertiary); }

@media (max-width: 480px) {
  h1 { font-size: 34px; }
  .card { padding: 18px 18px 6px; }
}
