/*
 * The Website's one stylesheet, in the app's look (docs/app/design-system.md): its Barlow fonts, self-hosted here
 * (fonts/, latin and latin-ext for Polish, SIL OFL in fonts/OFL.txt; the system font while they load), and its colour
 * tokens in light and dark (app/web/src/styles.css). No cards: sections sit on the page, divided by hairlines. The
 * accent only in icons and links; the logo's mark in the zone colours, its name in the text colour. Labels in sentence case; only the wordmark is italic and uppercase.
 * Loads nothing from outside.
 */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-ext-800-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-800-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #62646b;
  --line: #e7e7e3;
  --accent: #f2541b;
  --accent-ink: #c2410c;
  /* The zones the logo's mark rises through (Z2–Z5), as the app draws them. */
  --zone-2: #3d8fd1;
  --zone-3: #2fa36b;
  --zone-4: #f2701b;
  --zone-5: #d63a2f;
  --font-body: "Barlow Semi Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113;
    --surface: #1b1c1f;
    --text: #ececee;
    --muted: #a0a3ab;
    --line: #2c2e33;
    --accent-ink: #ff7d4d;
    --zone-2: #4ba6ea;
    --zone-3: #45c083;
    --zone-4: #ff8a45;
    --zone-5: #ff6459;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font-body);
}
a { color: var(--accent-ink); }
.site-header, main, .site-footer {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 16px;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
/*
 * The logo, as the app draws it: the mark (its bars Z2, Z3 and Z4, the dot Z5) and RACEWARD in Barlow Condensed
 * ExtraBold Italic, in the text colour.
 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.16em;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
/* The mark left of the name, about its cap height plus the dot, as in the app. */
.brand-mark { flex: none; width: auto; height: 0.92em; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.switch { font-weight: 600; }
main { padding-top: 24px; padding-bottom: 48px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 0 0 16px; }
.lead { font-size: 1.25rem; }
.soon { font-weight: 600; }
main h2 { font-size: 1.6rem; margin: 32px 0 8px; }
main h3 { font-size: 1.25rem; margin: 0 0 4px; }
main ol, main ul { padding-left: 1.4em; }
main li { margin: 0 0 6px; }
.note { color: var(--muted); font-size: 0.95rem; }

/* The home page: plain sections, a hairline and space between them. */
.home-section { padding: 32px 0; border-top: 1px solid var(--line); }
.home-section:first-child { padding-top: 0; border-top: 0; }
.home-section > h2 { margin-top: 0; }

/* How it works: the loop between the devices, intervals.icu and Raceward, coloured from the tokens. */
.loop { display: block; width: 100%; max-width: 420px; height: auto; margin: 16px auto 24px; }
.loop text { fill: var(--text); font-family: var(--font-body); font-size: 15px; }
.loop .flow { fill: var(--muted); font-size: 14px; }
.loop .box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.loop .name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.loop .wordmark { fill: var(--accent-ink); font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 22px; letter-spacing: 0.02em; }
.loop .icon { fill: none; stroke: var(--accent-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.loop .arrow { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.loop .head { fill: var(--muted); }
.steps li { margin-bottom: 10px; }

/* What you get: a plain grid of features, two columns on wide screens, one on phones. */
.features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 24px 32px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { margin: 0; }
.feature svg {
  width: 28px; height: 28px; margin-bottom: 6px;
  fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.feature p { margin: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p, .site-footer address { margin: 0 0 8px; font-style: normal; }
.footer-links { margin: 0 0 16px; }
.effective { color: var(--muted); }
.binding {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.site-footer .legal a { margin-right: 16px; }
.site-footer a[aria-current="page"] { color: var(--text); text-decoration: none; }
