/* EasyRoads static brand tokens.
   Owns ONLY the shared palette, type stack, panel radius and focus/selection
   used by the homepage and the static policy pages. Layout stays per page. */
:root {
  color-scheme: light dark;
  --background: #f2f2f7;
  --card: #ffffff;
  --ink: #1c1c1e;
  --muted: #555c66;
  --line: #d7dee7;
  --link: #0066cc;
  --radius: 16px;
  --font:
    system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c111b;
    --card: #1c2330;
    --ink: #f2f2f7;
    --muted: #adb6c3;
    --line: #343d4b;
    --link: #64a8ff;
  }
}

html {
  font-family: var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
}

h1,
h2 {
  letter-spacing: -0.02em;
}

a {
  color: var(--link);
  text-underline-offset: 0.2rem;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

::selection {
  background: rgb(0 102 204 / 22%);
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: rgb(100 168 255 / 35%);
  }
}
