/* Styled after the UK roadworks "Free recovery / Await rescue" sign. */
:root {
  --yellow: #fcd213;
  --black: #231f20;
  /* UK road signs use the Transport typeface; bold Helvetica/Arial is the closest system fallback. */
  --sign-font: "Transport", "Transport Heavy", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--yellow);
  color: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  font-family: var(--sign-font);
  font-weight: 700;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

.signs {
  width: min(100%, 30rem);
  display: grid;
  gap: clamp(0.75rem, 3vw, 1.25rem);
}

.sign {
  border: clamp(6px, 1.8vw, 10px) solid var(--black);
  border-radius: clamp(14px, 4vw, 24px);
  padding: clamp(1.5rem, 7vw, 2.75rem) clamp(1rem, 5vw, 2rem);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 10.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1 .name, h1 .legend { display: block; }

/* Sign layout: name / truck / legend. The truck sits outside the h1 in the
   markup; a 3-row grid with an h1 subgrid slots it between the two lines. */
.sign-main { display: grid; grid-template-rows: auto auto auto; }
.sign-main h1 { grid-area: 1 / 1 / 4 / 2; display: grid; grid-template-rows: subgrid; }
.sign-main .name { grid-row: 1; }
.sign-main .legend { grid-row: 3; }
.sign-main .truck { grid-area: 2 / 1; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.truck {
  display: block;
  width: 80%;
  height: auto;
  margin: clamp(1rem, 5vw, 2rem) auto;
  fill: currentColor;
}
.truck .line { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.truck .wheel { stroke: var(--yellow); stroke-width: 5; }
.truck .hub { fill: var(--yellow); }

.plate { font-style: normal; }

.contact {
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 0.35em 0.75em;
  text-align: left;
  font-size: clamp(1.1rem, 5vw, 1.5rem);
}
.contact dd { margin: 0; }
.contact abbr { text-decoration: none; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.address {
  margin: 1.25rem 0 0;
  font-size: clamp(0.95rem, 4vw, 1.1rem);
}

.button {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.7em 1.4em;
  border-radius: 10px;
  background: var(--black);
  color: var(--yellow);
  font-size: 1.05rem;
}
.button:hover { text-decoration: none; filter: brightness(1.4); }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.button:focus-visible { outline-offset: 4px; }
