/* Cost Per Workout: the plain pages (Privacy, Support). Static, no build step; Astro serves public/ as is. */

:root {
  --bg: #fbf7f3;
  --surface: #ffffff;
  --text: #24130a;
  --muted: #6b5a4e;
  --rule: rgba(36, 19, 10, 0.1);
  --accent: #c2410c;        /* orange dark enough for body-size links on light */
  --accent-top: #ffb820;
  --accent-bottom: #ff4a08;
  --gold: #ff8c14;
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0705;
    --surface: #1c110b;
    --text: #f5ede6;
    --muted: #b8a79a;
    --rule: rgba(255, 255, 255, 0.1);
    --accent: #ffb04a;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

header.site {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--rule);
}
header.site a.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; }
header.site .tile {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(165deg, var(--accent-top), var(--accent-bottom));
  display: grid; place-items: center;
}
header.site nav { display: flex; gap: 16px; font-size: 15px; }
header.site nav a { text-decoration: none; }
header.site nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }

h1 { font-size: clamp(34px, 8vw, 52px); line-height: 1.04; letter-spacing: -0.03em; margin: 8px 0 12px; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, li { color: var(--text); }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.updated { font-size: 14px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.card ul { margin: 0; padding-left: 1.2em; }
.card li + li { margin-top: 6px; }

details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 0; color: var(--muted); }

.contact {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: linear-gradient(165deg, var(--accent-top), var(--accent-bottom)); color: #24130a;
}

footer.site { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }

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

/* The download line at the foot of Privacy and Support. Apple's badge, unmodified. */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; }
.get img { display: block; height: 48px; width: auto; }
