.pet-page {
    --pet-pop: var(--accent);
}

.pet-page-tai {
    --pet-pop: #89a78d;
}

.pet-page-po {
    --pet-pop: #d88a53;
}

.pet-page .page-shell {
    width: min(calc(100% - 2rem), 980px);
}

.pet-main {
    display: grid;
    gap: 1.5rem;
}

.pet-hero,
.pet-card,
.pet-portrait {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pet-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.25rem;
    padding: 1.5rem;
}

.pet-copy {
    display: grid;
    align-content: start;
    gap: 0.9rem;
}

.pet-copy .section-label,
.pet-card .section-label {
    color: var(--pet-pop);
}

.pet-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 7vw, 4.3rem);
    line-height: 0.95;
}

.pet-lede {
    max-width: 38ch;
    font-size: 1.08rem;
    color: var(--ink);
}

.pet-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    list-style: none;
}

.pet-badges li {
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line-strong);
    border: 1px solid color-mix(in srgb, var(--pet-pop) 30%, var(--line));
    border-radius: 999px;
    background: var(--surface-strong);
    background: color-mix(in srgb, var(--pet-pop) 12%, var(--surface-strong));
    color: var(--muted);
    font-family: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, monospace;
    font-size: 0.84rem;
}

.pet-mini-note {
    max-width: 42ch;
    color: var(--muted);
}

.pet-portrait {
    padding: 0.95rem;
}

.pet-portrait img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: calc(var(--radius-sm) - 2px);
}

.pet-portrait figcaption {
    margin-top: 0.75rem;
    color: var(--muted);
    font-family: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pet-card {
    padding: 1.35rem;
}

.pet-card h2 {
    max-width: 16ch;
    margin: 0.45rem 0 0.7rem;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    line-height: 1.02;
}

.pet-card p {
    color: var(--muted);
}

.pet-card a {
    text-decoration: none;
}

.pet-footer {
    padding-top: 1rem;
}

@media (max-width: 820px) {
    .pet-hero,
    .pet-grid {
        grid-template-columns: 1fr;
    }

    .pet-copy h1 {
        max-width: 11ch;
    }
}

@media (max-width: 680px) {
    .pet-page .page-shell {
        width: min(calc(100% - 1rem), 980px);
    }

    .pet-hero,
    .pet-card,
    .pet-portrait {
        border-radius: 22px;
    }

    .pet-hero,
    .pet-card {
        padding: 1.2rem;
    }
}
