.hh-home {
  --hh-purple: #2e2360;
  --hh-yellow: #f3bd19;
  --hh-ink: #282526;
  --hh-warm: #fff5dc;
  --hh-line: #e4dfd7;
  width: var(--shell, min(91.32%, 1280px));
  margin: 0 auto;
  container-type: inline-size;
  color: var(--hh-purple);
  font-family: Montserrat, Arial, sans-serif;
  text-align: left;
}

.hh-home :where(h1, h2, h3, p, figure, ul) { margin: 0; }
.hh-home :where(h1, h2, h3) { color: var(--hh-purple); }
.hh-home img { display: block; }
.hh-home a { color: inherit; text-decoration: none; }
.hh-home a:focus-visible { outline: 3px solid var(--hh-purple); outline-offset: 4px; }
.hh-home :where(h1, h2, .hh-recipe-copy h3) {
  font: italic 700 clamp(1.7rem, 3.15cqw, 2.65rem)/1.12 Raleway, Arial, sans-serif;
  letter-spacing: -.026em;
  text-wrap: balance;
}
.hh-home .hh-eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hh-hero {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  align-items: center;
  gap: clamp(1.15rem, 3.2cqw, 3rem);
  padding: clamp(1.75rem, 4.1cqw, 3.3rem) clamp(1.6rem, 5cqw, 4.25rem);
  border-radius: clamp(1.25rem, 2.2cqw, 1.8rem);
  background: var(--hh-warm);
}
.hh-hero-content { min-width: 0; }
.hh-hero h1 {
  max-width: 15.5ch;
  margin: clamp(.9rem, 1.6cqw, 1.3rem) 0;
  font-size: clamp(2.4rem, 5.25cqw, 4.3rem);
  line-height: 1.04;
}
.hh-hero-copy {
  max-width: 33ch;
  color: var(--hh-ink);
  font-size: clamp(1rem, 1.5cqw, 1.2rem);
  line-height: 1.5;
}
.hh-hero-visual {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 25rem);
  aspect-ratio: 1.06;
}
.hh-hero-visual span {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 88%;
  aspect-ratio: 1;
  background: url("assets/sun.svg") center / contain no-repeat;
}
.hh-hero-visual img {
  position: absolute;
  inset: auto 3% 0 0;
  width: 97%;
  height: 88%;
  object-fit: contain;
}
.hh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.35rem;
  margin-top: clamp(1.1rem, 2.15cqw, 1.7rem);
}
.hh-home .hh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: .74rem 1.5rem;
  border-radius: 2rem;
  background: var(--hh-yellow);
  color: var(--hh-purple);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.hh-hero-link, .hh-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 600;
  text-underline-offset: .25em;
}
.hh-home :is(.hh-hero-link, .hh-textlink) { text-decoration: underline; text-decoration-color: #aca3b7; }
.hh-section, .hh-brands { margin-top: clamp(2.75rem, 5.6cqw, 4.55rem); }
.hh-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1.25rem;
  margin-bottom: clamp(1rem, 1.75cqw, 1.55rem);
}
.hh-categories, .hh-shelf {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(.8rem, 1.85cqw, 1.55rem);
}
.hh-category { display: block; border-radius: .9rem; }
.hh-category img {
  width: 100%;
  aspect-ratio: 350 / 233;
  height: auto;
  object-fit: cover;
  border-radius: .85rem;
}
.hh-home :is(.hh-category, .hh-featured-product) h3 {
  font: 600 clamp(1.02rem, 1.6cqw, 1.25rem)/1.32 Montserrat,Arial,sans-serif;
  letter-spacing: -.018em;
}
.hh-category h3 { margin: .85rem .08rem .1rem; }
.hh-featured-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 clamp(.85rem, 1.55cqw, 1.5rem) clamp(1.15rem, 1.9cqw, 1.65rem);
  border-radius: 1.05rem;
  background: linear-gradient(to bottom, transparent 22%, #fff2cf 22%);
  text-align: center;
}
.hh-pack {
  position: relative;
  flex: none;
  width: 100%;
  min-width: 0;
  height: clamp(7.7rem, 14.2cqw, 10.5rem);
  overflow: hidden;
}
/* Keep intrinsic packshot dimensions out of the card's track sizing. */
.hh-pack img {
  position: absolute;
  top: 6px;
  left: 8%;
  width: 84%;
  height: calc(100% - 12px);
  object-fit: contain;
}
.hh-product-caption { width: 100%; padding-top: .9rem; }
.hh-product-caption p {
  margin-top: .3rem;
  color: #58505a;
  font-size: clamp(.875rem, 1.2cqw, .975rem);
  line-height: 1.45;
}

.hh-recipe {
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  align-items: center;
  gap: clamp(1.3rem, 3.1cqw, 2.6rem);
  padding: clamp(1.3rem, 3.2cqw, 2.65rem);
  border-radius: 1.15rem;
  background: #fff1cd;
}
.hh-recipe-copy h3 { max-width: 16ch; margin: .7rem 0 .85rem; }
.hh-recipe-copy .hh-description, .hh-history p, .hh-demo p {
  max-width: 49ch;
  font-size: clamp(1rem, 1.4cqw, 1.12rem);
  line-height: 1.55;
  color: var(--hh-ink);
}
.hh-recipe-spec {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem 1rem;
  margin: 1.1rem 0 1.35rem;
  color: #554b42;
  font-size: .875rem;
  line-height: 1.45;
}
.hh-cutaway {
  display: grid;
  align-self: stretch;
  place-items: center;
  min-width: 0;
  padding: clamp(1rem, 2.65cqw, 2.2rem);
  border-radius: .95rem;
  background: #fffaf0;
}
.hh-cutaway-inner { width: min(100%, 23rem); container-type: inline-size; }
.hh-cutaway-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 1rem;
  margin-bottom: .75rem;
  font-size: .875rem;
  font-weight: 600;
}
.hh-cutaway-caption span:last-child { color: #625d63; white-space: nowrap; }
.hh-cutaway-layers {
  display: grid;
  grid-template-columns: minmax(0,1.67fr) minmax(0,1fr);
  align-items: center;
  gap: .5rem;
}
.hh-cutaway-art { aspect-ratio: 244 / 213; overflow: hidden; }
.hh-cutaway-art img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hh-cutaway-layers ul {
  display: grid;
  grid-template-rows: repeat(3, minmax(min-content, 1fr));
  align-items: center;
  align-self: start;
  min-height: 75%;
  padding: 3% 0 0;
  list-style: none;
  font-size: clamp(.8125rem, 4cqw, .95rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--hh-ink);
}
@container (max-width: 235px) {
  .hh-cutaway-layers { grid-template-columns: 1fr; justify-items: center; gap: .45rem; }
  .hh-cutaway-art { width: 72%; aspect-ratio: 218/213; }
  .hh-cutaway-layers ul { justify-self: stretch; gap: .4rem; padding: 0; }
  .hh-cutaway-layers li { display: flex; align-items: center; gap: .45rem; }
  .hh-cutaway-layers li::before { content: ''; flex: 0 0 .65rem; height: .45rem; border-radius: .1rem; background: #926144; }
  .hh-cutaway-layers li:nth-child(2)::before { background: #c18354; }
  .hh-cutaway-layers li:nth-child(3)::before { background: #583a32; }
}

.hh-history {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  align-items: center;
  border: 1px solid var(--hh-line);
  border-radius: 1rem;
  background: #fcfaf6;
  overflow: hidden;
}
.hh-history-copy { padding: clamp(1.3rem, 3cqw, 2.6rem); }
.hh-history p, .hh-demo p { margin-top: .75rem; }
.hh-history > img { width: 100%; height: auto; max-height: 18.5rem; object-fit: contain; }
.hh-brands ul {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: center;
  padding: clamp(1.15rem, 2.5cqw, 1.9rem) 0;
  border-block: 1px solid var(--hh-line);
  list-style: none;
}
.hh-brands li { display: grid; place-items: center; min-height: 2.5rem; padding-inline: clamp(.65rem, 2.3cqw, 1.8rem); }
.hh-brands li + li { border-left: 1px solid var(--hh-line); }
.hh-brands img { width: 100%; max-width: 9.8rem; height: 2.5rem; object-fit: contain; }
.hh-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-block: clamp(2.5rem, 5cqw, 3.8rem) clamp(1.8rem, 3.3cqw, 2.5rem);
  padding: clamp(1.5rem, 3.5cqw, 2.9rem);
  border-radius: 1.15rem;
  background: var(--hh-yellow);
}
.hh-home .hh-button-dark { flex-shrink: 0; background: var(--hh-purple); color: white; }

@media (hover: hover) {
  .hh-home .hh-button:hover { background: #fbd05a; }
  .hh-home .hh-button-dark:hover { background: #453477; }
  .hh-home :is(.hh-category, .hh-featured-product):hover h3 { text-decoration: underline; text-underline-offset: .22em; }
  .hh-home :is(.hh-hero-link, .hh-textlink):hover { text-decoration-color: currentColor; }
}
@media (prefers-reduced-motion: no-preference) {
  .hh-hero-visual img { animation: hh-settle .55s ease-out both; }
  @keyframes hh-settle { from { transform: translateY(6px); } to { transform: translateY(0); } }
  .hh-home .hh-button { transition: background-color .18s; }
  .hh-pack img { transition: translate .2s ease-out; }
  @media (hover: hover) { .hh-featured-product:hover .hh-pack img { translate: 0 -2px; } }
  @supports (animation-timeline: view()) {
    .hh-pack img { animation: hh-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes hh-rise { from { transform: translateY(4px); } to { transform: translateY(0); } }
  }
}

@media (max-width: 760px) {
  .hh-hero { padding: 1.5rem; }
  .hh-hero-actions { gap: .3rem 1rem; }
  .hh-hero-actions .hh-button { padding-inline: 1.15rem; }
  .hh-hero-link { font-size: .875rem; }
  .hh-recipe { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 1rem; }
}
@media (max-width: 610px) {
  .hh-home { width: var(--shell, calc(100% - 2rem)); }
  .hh-hero { grid-template-columns: 1fr; gap: .75rem; padding: clamp(1.2rem, 5vw, 1.8rem); }
  .hh-hero h1 { max-width: 15ch; font-size: clamp(2.25rem, 8.35vw, 3.25rem); }
  .hh-hero-visual { width: min(76%, 16rem); aspect-ratio: 1.13; }
  .hh-hero-actions { margin-top: .9rem; }
  .hh-hero-actions .hh-button { min-height: 44px; }
  .hh-hero-copy { max-width: 35ch; }
  .hh-section-heading { align-items: center; }
  .hh-home .hh-section-heading .hh-textlink { font-size: .875rem; }
  .hh-shelf { grid-template-columns: 1fr; gap: .7rem; }
  .hh-featured-product {
    display: grid;
    grid-template-columns: clamp(4.9rem, 19vw, 6rem) minmax(0,1fr);
    align-items: center;
    gap: 1rem;
    padding: .72rem 1rem;
    background: #fff4d9;
    text-align: left;
  }
  .hh-pack { height: 5.15rem; }
  .hh-pack img { left: 0; width: 100%; }
  .hh-product-caption { padding: 0; }
  .hh-recipe { grid-template-columns: 1fr; padding: 1.3rem; }
  .hh-cutaway { padding: 1rem; }
  .hh-history { grid-template-columns: 1fr; }
  .hh-history > img { max-height: none; }
  .hh-brands li { min-height: 1.8rem; }
  .hh-brands img { height: 1.8rem; }
  .hh-demo { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 470px) {
  .hh-categories { grid-template-columns: 1fr; gap: .65rem; }
  .hh-category {
    display: grid;
    grid-template-columns: clamp(5.6rem, 25vw, 7.1rem) minmax(0,1fr);
    align-items: center;
    column-gap: .9rem;
    padding: .4rem;
    border: 1px solid var(--hh-line);
    border-radius: .8rem;
  }
  .hh-category img { border-radius: .55rem; }
  .hh-category h3 { margin: 0; padding-right: .45rem; }
}
