.af-cat {
    --af-cat-border: var(--sam-line, #dedbd4);
    --af-cat-ink: var(--sam-ink, #20251f);
    --af-cat-muted: var(--sam-muted, #6c7069);
    --af-cat-paper: var(--sam-paper, #f8f7f2);
    --af-cat-accent: var(--sam-accent, #7c582b);
}

.af-cat .af-cat-breadcrumb {
    padding-bottom: 22px;
}

.af-cat .af-cat-header {
    grid-template-columns: minmax(0, 1.06fr) minmax(280px, .94fr);
    min-height: 350px;
    background: var(--af-cat-paper);
}

.af-cat .af-cat-header-copy {
    min-width: 0;
    padding: clamp(30px, 5vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.af-cat .af-cat-header h1 {
    max-width: 760px;
    margin: 13px 0 19px;
    color: var(--af-cat-ink);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.01;
    letter-spacing: -.052em;
}

.af-cat .af-cat-intro,
.af-cat .af-cat-intro p {
    max-width: 62ch;
    margin: 0;
    color: var(--af-cat-muted);
    font-size: 15px;
    line-height: 1.72;
}

.af-cat .af-cat-intro p + p {
    margin-top: 10px;
}

.af-cat .sam-category-count {
    margin-top: 23px;
}

.af-cat .af-cat-picture {
    min-height: 350px;
    max-height: none;
}

.af-cat .af-cat-picture .sam-photo {
    object-position: center;
}

.af-cat .af-cat-type-panel {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 58px);
    color: var(--af-cat-ink);
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(124, 88, 43, .11) 48% 49%, transparent 49% 100%),
        linear-gradient(315deg, transparent 0 65%, rgba(32, 37, 31, .08) 65% 66%, transparent 66% 100%),
        #ede9df;
}

.af-cat .af-cat-type-panel::before {
    position: absolute;
    top: 16%;
    right: 7%;
    color: rgba(32, 37, 31, .07);
    content: 'AF';
    font: 400 clamp(130px, 19vw, 260px)/.75 var(--sam-display, Georgia, serif);
    letter-spacing: -.12em;
    pointer-events: none;
}

.af-cat .af-cat-type-mark,
.af-cat .af-cat-type-label {
    position: relative;
    z-index: 1;
}

.af-cat .af-cat-type-mark {
    color: var(--af-cat-accent);
    font: 400 clamp(70px, 10vw, 132px)/.8 var(--sam-display, Georgia, serif);
    letter-spacing: -.09em;
}

.af-cat .af-cat-type-label {
    align-self: flex-start;
    border-top: 1px solid rgba(32, 37, 31, .35);
    padding-top: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.af-cat .af-cat-checks {
    margin: 47px 0 54px;
    padding: 27px 0 0;
    border-top: 1px solid var(--af-cat-ink);
}

.af-cat .af-cat-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 23px;
}

.af-cat .af-cat-section-heading h2,
.af-cat .af-cat-archive-bar h2 {
    margin: 7px 0 0;
    color: var(--af-cat-ink);
    font: 400 clamp(27px, 3vw, 43px)/1.08 var(--sam-display, Georgia, serif);
    letter-spacing: -.042em;
}

.af-cat .af-cat-section-heading p {
    max-width: 270px;
    margin: 0;
    color: var(--af-cat-muted);
    font-size: 13px;
    line-height: 1.6;
}

.af-cat .af-cat-check-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.af-cat .af-cat-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 82px;
    padding: 10px 25px 10px 0;
    border-right: 1px solid var(--af-cat-border);
    color: var(--af-cat-ink);
    font-size: 14px;
    line-height: 1.55;
}

.af-cat .af-cat-check-list li + li {
    padding-left: 25px;
}

.af-cat .af-cat-check-list li:last-child {
    border-right: 0;
    padding-right: 0;
}

.af-cat .af-cat-check-number {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--af-cat-accent);
    border-radius: 50%;
    color: var(--af-cat-accent);
    font-size: 11px;
    font-weight: 700;
}

.af-cat .af-cat-archive-bar {
    align-items: end;
    margin-top: 0;
}

.af-cat .af-cat-archive-bar h2 {
    font-size: clamp(29px, 3.3vw, 45px);
}

.af-cat .af-cat-grid {
    margin-top: 6px;
}

.af-cat .af-cat-guide {
    max-width: 820px;
    margin: 72px auto 50px;
    padding: 30px 0 0;
    border-top: 1px solid var(--af-cat-ink);
}

.af-cat .af-cat-guide-content {
    color: var(--af-cat-muted);
    font-size: 16px;
    line-height: 1.78;
}

.af-cat .af-cat-guide-content h2,
.af-cat .af-cat-guide-content h3 {
    margin: 31px 0 11px;
    color: var(--af-cat-ink);
    font: 400 clamp(25px, 2.5vw, 35px)/1.15 var(--sam-display, Georgia, serif);
    letter-spacing: -.035em;
}

.af-cat .af-cat-guide-content h2:first-child,
.af-cat .af-cat-guide-content h3:first-child {
    margin-top: 16px;
}

.af-cat .af-cat-guide-content p {
    margin: 0 0 16px;
}

.af-cat .af-cat-guide-content ul,
.af-cat .af-cat-guide-content ol {
    margin: 0 0 22px;
    padding-left: 1.35em;
}

.af-cat .af-cat-guide-content li {
    margin-bottom: 7px;
}

.af-cat .af-cat-guide-content a {
    color: var(--af-cat-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.af-cat .af-cat-note {
    max-width: 820px;
    margin-top: 55px;
}

.af-cat .af-cat-note p {
    max-width: 64ch;
    line-height: 1.65;
}

.af-cat .af-cat-empty {
    padding: 30px 0;
    border-top: 1px solid var(--af-cat-border);
    color: var(--af-cat-muted);
}

.af-cat a:focus-visible,
.af-cat button:focus-visible {
    outline: 3px solid var(--af-cat-accent);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .af-cat .af-cat-header {
        grid-template-columns: minmax(0, 1fr) minmax(230px, .82fr);
    }

    .af-cat .af-cat-check-list li {
        padding-right: 18px;
    }

    .af-cat .af-cat-check-list li + li {
        padding-left: 18px;
    }
}

@media (max-width: 760px) {
    .af-cat .af-cat-header {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .af-cat .af-cat-header-copy {
        padding: 29px 26px 31px;
    }

    .af-cat .af-cat-header h1 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .af-cat .af-cat-picture,
    .af-cat .af-cat-type-panel {
        min-height: 220px;
        height: 220px;
    }

    .af-cat .af-cat-type-panel {
        padding: 24px 26px;
    }

    .af-cat .af-cat-type-mark {
        font-size: 82px;
    }

    .af-cat .af-cat-section-heading {
        display: block;
    }

    .af-cat .af-cat-section-heading p {
        max-width: 50ch;
        margin-top: 12px;
    }

    .af-cat .af-cat-check-list {
        display: block;
    }

    .af-cat .af-cat-check-list li,
    .af-cat .af-cat-check-list li + li,
    .af-cat .af-cat-check-list li:last-child {
        min-height: 0;
        padding: 15px 0;
        border-right: 0;
        border-bottom: 1px solid var(--af-cat-border);
    }

    .af-cat .af-cat-check-list li:last-child {
        border-bottom: 0;
    }

    .af-cat .af-cat-archive-bar {
        display: block;
    }

    .af-cat .af-cat-archive-bar > span {
        display: block;
        margin-top: 10px;
    }

    .af-cat .af-cat-guide {
        margin-top: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .af-cat * {
        scroll-behavior: auto !important;
    }
}
