@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --concrete: #e8eaed;
  --concrete-2: #dde0e4;
  --paper: #ffffff;
  --ink: #23262b;
  --ink-2: #555b64;
  --ink-3: #848a93;
  --rule: #cdd1d7;
  --sign: #1b4f9c;
  --sign-dark: #143c78;
  --lane: #f4c430;
  --lane-dark: #dcae1a;
  --go: #2e8540;
  --caution: #d9a400;
  --stop: #c8352e;
  --off: #9aa0a6;
  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0; }
a { color: var(--sign); }
button { font-family: inherit; }
.hidden { display: none !important; }

/* buttons: one primary (lane yellow, like a road marking), one secondary (outlined) */
.btn {
  appearance: none; border: 2px solid transparent; border-radius: 6px; padding: 11px 20px 9px; font: inherit;
  font-weight: 800; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 46px; text-decoration: none; color: var(--ink); background: transparent;
}
.btn-go { background: var(--lane); border-color: var(--lane); }
.btn-go:hover { background: var(--lane-dark); border-color: var(--lane-dark); }
.btn-go:disabled { background: var(--concrete-2); border-color: var(--concrete-2); color: var(--ink-3); cursor: not-allowed; }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-text { padding-inline: 4px; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.btn-text:hover { color: var(--ink); }
.btn-small { min-height: 34px; padding: 6px 12px 4px; font-size: 14px; }
.btn-danger { border-color: var(--stop); color: var(--stop); }
.btn-danger:hover { background: var(--stop); color: #fff; }

label.field { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
label.field small { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
  font: inherit; font-size: 16px; padding: 11px 12px 9px; border-radius: 6px; border: 2px solid var(--rule);
  background: var(--paper); color: var(--ink); width: 100%; min-height: 46px;
}
textarea { min-height: 100px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--sign); outline-offset: 2px;
}

/* the road sign: blue panel with an inset white border */
.sign {
  background: var(--sign); color: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 1px 0 var(--sign-dark);
}
.sign-inner { border: 3px solid #fff; border-radius: 8px; padding: 18px 22px 16px; }

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