/* bikit.cc. The same tokens as sync2garmin and ETA; the shared menu reads them too. */
:root {
  --ink: #0c1017;
  --ink-line: #2a3343;
  --ink-text: #eef1f6;
  --ink-muted: #9aa5b8;
  --volt: #c8f031;

  --bg: #f4f5f1;
  --surface: #ffffff;
  --surface-2: #eceee8;
  --text: #151a23;
  --muted: #5b6474;
  --line: #dfe2da;
  --shadow: 0 1px 2px rgba(20, 26, 35, .05), 0 8px 24px rgba(20, 26, 35, .05);
  --radius: 14px;
  color-scheme: light;
}

:root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #0f131a;
  --surface: #171c26;
  --surface-2: #1f2531;
  --text: #e9edf3;
  --muted: #9aa5b8;
  --line: #2a3140;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { width: min(960px, 100%); margin-inline: auto; padding-inline: 16px; }

.hero { background: var(--ink); color: var(--ink-text); padding-bottom: 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; font-size: 18px; color: var(--ink-text); text-decoration: none; }
.hero-in { padding-top: 48px; }
h1 { margin: 0 0 12px; font-size: clamp(34px, 7vw, 52px); line-height: 1.08; letter-spacing: -.03em; }
.hero p { margin: 0; max-width: 34em; font-size: 18px; color: var(--ink-muted); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; cursor: pointer;
  border: 1px solid var(--ink-line); border-radius: 8px; background: transparent; color: var(--ink-muted);
}
.theme-toggle:hover { color: var(--ink-text); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }

.apps { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 32px 0 56px; padding: 0; }
.app {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.app:hover { border-color: var(--volt); }
.app:focus-visible, .theme-toggle:focus-visible, .brand:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.app strong { font-size: 18px; letter-spacing: -.01em; }
.app span:last-child { color: var(--muted); font-size: 15px; }
.app-icon { width: 40px; height: 40px; margin-bottom: 8px; }
.app-icon svg { display: block; width: 100%; height: 100%; }
