:root {
  --sign: #00674f;        /* highway sign green */
  --sign-deep: #004d3b;
  --white: #ffffff;
  --asphalt: #23272a;     /* text */
  --haze: #e3ecee;        /* coastal morning haze, page ground */
  --line: #b9c9cc;
  --amber: #f2b230;       /* reflective exit-tab yellow */
  --muted: #4d5a5e;
  --sans: "Overpass", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--haze);
  color: var(--asphalt);
  font: 400 1.0625rem/1.65 var(--serif);
}
a { color: var(--sign-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 800; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* top bar */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
  font-family: var(--sans);
}
.brand { font-weight: 900; text-decoration: none; color: var(--asphalt); font-size: 1.05rem; }
.brand span { color: var(--sign); }
.topbar nav { display: flex; gap: 20px; font-size: .95rem; }
.topbar nav a { color: var(--asphalt); text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  padding: 40px 0 72px;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 900; letter-spacing: -.02em;
  line-height: .95;
}
.hero p { font-size: 1.2rem; max-width: 34ch; color: var(--muted); }

/* the highway sign: the one bold element */
.sign {
  position: relative;
  background: var(--sign);
  border: 4px solid var(--white);
  outline: 3px solid var(--sign);
  border-radius: 14px;
  padding: 34px 30px 22px;
  color: var(--white);
  font-family: var(--sans);
  box-shadow: 0 18px 0 -8px #9fb1b4;
}
.sign-shield {
  position: absolute; top: -26px; left: 26px;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--white); color: var(--sign); font-weight: 900; font-size: 1.1rem;
  border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%;
  border: 3px solid var(--sign);
}
.sign-row {
  display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: baseline; gap: 14px;
  padding: 12px 6px; color: var(--white); text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,.35);
}
.sign-row:last-child { border-bottom: 0; }
.sign-row:hover .sign-place { text-decoration: underline; text-decoration-thickness: 2px; }
.sign-arrow { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.sign-place { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; }
.sign-time { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }

/* finder */
.finder { padding-bottom: 80px; }
.filters { display: grid; gap: 10px; margin: 8px 0 18px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 600 .95rem var(--sans); padding: 7px 14px 5px; border-radius: 999px;
  border: 2px solid var(--line); background: transparent; color: var(--asphalt); cursor: pointer;
}
.chip:hover { border-color: var(--sign); }
.chip.is-on { background: var(--sign); border-color: var(--sign); color: var(--white); }
.count { font-family: var(--sans); color: var(--muted); margin: 0 0 8px; }

/* route: list ordered by drive time, drawn as a road */
.route { list-style: none; margin: 0; padding: 0; border-left: 6px solid var(--asphalt); }
.trip a {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 24px;
  padding: 22px 0 22px 0; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line); position: relative;
}
.trip a::before {
  content: ""; position: absolute; left: -15px; top: 30px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 3px solid var(--asphalt);
}
.trip-time { font: 800 1.15rem var(--sans); padding-left: 22px; color: var(--sign-deep); }
.trip-title { display: block; font: 800 1.45rem/1.15 var(--sans); margin-bottom: 4px; }
.trip a:hover .trip-title { text-decoration: underline; text-decoration-color: var(--sign); }
.trip-hook { display: block; max-width: 62ch; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; }
.tags li { font: 600 .82rem var(--sans); padding: 2px 9px 0; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.empty { font-family: var(--sans); padding: 24px 0; }

/* detail page */
.detail { max-width: 820px; padding: 24px 0 80px; }
.detail-sign {
  background: var(--sign); color: var(--white); border: 4px solid var(--white); outline: 3px solid var(--sign);
  border-radius: 14px; padding: 40px 30px 24px; position: relative; margin: 20px 0 28px;
}
.detail-sign h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.detail-drive { font-family: var(--sans); font-weight: 600; margin: 0; }
.exit-tab {
  position: absolute; top: -18px; right: 24px; background: var(--amber); color: var(--asphalt);
  font: 800 .95rem var(--sans); padding: 6px 12px 4px; border-radius: 6px; border: 3px solid var(--white);
}
.lede { font-size: 1.3rem; line-height: 1.5; max-width: 60ch; }
.detail section { margin-top: 44px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.checks { padding-left: 1.1em; }
.checks li { margin-bottom: 6px; }
.btn {
  display: inline-block; font: 800 1rem var(--sans); padding: 12px 18px 10px; border-radius: 8px;
  background: var(--sign); color: var(--white); text-decoration: none; margin-top: 8px;
}
.btn:hover { background: var(--sign-deep); }
.btn-quiet { background: transparent; color: var(--sign-deep); border: 2px solid var(--sign); }
.btn-quiet:hover { background: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.days { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 6px solid var(--asphalt); }
.days li { padding: 16px 18px 0 0; }
.days h3 { color: var(--sign-deep); }
.days p { margin: 0; }
.more ul { list-style: none; padding: 0; margin: 0; }
.more a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-weight: 600; }
.more-time { color: var(--muted); white-space: nowrap; }

.prose { max-width: 680px; padding: 32px 0 80px; }
.prose h1 { font-size: 2.6rem; font-weight: 900; }

.foot { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.foot p { max-width: 70ch; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-bottom: 48px; }
  .detail-grid, .days { grid-template-columns: 1fr; }
  .days li { padding-right: 0; }
}
@media (max-width: 560px) {
  main, .topbar, .foot { padding-left: 16px; padding-right: 16px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trip a { grid-template-columns: 1fr; gap: 4px; }
  .sign { padding: 32px 18px 16px; }
  .sign-row { grid-template-columns: 1.6rem 1fr auto; gap: 10px; }
  .sign-time { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* worldwide: region groups, country column, date ideas */
.region { margin-top: 28px; }
.region[hidden] { display: none; }
.region-h { font-size: 1.25rem; color: var(--sign-deep); margin-bottom: 10px; }
.trip-time small { display: block; font: 600 .85rem var(--sans); color: var(--muted); margin-top: 2px; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 6px solid var(--asphalt); margin-bottom: 12px; }
.date-col { padding: 16px 24px 0 0; }
.date-col + .date-col { padding-left: 24px; border-left: 2px dashed var(--line); }
.date-col h3 { color: var(--sign-deep); }
@media (max-width: 820px) {
  .dates { grid-template-columns: 1fr; }
  .date-col + .date-col { padding-left: 0; border-left: 0; border-top: 2px dashed var(--line); }
}

/* hubs: city directory, sign subtitles, search, why-section */
.sign-place small { display: block; font-size: .95rem; font-weight: 600; opacity: .85; margin-top: 2px; }
.search { display: grid; gap: 6px; max-width: 420px; margin: 4px 0 14px; font: 600 .95rem var(--sans); }
.search input {
  font: 400 1.05rem var(--sans); padding: 10px 14px 8px; border: 2px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--asphalt);
}
.search input:focus { border-color: var(--sign); outline: none; box-shadow: 0 0 0 3px var(--amber); }
.hubs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hub[hidden] { display: none; }
.hub a {
  display: block; padding: 14px 16px 12px; border-left: 6px solid var(--sign); background: var(--white);
  border-radius: 4px 8px 8px 4px; text-decoration: none; color: inherit; height: 100%;
}
.hub a:hover { border-left-color: var(--amber); }
.hub-name { display: block; font: 800 1.2rem/1.15 var(--sans); color: var(--asphalt); }
.hub-meta { display: block; font: 600 .85rem var(--sans); color: var(--muted); margin-top: 4px; }
.hero-hub h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 32px; border-top: 6px solid var(--asphalt); }
.why section { margin: 0; padding: 16px 24px 0 0; }
.why section + section { padding-left: 24px; border-left: 2px dashed var(--line); }
.why h2 { font-size: 1.15rem; color: var(--sign-deep); }
.more-all { font-family: var(--sans); font-weight: 600; margin-top: 14px; }
.topbar nav .crumb { font-weight: 800; color: var(--sign-deep); }
@media (max-width: 820px) {
  .why { grid-template-columns: 1fr; }
  .why section + section { padding-left: 0; border-left: 0; border-top: 2px dashed var(--line); margin-top: 16px; }
}
@media (max-width: 560px) {
  .topbar nav { flex-wrap: wrap; gap: 6px 16px; }
}
