/* Home only. Match the task order at every width. */
.hk-home[data-hk-home] .hk-start {
  display: block;
  padding: clamp(20px, 4vw, 44px) 0 22px;
}
.hk-home[data-hk-home] .hk-start h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  max-width: 23ch;
}
.hk-home[data-hk-home] .hk-start h1 span { display: inline; }
.hk-home[data-hk-home] .hk-start-lead { margin-bottom: 16px; }
.hk-home[data-hk-home] .hk-start-proof { margin-top: 16px; }
.hk-home .hk-start .hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.hk-home .hk-task-start > h2 {
  color: #edf1f2;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}
.hk-home .hk-task-card .hk-task-links {
  display: grid;
  gap: 0;
  align-content: start;
}
.hk-home .hk-task-card .hk-task-links a { min-height: 32px; }
.hk-home .hk-home-demo {
  margin: 0;
  max-width: none;
  min-width: 0;
}
.hk-home .hk-home-demo > p:not(.hk-lesson-kicker) { max-width: 62ch; }
.hk-home .hk-home-demo audio { max-width: 100%; }
.hk-home .hk-task-card a:focus-visible,
.hk-home .hk-start a:focus-visible {
  outline: 2px solid #8be0d7;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .hk-home .hk-task-card { padding: 14px; }
  .hk-home .hk-task-card .hk-task-links a { min-height: 44px; }
}
@media (max-width: 440px) {
  .hk-home .hk-task-grid { grid-template-columns: 1fr; }
  .hk-home .hk-task-card .hk-task-primary { min-height: 44px; }
}

/* Align the action and link divider across cards in each row. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 701px) {
    .hk-home .hk-task-grid { row-gap: 0; }
    .hk-home .hk-task-grid > .hk-task-card {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
      align-items: start;
    }
    .hk-home .hk-task-card > .hk-task-primary { margin-top: 0; }
  }
  @media (min-width: 701px) and (max-width: 1000px) {
    .hk-home .hk-task-grid > .hk-task-card:nth-child(-n+2) { margin-bottom: 16px; }
  }
}

.hk-home .hk-home-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.hk-home .hk-home-featured {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid #344e59;
  border-radius: 14px;
  background: #15242b;
}
.hk-home .hk-home-featured h2 { margin: 0 0 6px; font-size: 1.2rem; }
.hk-home .hk-home-featured p { margin: 0 0 10px; color: #b8ccd1; font-size: .9rem; }
.hk-home .hk-home-featured ul { list-style: none; margin: 0; padding: 0; }
.hk-home .hk-home-featured li + li { border-top: 1px solid #2d454e; }
.hk-home .hk-home-featured a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-block: 5px;
  color: #e8f3f4;
  text-decoration: none;
  font-size: .9rem;
}
.hk-home .hk-home-featured a span { color: #73d5cf; }
.hk-home .hk-home-featured a:hover { text-decoration: underline; }
.hk-home .hk-home-featured a:focus-visible { outline: 2px solid #8be0d7; outline-offset: 2px; }
@media (max-width: 720px) {
  .hk-home .hk-home-showcase { grid-template-columns: minmax(0, 1fr); }
}
