:root {
  --guide: #0B6B3A;      /* freeway guide-sign green */
  --guide-dark: #08502B;
  --warn: #F7C51E;       /* warning-sign yellow */
  --stop: #C8102E;       /* regulatory red */
  --asphalt: #2B2E33;
  --concrete: #ECEDE8;
  --ink: #1D1F22;
  --white: #FFFFFF;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Overpass", "Highway Gothic", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--concrete);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--guide); text-underline-offset: 0.18em; }
a:hover { color: var(--guide-dark); }
:focus-visible { outline: 4px solid var(--warn); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Home: the guide sign hero ---------- */
.hero {
  background:
    url(img/highway.jpg) center bottom / max(100%, 1500px) auto no-repeat,
    linear-gradient(#7DA3C6, #C7D6E0 34%, #C7D6E0);
  padding: 3.25rem 0 0;
  overflow: hidden;
}
.guide { position: relative; max-width: 720px; margin-inline: auto; }
.guide-panel {
  position: relative;
  background: var(--guide);
  color: var(--white);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.25rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2rem);
  box-shadow: inset 0 0 0 6px var(--guide), inset 0 0 0 11px var(--white);
  text-align: center;
  z-index: 1;
}
.exit-tab {
  position: absolute;
  top: -2.6rem;
  right: 8%;
  background: var(--guide);
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem 0.4rem;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 0 0 4px var(--guide), inset 0 0 0 7px var(--white);
}
.guide h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.3rem, 6.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.guide-sub {
  margin: 0.9rem 0 0;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}
.posts { display: flex; justify-content: space-between; width: 62%; margin: 0 auto; height: clamp(5rem, 9vw, 7.5rem); }
.posts span { width: 14px; background: linear-gradient(90deg, #8B9096, #C3C7CB 45%, #7E838A); }

.finder {
  margin: 1.4rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 0.75rem;
  font-weight: 600;
}
.finder label { font-size: 1.1rem; }
.finder select, .finder button, .button {
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 8px;
  padding: 0.6rem 1rem 0.45rem;
  min-height: 48px;
}
.finder select { border: 3px solid var(--white); background: var(--white); color: var(--guide); cursor: pointer; }
.finder button, .button {
  border: 3px solid var(--ink);
  background: var(--warn);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.finder button:hover, .button:hover { background: #FFD84D; color: var(--ink); }

.road {
  height: 64px;
  background:
    linear-gradient(90deg, var(--warn) 50%, transparent 50%) 0 50% / 72px 6px repeat-x,
    var(--asphalt);
  border-top: 6px solid #D9DAD4;
}

.intro { padding: 3rem 0 1rem; }
.intro p { max-width: var(--measure); margin: 0 auto; font-size: 1.3rem; line-height: 1.55; text-align: center; }

/* ---------- Home: the twelve signs ---------- */
.signs { padding: 2rem 0 4.5rem; }
.sign-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}
@media (min-width: 480px) { .sign-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .sign-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .sign-grid { grid-template-columns: repeat(6, 1fr); } }
.sign-card { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.sign-art { width: 140px; height: 140px; transform-origin: 50% 100%; }
.sign-month { margin-top: 0.75rem; font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.sign-name { color: #4A4F55; font-size: 1rem; }
.sign-card:hover .sign-month { color: var(--guide); }
@media (prefers-reduced-motion: no-preference) {
  .sign-card:hover .sign-art, .sign-card:focus-visible .sign-art { animation: sway 0.6s ease-in-out; }
}
@keyframes sway {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-5deg); }
  65% { transform: rotate(3deg); }
}

/* ---------- Inner pages ---------- */
.topbar { background: var(--asphalt); padding: 0.75rem 0; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mini-sign {
  background: var(--guide);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.45rem 0.9rem 0.3rem;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px var(--guide), inset 0 0 0 5px var(--white);
}
.mini-sign:hover { color: var(--white); background: var(--guide-dark); }
.topbar-link { color: var(--white); font-weight: 600; }
.topbar-link:hover { color: var(--warn); }

.reading { padding: 3rem 0 4rem; }
.reading article { max-width: 760px; margin-inline: auto; }
.reading-head { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.5rem); margin-bottom: 2rem; }
.reading-sign { flex: 0 0 auto; width: clamp(110px, 24vw, 190px); }
.reading h1 { margin: 0; font-weight: 900; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; }
.reading-kicker { margin: 0.5rem 0 0; font-size: 1.25rem; font-weight: 600; color: #4A4F55; }
.reading-body { max-width: var(--measure); }
.reading-body p { margin: 0 0 1.15em; }
.reading-body h2 { font-weight: 900; font-size: 1.5rem; margin: 2.2rem 0 0.5rem; }
.about .reading h1 { margin-bottom: 1.5rem; }

.exits {
  max-width: 760px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.exit {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--guide);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.1;
  padding: 1rem 1.25rem 0.85rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 4px var(--guide), inset 0 0 0 7px var(--white);
}
.exit small { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.15rem; }
.exit:hover { background: var(--guide-dark); color: var(--white); }
.exit-next { justify-content: flex-end; text-align: right; }
.arrow { width: 36px; height: 36px; flex: 0 0 auto; }
.arrow-left { transform: scaleX(-1); }

.lost { text-align: center; }
.lost .reading-sign { margin: 0 auto 1.5rem; }
.lost h1 { margin-bottom: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt); color: #D5D7D9; padding: 2.5rem 0 3rem; font-size: 1rem; }
.site-footer p { max-width: var(--measure); margin: 0 0 0.8rem; }
.site-footer a { color: var(--white); margin-right: 1.25rem; }
.site-footer a:hover { color: var(--warn); }
.footer-sign a { font-weight: 900; font-size: 1.3rem; text-decoration: none; margin: 0; }

@media (max-width: 560px) {
  .exit-tab { right: 6%; font-size: 1rem; }
  .reading-head { flex-direction: column; align-items: flex-start; }
  .exits { grid-template-columns: 1fr; }
  .exit { font-size: 1.3rem; }
  .sign-grid { gap: 2rem 1rem; }
  .sign-art { width: 120px; height: 120px; }
}
