.homepage {
  --hero-emphasis: #7e247e;
  --hire-start: #963889;
  --hire-end: #6a1e69;
  --browse-start: #994789;
  --browse-end: #772d77;
  --hero-ring: #ac66ac;
  background: radial-gradient(ellipse at 50% 0, #f9f1fd 0, transparent 42rem), var(--paper);
}
@media (prefers-color-scheme: dark) {
  .homepage {
    --hero-emphasis: #f1b5ec;
    --hire-start: #832a76;
    --hire-end: #5b2058;
    --browse-start: #823379;
    --browse-end: #65315f;
    --hero-ring: #ac75a8;
    background: radial-gradient(ellipse at 50% 0, #30162f 0, transparent 42rem), var(--paper);
  }
}
.homepage main { container: home / inline-size; }
.hero-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: .25rem;
  padding: clamp(1.2rem, 2.5vw, 2.4rem) 0 clamp(1.2rem, 2.2vw, 2rem);
}
.hero-art { width: 100%; height: auto; max-width: 275px; }
.art-right { justify-self: end; }
.hero-headline h1 {
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  font-weight: 550;
  line-height: .99;
  text-align: center;
  letter-spacing: -.06em;
}
.hero-headline h1 > * { display: block; }
.hero-headline strong { font-size: 1.14em; font-weight: 800; }
.hero-headline em { margin-top: .045em; color: var(--hero-emphasis); font-size: .91em; font-weight: 800; }
.hero-paths, .category-grid, .software-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 1.2vw, 1.2rem); }
.hero-paths { margin-inline: clamp(0px, 1.4vw, 20px); }
.hero-path {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  padding: clamp(1rem, 1.4vw, 1.4rem) clamp(3rem, 5vw, 4.25rem) clamp(1rem, 1.4vw, 1.4rem) clamp(1.15rem, 2vw, 1.9rem);
  color: #fff;
  border: 1px solid var(--hero-ring);
  border-radius: 1rem;
  text-decoration: none;
}
.hire-path { background: linear-gradient(115deg, var(--hire-start), var(--hire-end)); }
.browse-path { background: linear-gradient(115deg, var(--browse-start), var(--browse-end)); }
.hero-path strong { font: 800 clamp(1.45rem, 2.6vw, 2.45rem)/1.12 var(--display); letter-spacing: -.05em; }
.hero-path span { max-width: 37ch; font-size: clamp(.94rem, 1.2vw, 1.125rem); line-height: 1.34; }
.hero-path:hover strong { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: .06em; }
.path-arrow { position: absolute; right: clamp(1.1rem, 2vw, 1.8rem); top: 50%; width: 1.5rem; height: .15rem; background: currentColor; }
.path-arrow::after { content: ""; position: absolute; right: .04rem; top: 50%; width: .65rem; height: .65rem; border-top: .15rem solid; border-right: .15rem solid; transform: translateY(-50%) rotate(45deg); }
.home-section { padding-top: clamp(1.6rem, 2.7vw, 2.45rem); }
.home-heading { font: 800 clamp(1.85rem, 3.4vw, 3.1rem)/1.07 var(--display); letter-spacing: -.058em; text-align: center; text-wrap: balance; }
.category-grid { margin-top: clamp(1rem, 1.7vw, 1.45rem); }
.category, .software-card {
  display: grid;
  grid-template-columns: clamp(4.75rem, 11vw, 9.2rem) minmax(0,1fr);
  gap: clamp(.75rem, 1.6vw, 1.45rem);
  align-items: center;
  padding: clamp(.9rem, 1.4vw, 1.3rem);
  border: 1px solid var(--panel-edge);
  border-radius: .95rem;
  background: var(--surface);
  box-shadow: 0 2px 5px #31183108;
}
.category img, .software-card img { width: 100%; max-height: 7.6rem; object-fit: contain; }
.category h3, .software-card h3 { font: 800 clamp(1.22rem, 1.95vw, 1.82rem)/1.08 var(--display); letter-spacing: -.045em; }
.category-title { display: inline-flex; align-items: center; gap: .22em; color: var(--ink); text-decoration-thickness: .055em; text-underline-offset: .13em; }
.category-title::after { content: ""; display: inline-block; flex: none; width: .29em; height: .29em; border-top: .096em solid currentColor; border-right: .096em solid currentColor; transform: rotate(45deg); }
.category p, .software-card p { margin: .32rem 0 .2rem; line-height: 1.38; font-size: clamp(.94rem, 1.12vw, 1.04rem); }
.card-action { display: block; width: fit-content; max-width: 100%; padding-block: .12rem; min-height: 24px; color: var(--accent); font-weight: 750; line-height: 1.35; }
.card-action:hover, .category-title:hover { text-decoration-thickness: .14em; }
.home-software { padding-bottom: 1.5rem; }
.software-heading { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: .5rem; margin-bottom: 1rem; }
.software-heading .home-heading { grid-column: 2; }
.software-heading .card-action { justify-self: end; }
.feature-slot { display: grid; place-items: center; min-height: clamp(6rem, 8.8vw, 8rem); text-align: center; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: .95rem; font: 750 clamp(1.3rem, 2.3vw, 2rem)/1.2 var(--display); letter-spacing: -.035em; }
.software-grid { margin-top: .9rem; }
.software-card img { max-height: 6.8rem; }
.price { display: block; font: 800 clamp(1.15rem, 1.55vw, 1.45rem)/1.3 var(--display); letter-spacing: -.04em; }
@container home (43.1em < width <= 58em) {
  .category, .software-card { grid-template-columns: 5.25rem minmax(0,1fr); }
}
@container home (max-width: 43.1em) {
  .hero-headline {
    /* Give enlarged text room for whole words while keeping both icons visible. */
    grid-template-columns: minmax(0, .76fr) minmax(min(6.5em, 75%), 2.6fr) minmax(0, .76fr);
    gap: .15rem;
    padding-block: 1.5rem;
  }
  .hero-headline h1 { font-size: clamp(1.85rem, 6.8vw, 3.1rem); }
  .hero-paths, .category-grid, .software-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-paths { margin: 0; gap: .65rem; }
  .hero-path { padding-block: .9rem; }
  .category, .software-card { grid-template-columns: clamp(4.35rem, 18vw, 6.5rem) minmax(0, 1fr); }
  .category img, .software-card img { height: auto; }
  .category-title, .home-section .card-action { display: inline-flex; align-items: center; min-height: 44px; }
  .software-heading { display: flex; flex-direction: column; gap: .2rem; }
}
@container home (max-width: 30em) {
  .hero-headline { column-gap: clamp(4px, 1.2vw, 7px); padding-block: 1.25rem; }
  .hero-headline h1, .hero-path strong, .home-heading, .category h3, .software-card h3 { overflow-wrap: anywhere; }
  .hero-headline h1 {
    font-size: clamp(1.45rem, 7.5vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: -.045em;
  }
  .hero-paths { gap: .5rem; }
  .hero-path { padding-inline: min(1rem, 4vw) min(3rem, 12vw); }
  .path-arrow { right: min(1.1rem, 4vw); width: min(1.5rem, 5.5vw); }
  .browse-path { color: var(--ink); background: var(--accent-surface); }
  .browse-path span { display: none; }
  .home-heading { text-align: start; }
  .category, .software-card {
    grid-template-columns: clamp(40px, 12vw, 48px) minmax(0, 1fr);
    gap: .45rem 12px;
    padding: clamp(14px, 4vw, 18px);
  }
  .category > div, .software-card > div { display: contents; }
  .category h3, .software-card h3 { grid-column: 2; min-width: 0; line-height: 1.18; }
  .category p, .software-card p, .software-card .price, .home-section article .card-action { grid-column: 1 / -1; }
  .category p, .software-card p { margin: 0; font-size: 1rem; line-height: 1.45; }
  .category-title { display: block; align-content: center; }
  .category-title::after { margin-inline-start: .25em; }
  .category .card-action, .software-card .card-action {
    width: 100%;
    border-top: 1px solid var(--line);
    padding-block: .45rem;
  }
  .software-heading { align-items: start; }
  .feature-slot { min-height: 3.25rem; font-size: 1.1rem; }
}
