/* chalkfitness.co.uk: same palette and type as the app (src/theme). */
@font-face { font-family: "Saira Stencil One"; src: url("/fonts/SairaStencilOne-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --bg: #17191B; --surface: #1F2225; --ink: #E9E6DF; --muted: #9A9EA3; --faint: #6F757B;
  --line: #2E3236; --line-strong: #3A3F44; --accent: #7FA6F7; --red: #D7262E;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ECEDEA; --surface: #F8F8F6; --ink: #17191B; --muted: #585D62; --faint: #767C81;
    --line: #D0D2CE; --line-strong: #B8BBB7; --accent: #2456C9;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.brand .dot::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bg); }
.brand .word { font-family: "Saira Stencil One", sans-serif; font-size: 24px; letter-spacing: 0.04em; line-height: 1; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; margin-left: 18px; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

main { padding: 36px 0 56px; }
h1 { font-family: "Saira Stencil One", sans-serif; font-weight: 400; font-size: clamp(34px, 8vw, 52px); line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; margin: 0 0 12px; }
h2 { font-weight: 600; font-size: 22px; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-weight: 600; font-size: 18px; margin: 26px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
strong { font-weight: 600; }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 18px 20px; margin: 18px 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.features { list-style: none; padding: 0; display: grid; gap: 10px; }
.features li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.features li strong { display: block; }
.pill { display: inline-block; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 14px; color: var(--muted); }
.toc { columns: 2; column-gap: 28px; padding-left: 20px; }
@media (max-width: 560px) { .toc { columns: 1; } nav a { margin-left: 12px; } }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { table, tbody, tr, td { display: block; } thead { display: none; } td { border: 0; padding: 2px 0; } tr { border-bottom: 1px solid var(--line); padding: 8px 0; } td:first-child { font-weight: 600; } }

footer { border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--faint); font-size: 14px; }
footer a { color: var(--muted); }
.gap { margin-top: 28px; }
@media (max-width: 560px) { td:last-child { color: var(--muted); } }
