.home {
  --home-ink: #0f172a;
  --home-blue: #1e3a5f;
  --home-slate: #475569;
  --home-soft: #e8eef5;
  --home-line: #cbd5e1;
  --home-orange: #f97316;
  --home-peach: #ffe4cc;
}

.home-shell {
  width: min(calc(100% - 32px), 1184px);
  margin-inline: auto;
}

.home-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home a:focus-visible,
.home button:focus-visible {
  outline: 2px solid var(--home-orange);
  outline-offset: 4px;
}

.home-header {
  background: #fff;
  border-bottom: 1px solid var(--home-line);
}

.home-header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.home-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.05em;
}

.home-brand span:last-child {
  background: var(--home-orange);
  border-radius: 6px;
  padding: 0 5px 1px;
  letter-spacing: -.03em;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.home-nav a,
.home-about {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 9px;
  color: var(--home-blue);
  font-size: .875rem;
  font-weight: 700;
}

.home-nav a:hover,
.home-about:hover {
  background: var(--home-soft);
}

.home-nav .home-icon {
  width: 17px;
  height: 17px;
}

.home-utilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 2px;
}

.home-main {
  padding-block: clamp(16px, 2.8vw, 32px) clamp(44px, 6vw, 72px);
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 465px;
  overflow: hidden;
  color: #fff;
  background: var(--home-ink);
  border-radius: 26px;
}

.home-hero-picture {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 18%;
}

.home-hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.home-hero-picture::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, #0f172a 0%, #0f172af2 16%, #0f172a91 43%, #0f172a00 72%);
}

.home-hero-content {
  position: relative;
  max-width: 660px;
  padding: 46px clamp(30px, 5vw, 64px);
}

.home-hero h1 {
  font-size: clamp(2.45rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.home-hero h1 span {
  display: block;
  margin-top: 12px;
  color: var(--home-peach);
  font-size: .62em;
  letter-spacing: -.03em;
}

.home-hero-content > p {
  max-width: 45ch;
  margin-top: 20px;
  color: #e8eef5;
  font-size: 1.03rem;
  line-height: 1.6;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 28px;
}

.home-quiz,
.home-browse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 750;
}

.home-quiz {
  background: #fff;
  color: var(--home-ink);
  text-align: left;
}

.home-quiz:hover {
  background: var(--home-peach);
}

.home-quiz:disabled {
  opacity: .75;
  cursor: wait;
}

.home-quiz small {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--home-slate);
}

.home-browse {
  border-color: #ffffff62;
  color: #fff;
}

.home-browse:hover {
  background: #ffffff26;
}

.home-categories {
  margin-top: clamp(34px, 5vw, 60px);
}

.home-categories h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3.1vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr));
  gap: 16px;
}

.home-card {
  padding: clamp(16px, 2vw, 24px);
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  box-shadow: 0 8px 20px #0f172a0a;
}

.home-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-card-emblem {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--home-soft);
  color: var(--home-blue);
}

.home-card:nth-child(2) .home-card-emblem {
  background: var(--home-blue);
  color: #fff;
}

.home-card:nth-child(3) .home-card-emblem {
  background: var(--home-ink);
  color: #fff;
}

.home-card-emblem .home-icon {
  width: 28px;
  height: 28px;
}

.home-card h3,
.home-author h2 {
  font-size: clamp(1.25rem, 2vw, 1.58rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.home-card p,
.home-author p {
  margin-top: 10px;
  color: var(--home-slate);
  font-size: .9rem;
  line-height: 1.55;
}

.home-card .home-group-label {
  margin-block: 18px 7px;
  color: var(--home-ink);
  font-size: .8rem;
  font-weight: 750;
}

.home-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.home-tiers a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding-inline: 3px;
  border: 1px solid var(--home-line);
  border-radius: 9px;
  background: var(--home-soft);
  color: var(--home-blue);
  font-size: .8rem;
  font-weight: 700;
}

.home-tiers a:hover {
  color: #fff;
  background: var(--home-blue);
}

.home-tiers .home-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
}

.home-use a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border-bottom: 1px solid var(--home-soft);
  color: var(--home-blue);
  font-size: .9rem;
  font-weight: 650;
}

.home-use a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-use .home-icon:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.home-author {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  margin-top: clamp(24px, 4vw, 44px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: var(--home-soft);
}

.home-author img {
  width: clamp(64px, 9vw, 100px);
  height: auto;
  flex: none;
  border: 3px solid #fff;
  border-radius: 17px;
}

.home-author a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--home-blue);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 940px) {
  .home-hero-content {
    max-width: 540px;
  }

  .home-hero-picture {
    inset-inline-start: 14%;
    opacity: .85;
  }

  .home-tiers a {
    gap: 3px;
  }
}

@media (max-width: 639px) {
  .home-header-inner {
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    padding-block: 4px 6px;
  }

  .home-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 2px;
  }

  .home-nav a,
  .home-about {
    padding-inline: 5px;
    font-size: .81rem;
  }

  .home-hero {
    min-height: 0;
    border-radius: 20px;
  }

  .home-hero-content {
    max-width: none;
    padding: 25px 20px 0;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 6.5vw, 2.7rem);
    text-wrap: initial;
  }

  .home-hero h1 span {
    margin-top: 9px;
  }

  .home-hero-content > p {
    margin-top: 14px;
    font-size: .9rem;
  }

  .home-hero-actions {
    margin-top: 16px;
    gap: 7px;
  }

  .home-quiz,
  .home-browse {
    padding-inline: 10px;
    gap: 6px;
  }

  .home-hero-picture {
    position: relative;
    inset: auto;
    height: clamp(170px, 51vw, 275px);
    margin-top: 8px;
    opacity: 1;
  }

  .home-hero-picture::after {
    background: linear-gradient(180deg, #0f172a 0%, #0f172a00 46%);
  }

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

  .home-author {
    align-items: flex-start;
  }
}
