.category-index {
    --index-ink: #f4ead6;
    --index-muted: #b9ad99;
    --index-brass: #d5a94e;
    --index-brass-soft: rgba(213, 169, 78, 0.16);
    --index-iron: #11100e;
    --index-board: #1b1814;
    --index-rule: rgba(244, 234, 214, 0.16);
    min-height: 70vh;
    color: var(--index-ink);
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(213, 169, 78, 0.035) 8% 8.15%, transparent 8.15%),
        var(--index-iron);
    padding-bottom: clamp(4rem, 8vw, 8rem);
}

.category-index .breadcrumbs {
    max-width: 1180px;
    margin-inline: auto;
}

.category-index__hero,
.category-index__sections {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.category-index__hero {
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.75rem, 6vw, 5rem);
    border-bottom: 1px solid var(--index-rule);
}

.category-index__eyebrow {
    margin: 0 0 1rem;
    color: var(--index-brass);
    font: 700 0.74rem/1.2 Inter, system-ui, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.category-index__hero h1 {
    max-width: 17ch;
    margin: 0;
    color: var(--index-ink);
    font: 700 clamp(2.6rem, 7vw, 6.5rem)/0.94 Fraunces, Georgia, serif;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.category-index__lede {
    max-width: 65ch;
    margin: 1.75rem 0 0;
    color: var(--index-muted);
    font: 500 clamp(1.05rem, 2vw, 1.25rem)/1.7 Inter, system-ui, sans-serif;
}

.category-index__measure {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.8rem 2rem;
    margin-top: 2.25rem;
    padding-top: 1.1rem;
    border-top: 3px solid var(--index-brass);
    font: 600 0.82rem/1.4 Inter, system-ui, sans-serif;
    color: var(--index-muted);
}

.category-index__measure strong {
    color: var(--index-ink);
    font-size: 1rem;
}

.category-index__measure a {
    margin-left: auto;
    color: var(--index-brass);
    text-underline-offset: 0.25em;
}

.category-index__section {
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 2fr);
    gap: clamp(2rem, 6vw, 6rem);
    padding: clamp(3rem, 7vw, 6rem) 0;
    border-bottom: 1px solid var(--index-rule);
}

.category-index__section-head {
    align-self: start;
    position: sticky;
    top: 7rem;
}

.category-index__section-head h2 {
    margin: 0 0 0.8rem;
    color: var(--index-ink);
    font: 700 clamp(1.75rem, 3.5vw, 2.75rem)/1.05 Fraunces, Georgia, serif;
    letter-spacing: -0.025em;
}

.category-index__section-head p {
    margin: 0;
    color: var(--index-muted);
    font: 500 0.95rem/1.65 Inter, system-ui, sans-serif;
}

.category-index__labels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.category-index__label {
    display: flex;
    min-height: 5.2rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--index-rule);
    border-left: 3px solid var(--index-brass);
    background: var(--index-board);
    color: var(--index-ink);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.category-index__label span {
    font: 700 1rem/1.25 Inter, system-ui, sans-serif;
}

.category-index__label small {
    color: var(--index-muted);
    font: 600 0.7rem/1.2 Inter, system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-index__label:hover,
.category-index__label:focus-visible {
    transform: translateY(-2px);
    border-color: var(--index-brass);
    background: var(--index-brass-soft);
    outline: none;
}

.category-index__section--ingredients .category-index__label {
    border-left-color: #86a978;
}

@media (max-width: 820px) {
    .category-index__section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-index__section-head {
        position: static;
    }

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

    .category-index__measure a {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .category-index__hero,
    .category-index__sections {
        width: min(100% - 1.25rem, 1180px);
    }

    .category-index__labels {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-index__label {
        transition: none;
    }
}
