:root {
  --ink: #202a32;
  --deep: #074e68;
  --teal: #309ca2;
  --teal-dark: #377076;
  --warm: #f5f0eb;
  --paper: #fcfaf8;
  --line: rgba(32, 42, 50, 0.12);
  --heading: Cabinetgrotesk, "Avenir Next", sans-serif;
  --body: "Generalsans Variable", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
}

.prototype-hub main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 48px;
}

.hub-hero {
  width: min(880px, 100%);
  margin-bottom: 54px;
}

.prototype-label,
.route-kicker {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hub-intro {
  max-width: 720px;
  margin: 28px 0 0;
  color: #5c6770;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.prototype-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.prototype-route {
  position: relative;
  min-height: 440px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 18px 60px -44px rgba(7, 78, 104, 0.55);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.prototype-route:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px -40px rgba(7, 78, 104, 0.6);
}

.prototype-route:focus-visible {
  outline: 4px solid rgba(48, 156, 162, 0.35);
  outline-offset: 4px;
}

.prototype-route--resources {
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,0.46) 0 15%, transparent 15.3%),
    #e9d8c4;
}

.prototype-route--search {
  background:
    radial-gradient(circle at 15% 85%, rgba(89,179,184,0.34), transparent 32%),
    var(--deep);
  color: white;
}

.route-number {
  display: block;
  margin-bottom: 92px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.68;
}

.prototype-route--search .route-kicker {
  color: #b9e1e1;
}

.prototype-route strong {
  display: block;
  max-width: 460px;
  font-family: var(--heading);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  line-height: 1;
}

.route-description {
  display: block;
  max-width: 480px;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.8;
}

.route-action {
  position: absolute;
  right: 38px;
  bottom: 34px;
  left: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  font-weight: 700;
}

.search-refresh {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 48px;
  align-items: end;
  margin-top: 28px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 60px -48px rgba(7, 78, 104, 0.5);
}

.search-refresh h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.05;
}

.search-refresh > div > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: #5c6770;
  font-size: 17px;
  line-height: 1.55;
}

.search-refresh__form label {
  display: block;
  margin-bottom: 9px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-refresh__controls {
  display: flex;
  gap: 10px;
}

.search-refresh__controls input {
  min-width: 0;
  flex: 1;
  padding: 13px 15px;
  border: 1px solid rgba(32, 42, 50, 0.2);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
}

.search-refresh__controls button {
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--deep);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-refresh__controls button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.search-refresh__controls input:focus-visible,
.search-refresh__controls button:focus-visible {
  outline: 4px solid rgba(48, 156, 162, 0.35);
  outline-offset: 2px;
}

.search-refresh__status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: #5c6770;
  font-size: 14px;
}

@media (max-width: 760px) {
  .prototype-hub main {
    padding-top: 48px;
  }

  .prototype-routes {
    grid-template-columns: 1fr;
  }

  .prototype-route {
    min-height: 390px;
    padding: 28px;
  }

  .route-number {
    margin-bottom: 70px;
  }

  .route-action {
    right: 28px;
    bottom: 26px;
    left: 28px;
  }

  .search-refresh {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  .search-refresh__controls {
    flex-direction: column;
  }
}
