/* Route 128 Works — highway guide-sign system.
   Panel geometry (inset white border, corner radius, tab above the panel)
   follows real MUTCD guide signs at reduced scale. */

:root {
  --asphalt: #17181b;
  --asphalt-lit: #1f2126;
  --sign-green: #04674c;
  --sign-green-deep: #01513b;
  --sign-white: #f2f5f0;
  --amber: #ffc61e;
  --hairline: rgba(242, 245, 240, 0.13);

  --shell: 68rem;
  --radius: 16px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #1c1d22 0%, var(--asphalt) 46%, #131418 100%);
  color: var(--sign-white);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

/* ── Header rail ─────────────────────────────────────────────── */

.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
  font-family: "Overpass Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.bar-mark { font-weight: 600; }
.bar-meta { color: rgba(242, 245, 240, 0.58); }

/* ── Guide-sign panel ────────────────────────────────────────── */

.sign {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(178deg, var(--sign-green), var(--sign-green-deep));
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.9);
}

/* The inset reflective border, set in from the panel edge like the real thing. */
.sign::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 2px solid rgba(242, 245, 240, 0.82);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.75rem) 1.5rem 0;
}

.sign--hero {
  padding: clamp(2.25rem, 6vw, 3.75rem) clamp(1.75rem, 5vw, 3.5rem);
  overflow: hidden;
}

/* One headlight pass across the sheeting, then still. */
.sign--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background-repeat: no-repeat;
  background-size: 300% 100%;
  background-position: 150% 0;
  background-image: linear-gradient(
    100deg,
    transparent 38%,
    rgba(255, 255, 255, 0.09) 46%,
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 255, 255, 0.09) 54%,
    transparent 62%
  );
}

body.lit .sign--hero::after {
  animation: sweep 1500ms cubic-bezier(0.4, 0, 0.2, 1) 240ms 1 backwards;
}

@keyframes sweep {
  0%   { background-position: 150% 0; opacity: 0; }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { background-position: -60% 0; opacity: 0; }
}

.hero-eyebrow {
  margin: 0 0 1.1rem;
  font-family: "Overpass Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 245, 240, 0.7);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 8.4vw, 5.25rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.022em;
}

.hero-sub {
  margin: 1.35rem 0 0;
  max-width: 44ch;
  font-size: clamp(1.02rem, 2.1vw, 1.28rem);
  color: rgba(242, 245, 240, 0.84);
}

.hero-note {
  margin: 1.35rem 0 0;
  font-family: "Overpass Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 245, 240, 0.55);
}

/* ── Exit signs ──────────────────────────────────────────────── */

.exits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  max-width: var(--shell);
  margin: clamp(3.25rem, 7vw, 5.25rem) auto clamp(3.5rem, 7vw, 5.5rem);
  padding: 0 1.5rem;
}

.sign--exit {
  display: flex;
  flex-direction: column;
  padding: 2.1rem clamp(1.5rem, 3vw, 2.1rem) 1.65rem;
  margin-top: 1.1rem; /* room for the tab riding above the panel */
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.sign--exit:hover,
.sign--exit:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.11);
  box-shadow: 0 26px 52px -24px rgba(0, 0, 0, 0.95);
}

.sign--exit:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.tab {
  position: absolute;
  top: -1.1rem;
  left: 0.7rem; /* aligns with the panel's inset border, not the outer edge */
  padding: 0.28rem 0.7rem 0.24rem;
  border: 2px solid rgba(242, 245, 240, 0.82);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: var(--sign-green);
  font-family: "Overpass Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.exit-name {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.exit-desc {
  margin: 0.7rem 0 0;
  font-size: 0.98rem;
  color: rgba(242, 245, 240, 0.8);
}

.exit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 245, 240, 0.22);
}

.exit-domain {
  font-family: "Overpass Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: rgba(242, 245, 240, 0.9);
}

.arrow {
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: var(--sign-white);
  stroke-width: 2.1;
  stroke-linecap: square;
  transition: transform 220ms ease;
}

.sign--exit:hover .arrow,
.sign--exit:focus-visible .arrow { transform: translate(3px, -3px); }

body.lit .sign--exit {
  animation: rise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.exits .sign--exit:nth-child(1) { animation-delay: 620ms; }
.exits .sign--exit:nth-child(2) { animation-delay: 760ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ──────────────────────────────────────────────────── */

.foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  border-top: 1px solid var(--hairline);
  font-family: "Overpass Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 245, 240, 0.56);
}

/* ── Narrow ──────────────────────────────────────────────────── */

@media (max-width: 780px) {
  .exits { grid-template-columns: minmax(0, 1fr); gap: 1.9rem; }
}

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