/* Rally — shared tokens. Courtside signage: guide green, recreational brown,
   regulatory white, and sign state colours used only for state. */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00B6, U+00B8-FFFF;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00B6, U+00B8-FFFF;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00B6, U+00B8-FFFF;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00B6, U+00B8-FFFF;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/overpass-mono-500.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00B6, U+00B8-FFFF;
}

:root {
  /* sign field colours */
  --green: #0c5b3a;
  --green-deep: #08452c;
  --green-ink: #063521;
  --green-tint: #e3efe7;
  --green-line: #b9d4c3;
  --brown: #5c3a22;
  --brown-deep: #482c18;
  --brown-tint: #efe4da;

  /* state codes */
  --warn: #f5c400;
  --warn-tint: #fff4c2;
  --warn-ink: #5a4500;
  --temp: #e9700f;
  --temp-tint: #ffe6d1;
  --temp-ink: #7a3500;
  --service: #1c4f93;
  --service-tint: #e1eaf7;
  --stop: #b42318;
  --stop-tint: #fde4e1;

  /* galvanized ground and ink */
  --galv-0: #f6f7f4;
  --galv-1: #eceee9;
  --galv-2: #dfe2dc;
  --galv-3: #c9cdc5;
  --galv-4: #9aa097;
  --steel: #6c7369;
  --ink: #141c17;
  --ink-2: #3c4640;
  --ink-3: #545e57;
  --white: #ffffff;

  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-plate: 0 1px 1px rgba(20, 28, 23, 0.08), 0 6px 16px -6px rgba(20, 28, 23, 0.22);
  --shadow-sign: 0 2px 2px rgba(20, 28, 23, 0.06), 0 24px 48px -24px rgba(8, 40, 26, 0.45);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}

img,
svg {
  display: block;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--warn);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
/* on green sign fields the ring switches to warning yellow */
.sign--guide :focus-visible,
.rail :focus-visible,
.brand-plate:focus-visible {
  outline-color: var(--warn);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The Rally plate: a small guide sign with an inset white border stripe. */
.brand-plate {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.85em 0.4em;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--white);
  text-decoration: none;
  line-height: 1;
}
.brand-plate svg {
  width: 1.05em;
  height: 1.05em;
}

* {
  scrollbar-color: var(--galv-4) transparent;
  scrollbar-width: thin;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
