/* Homepage — pixel/styles 1:1 with design/newDesign/index.dc.html
 * Every text rule sets font/size/weight/line-height/margin explicitly
 * so nothing inherits from body/layout. */

/* ——— Hero ——— */

.home-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 44px;
  display: flex;
  gap: 48px;
  align-items: center;
}

.home-hero__main {
  flex: 1;
}

.home-hero__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 60px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #211c16;
  text-wrap: balance;
}

.home-hero__intro {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: #5f594f;
  margin: 0 0 30px;
  max-width: 500px;
  text-wrap: pretty;
}

.home-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* dc: bare <a> with padding — no display/flex/line-height overrides */
.home-hero .btn-primary,
.home-hero .btn-secondary {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  text-decoration: none;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
}

.home-hero .btn-primary {
  color: #fcfaf5;
  background: #211c16;
  padding: 16px 28px;
}

.home-hero .btn-primary:hover {
  text-decoration: none;
  color: #fcfaf5;
}

.home-hero .btn-secondary {
  color: #211c16;
  background: #efe7d6;
  padding: 16px 24px;
}

.home-hero .btn-secondary:hover {
  text-decoration: none;
  color: #211c16;
}

.home-hero__video {
  width: 420px;
  flex-shrink: 0;
}

.home-hero__video iframe,
.home-hero__video .lae-yt-lite {
  width: 100%;
  height: 236px;
  border: 0;
  display: block;
  border-radius: 6px;
}

/* ——— Levels ——— */

.home-levels {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px 8px;
}

.home-levels__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.home-levels__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: normal;
  letter-spacing: normal;
  color: #211c16;
  margin: 0;
}

.home-levels__range {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: #8a8377;
}

.home-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-levels-grid > .level-card {
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 18px 18px 20px;
  height: 168px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: none;
  transform: none;
}

.home-levels-grid > .level-card:hover {
  text-decoration: none;
  color: #ffffff;
  box-shadow: none;
  transform: none;
  border-color: transparent;
}

.home-levels-grid > .level-card--yellow,
.home-levels-grid > .level-card--yellow:hover,
.home-levels-grid > .level-card--orange,
.home-levels-grid > .level-card--orange:hover {
  color: var(--text-on-yellow, #2a2521);
}

.level-card--yellow,
.level-card--yellow:hover,
.level-card--orange,
.level-card--orange:hover {
  color: var(--text-on-yellow, #2a2521);
}

.level-card__num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: normal;
  opacity: 0.7;
}

.level-card__name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: normal;
  letter-spacing: -0.01em;
  margin: 2px 0 8px;
  color: inherit;
  text-decoration: none;
}

.level-card__blurb {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--fs-card-body);
  line-height: 1.45;
  opacity: 0.92;
}

.level-card__start {
  margin-top: auto;
  font-family: 'Public Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.level-card--unsure {
  background: #efe7d6;
  padding: 18px;
  justify-content: center;
  color: #211c16;
  cursor: default;
}

.level-card--unsure:hover {
  color: #211c16;
  text-decoration: none;
}

.level-card--unsure .level-card__name {
  margin: 0;
  color: #211c16;
  opacity: 1;
}

.level-card--unsure .level-card__blurb {
  margin-top: 6px;
  opacity: 1;
  color: #5f594f;
  line-height: 1.45;
  font-size: var(--fs-card-body);
}

/* ——— Responsive (front + editor canvas via same sheet) ——— */

@media (max-width: 960px) {
  .home-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 40px 24px 32px;
  }

  .home-hero__title {
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    line-height: 1.02;
  }

  .home-hero__intro {
    max-width: none;
    font-size: 1.0625rem;
  }

  .home-hero__video {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }

  .home-hero__video iframe,
  .home-hero__video .lae-yt-lite {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .home-levels {
    padding: 12px 24px 8px;
  }

  .home-levels__head {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .home-levels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-levels-grid > .level-card {
    height: auto;
    min-height: 148px;
  }
}

@media (max-width: 520px) {
  .home-hero {
    padding: 28px 16px 24px;
    gap: 20px;
  }

  .home-hero__title {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
    margin-bottom: 14px;
  }

  .home-hero__intro {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .home-hero .btn-primary,
  .home-hero .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .home-levels {
    padding: 8px 16px 4px;
  }

  .home-levels__title {
    font-size: 1.35rem;
  }

  .home-levels-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-levels-grid > .level-card {
    min-height: 0;
    padding: 16px;
  }
}
