@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

body.academy-home-light {
  --academy-home-bg: #f6f5fa;
  --academy-home-paper: #fff;
  --academy-home-ink: #241d37;
  --academy-home-muted: #615971;
  --academy-home-line: #e1dbed;
  --academy-home-accent: #5a46db;
  --academy-home-gutter: 36px;
  margin: 0;
  min-height: 100dvh;
  color: var(--academy-home-ink);
  background: var(--academy-home-bg);
  font-family: Manrope, system-ui, sans-serif;
}

html:has(body.academy-home-light) {
  background: #f6f5fa;
  color-scheme: light;
}

.academy-home-light [hidden] { display: none !important; }
.academy-home-light :is(a, button, select, summary):focus-visible { outline: 2px solid var(--academy-home-accent); outline-offset: 3px; }
.academy-home-visually-hidden, .academy-home-light .academy-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.academy-home-light .academy-skip:focus {
  position: fixed;
  inset: 12px auto auto 14px;
  z-index: 6;
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
  color: var(--academy-home-ink);
}
.academy-home-visually-hidden:focus {
  width: auto;
  height: auto;
  padding: 8px;
  clip-path: none;
  z-index: 1;
  background: white;
}
.catalogue-starting #landing-panels,
.catalogue-checking-progress [data-landing-continue] { visibility: hidden; }

.academy-home-main {
  max-width: 1160px;
  width: calc(100% - 2 * var(--academy-home-gutter));
  margin-inline: auto;
  padding-block: 36px 38px;
}

.academy-home-hero {
  position: relative;
  isolation: isolate;
  min-height: 288px;
  box-sizing: border-box;
  display: grid;
  align-items: center;
  padding: 30px 32px;
  overflow: hidden;
  border: 1px solid #dfd5eb;
  border-radius: 22px;
  background: #eae2f7;
}

.academy-home-hero-art {
  position: absolute;
  inset: -10px 0 auto auto;
  z-index: -1;
  width: min(53%, 488px);
  height: calc(100% + 37px);
  margin: 0;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 43%);
  mask-image: linear-gradient(90deg, transparent, #000 43%);
  pointer-events: none;
}

.academy-home-hero-art :is(img, picture) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.academy-home-hero-copy { min-width: 0; width: min(100%, 760px); }

.academy-home-hero h1 {
  margin: 0 0 10px;
  color: var(--academy-home-ink);
  font-size: clamp(32px, 3.06vw, 44px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.022em;
}

.academy-home-lead {
  margin: 0 0 25px;
  color: #4f435f;
  font-size: clamp(16px, 1.29vw, 19px);
  line-height: 1.4;
}

.academy-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 48px;
  min-width: min(100%, 225px);
  padding: 11px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--academy-home-accent);
  color: #fff;
  font: 800 16px/1.25 Manrope, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
}

.academy-home-cta:hover { background: #4d3ac6; }
.academy-home-cta svg { flex: none; width: 15px; height: 15px; }

.academy-home-count {
  margin: 23px 0 0;
  color: var(--academy-home-muted);
  font-size: 14px;
  font-weight: 750;
}

.academy-home-course { scroll-margin-top: 16px; margin-top: 24px; }

.academy-home-course > h2 {
  margin: 0 0 14px;
  color: var(--academy-home-ink);
  font-size: 29px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.academy-home-filter {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
  min-width: 0;
  width: calc((100% - 15px) / 2);
  min-height: 61px;
  padding: 8px 12px;
  border: 1px solid var(--academy-home-line);
  border-radius: 12px;
  background: var(--academy-home-paper);
  color: var(--academy-home-ink);
}

.academy-home-filter:hover { border-color: #c8bce1; }
.academy-home-filter:focus-within { outline: 2px solid var(--academy-home-accent); outline-offset: 2px; }

.academy-home-filter :is(.academy-home-filter-label, label) {
  color: var(--academy-home-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.academy-home-filter select,
.academy-home-filter-value,
.academy-home-filter button {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 25px 0 0;
  background: transparent;
  color: var(--academy-home-ink);
  font: 800 16px/1.25 Manrope, system-ui, sans-serif;
  text-align: start;
}

.academy-home-filter select { appearance: none; cursor: pointer; }
.academy-home-filter :is(select, button):focus-visible { outline: 0; }
.academy-home-filter-value { overflow-wrap: anywhere; }
.academy-home-filter:has(.academy-home-filter-value) select { position: absolute; inset: 0; height: 100%; opacity: 0; }

.academy-home-filter::after {
  position: absolute;
  inset: 50% 19px auto auto;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid #635387;
  border-bottom: 1.6px solid #635387;
  transform: translateY(-62%) rotate(45deg);
  content: "";
  pointer-events: none;
}

.academy-home-meta {
  margin: 18px 0 12px;
  color: var(--academy-home-muted);
  text-align: end;
  font-size: 13px;
  font-weight: 750;
}

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

.academy-home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--academy-home-line);
  border-radius: 14px;
  background: var(--academy-home-paper);
  color: var(--academy-home-ink);
  box-shadow: 0 2px 0 #e7e2ee;
  text-decoration: none;
}

.academy-home-card:hover { border-color: #c7b9e0; box-shadow: 0 2px 0 #e3dcef; }

.academy-home-card :is(img, .academy-home-card-image) {
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eae1f5;
  height: auto;
}

.academy-home-card-body {
  position: relative;
  flex: none;
  box-sizing: border-box;
  min-height: 75px;
  padding: 8px 10px;
}

.academy-home-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.academy-home-card[data-progress-state="completed"] .academy-home-card-kicker { color: #3e6754; }

.academy-home-card-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #665580;
  font-size: 10px;
  font-weight: 750;
}

.academy-home-card-kicker {
  flex: none;
  color: #665580;
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
}

.academy-home-card-title {
  display: block;
  margin-inline-end: 22px;
  color: var(--academy-home-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.academy-home-card-arrow {
  position: absolute;
  inset: auto 9px 7px auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #f3eff9;
  color: #695482;
}

.academy-home-card-arrow svg { width: 12px; height: 12px; }

@media (min-width: 1280px) {
  .academy-home-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1001px) and (max-width: 1260px) {
  body.academy-home-light { --academy-home-gutter: 23px; }
  .academy-home-hero { min-height: 264px; }
}

@media (max-width: 1000px) {
  body.academy-home-light {
    --academy-home-gutter: 16px;
  }

  .academy-home-main {
    width: min(720px, calc(100% - 2 * var(--academy-home-gutter)));
    margin-inline: auto;
    padding-block: 16px 18px;
  }

  .academy-home-hero {
    min-height: 230px;
    align-items: start;
    padding: 15px;
    border-radius: 16px;
  }

  .academy-home-hero-art {
    inset-block-start: 0;
    width: min(82%, 272px);
    height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgb(0 0 0 / 20%) 38%, #000 57%);
    mask-image: linear-gradient(90deg, transparent 8%, rgb(0 0 0 / 20%) 38%, #000 57%);
  }
  .academy-home-hero-copy { width: min(100%, 252px); }

  .academy-home-hero h1 {
    width: min(100%, 240px);
    margin-bottom: 10px;
    font-size: clamp(25px, 7.15vw, 31px);
    line-height: 1.06;
  }

  .academy-home-lead {
    width: min(100%, 153px);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
  }

  .academy-home-cta { min-height: 44px; min-width: min(100%, 177px); padding-inline: 13px 12px; font-size: 13px; }
  .academy-home-cta svg { width: 13px; height: 13px; }
  .academy-home-count { margin-top: 15px; font-size: 12px; }

  .academy-home-course { margin-top: 16px; }
  .academy-home-course > h2 { margin-bottom: 11px; font-size: 23px; }
  .academy-home-filter { width: 100%; min-height: 63px; padding: 7px 11px; border-radius: 12px; }
  .academy-home-filter :is(.academy-home-filter-label, label) { font-size: 11px; }
  .academy-home-filter :is(select, button, .academy-home-filter-value) { padding-right: 18px; font-size: 13px; }
  .academy-home-filter::after { inset-inline-end: 13px; }
  .academy-home-meta { margin: 14px 0 4px; font-size: 12px; }

  .academy-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .academy-home-card { border-radius: 13px; }
  .academy-home-card-body { min-height: 66px; }
  .academy-home-card-title { margin-inline-end: 0; font-size: 13px; line-height: 17px; }
  .academy-home-card-arrow { display: none; }

}

@media (max-width: 359px) {
  .academy-home-card-body { padding-inline: 8px; }
}

@media (max-width: 339px) {
  .academy-home-card-title { font-size: 12px; }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .academy-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .academy-home-hero { min-height: 255px; padding: 22px; }
  .academy-home-hero-copy { width: min(100%, 330px); }
  .academy-home-hero h1 { width: auto; font-size: 36px; }
  .academy-home-lead { width: 215px; font-size: 16px; }
  .academy-home-hero-art { width: min(75%, 458px); }
}

@media (prefers-reduced-motion: no-preference) {
  .academy-home-cta, .academy-home-card { transition: background-color 150ms, border-color 150ms, box-shadow 150ms; }
}
