/* Ruta Diferenciación hub — only the selector layout; the thermal world is in base.css.
   The home's composition, one step in: the question left, the advice in the calm
   panel right, and the routes as doors across the bottom. */

.hub {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "intro advice"
    "routes routes";
  align-content: center;
  column-gap: var(--column-gap);
  row-gap: clamp(2rem, 6vh, 3.5rem);
  min-height: calc(100svh - 8.5rem);
  padding: clamp(2rem, 7vh, 4.5rem) 0 clamp(0.5rem, 2vh, 1.5rem);
}

.hub__intro {
  grid-area: intro;
  align-self: end;
}

.hub__lead {
  max-width: 50ch;
  margin: clamp(1.25rem, 3.4vh, 2rem) 0 0;
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.55;
}

.hub__advice {
  grid-area: advice;
  align-self: end;
  justify-self: end;
  width: min(100%, 26rem);
}

.hub__advice-title {
  margin: 0;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 750;
  font-stretch: 116%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hub__advice p {
  max-width: 40ch;
  margin: 0.7rem 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.hub__routes {
  grid-area: routes;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.door__body {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.door__head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.door__name {
  margin: 0;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 750;
  font-stretch: 116%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.door__kind {
  color: var(--kitsunebi);
  font-size: 0.8125rem;
  font-weight: 550;
  font-stretch: 112%;
  line-height: 1;
  transition: color 0.3s var(--ease-out);
}

.door__body .door__answer {
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
}

.door__desc {
  max-width: 40ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
  transition: color 0.3s var(--ease-out);
}

.door__line {
  margin: 0;
}

.door.is-hot .door__kind,
.door.is-hot .door__desc {
  color: var(--char);
}

/* The frozen routes: named cold, read in the herd's voice. */
.door--frozen .door__name {
  color: var(--cold);
  font-weight: 500;
  font-stretch: 100%;
}

.door--frozen .door__answer {
  color: var(--ink-soft);
  font-weight: 500;
}

@media (max-width: 820px) {
  .hub {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "routes"
      "advice";
    min-height: 0;
    padding-top: clamp(1.75rem, 6vh, 3rem);
  }

  .hub__routes {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub__advice {
    justify-self: stretch;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .door__kind,
  .door__desc {
    transition: none;
  }
}
