/* The visual sections of the home page under the hero (feature web-home-visual). Colours come from the tokens of
 * style.css; the sections sit on the dark space background, so their text is the light on-space text. */

.home-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 0 8px;
}

.home-head {
  margin-bottom: 28px;
}

.home-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 10px 0 8px;
  color: var(--on-space-aqua);
}

.home-lead {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-space);
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.home-cta-row--left {
  justify-content: flex-start;
}

.block-picture--big {
  --size: 96px;
}

.block-picture--stack {
  --size: 72px;
  margin-top: -26px;
}

.block-picture--tile {
  --size: 64px;
}

/* ---------- The journey: a staircase of phases ---------- */

.journey-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  align-items: end;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journey-block {
  position: relative;
  z-index: 1;
  margin-bottom: -22px;
}

.journey-pillar {
  width: 100%;
  min-height: calc(70px + var(--rise) * 26px);
  padding: 30px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  background: var(--space-3);
  outline: 2px solid var(--black);
  box-shadow: inset 2px 2px 0 var(--space-4), inset -2px -2px 0 var(--space-2);
}

.journey-number {
  font-size: 12px;
  color: var(--on-space-yellow);
}

.journey-name {
  font-size: 13px;
  color: var(--on-space);
  overflow-wrap: anywhere;
}

/* ---------- Three steps to start ---------- */

.start-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.start-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.start-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.start-number {
  font-size: 72px;
  line-height: 1;
  color: var(--on-space-gold);
  text-shadow: var(--text-shadow);
}

.start-title {
  font-size: 20px;
  color: var(--on-space-aqua);
}

.start-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-space);
}

/* ---------- Specialties: towers of ore blocks ---------- */

.skyline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  align-items: end;
  gap: 16px;
  padding: 24px 16px 0;
  background: var(--space-2);
  outline: 2px solid var(--black);
  border-bottom: 8px solid var(--dirt);
}

.skyline-tower {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}

.skyline-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 26px;
}

.skyline-multiplier {
  font-size: 16px;
  color: var(--on-space-yellow);
}

.skyline-name {
  font-size: 14px;
  color: var(--on-space);
}

/* ---------- The existing four pillars ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ---------- The end: a floating OneBlock island ---------- */

.home-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin: 72px auto 40px;
  padding: 40px;
}

.island {
  display: grid;
  grid-template-columns: repeat(9, 40px);
  grid-auto-rows: 40px;
  justify-content: center;
}

.island-cell {
  display: block;
  width: 40px;
  height: 40px;
  overflow: visible;
}

.island-cell .block-picture {
  --size: 64px;
  margin: -12px 0 0 -12px;
}

.island-cell--one {
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .home-final {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .island {
    order: -1;
    transform-origin: center top;
    zoom: 0.8;
  }

  .home-title {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .journey-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-pillar {
    min-height: 90px;
  }
}
