/* Tokens, reset and the global reduced-motion rule.
   Colors were measured from the reference screenshots. */

:root {
  /* Brand */
  --brand-teal: #025157;
  --brand-teal-2: #3b787d;    /* unselected tab text, hover */
  --brand-rule: #62bbb0;      /* section rules, sign highlight */
  --brand-tint: #eef7f5;      /* icon tiles, service note */
  --coral: #ed584e;
  --peach: rgb(255 196 150 / 45%);

  /* Ink and surfaces */
  --brand-black: #1d1f24;
  --ink: #1d1f24;
  --ink-2: #4a4f57;
  --ink-3: #6d737c;
  --page: #f7f8fa;
  --card: #ffffff;
  --line: #dde2e7;
  --line-soft: #e8ecef;
  --leader: #9fb6b8;
  --footer: #524e46;
  --footer-ink: #f3efe7;

  /* Road (roadside-scene.css reads these) */
  --curb: #9aa0a8;
  --asphalt: #2b2d33;
  --stripe: #f6c445;

  /* Sign (cabinet, frames, bulbs) */
  --sign-cabinet: #296b6d;
  --sign-cabinet-hi: #347171;
  --sign-board: #fcfdfa;
  --sign-rule: #dfe7e6;
  --bulb: #f4dfa1;
  --font-sign: "Anton", "Impact", "Arial Narrow", sans-serif;

  /* Type */
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --gutter: 16px;
  --content-max: 1184px;
  --hero-inline: var(--gutter);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 56px;
}

@media (min-width: 1024px) {
  :root {
    --gutter: 24px;
    /* The hero's sign lines up with the content column. */
    --hero-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2));
  }
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

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

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

.boot-note {
  padding: 2rem var(--gutter);
  color: var(--ink-3);
}

/* One switch for every animation and transition on the page. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
