/* ============================================
   licensor.directory - Fairycore Specimen Catalogue
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    line-height: 1.8;
    color: #5B4A3F;
    background-color: #FFF8F0;
    overflow-x: hidden;
}

/* --- Hero / Title Plate --- */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #FFF8F0;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.hero-title {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #5B4A3F;
    letter-spacing: -0.01em;
    transform: scale(0.85);
    opacity: 0;
    animation: heroTitleEnter 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heroTitleEnter {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }
    60% {
        transform: scale(1.03);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-fish {
    margin: 2rem 0 1.5rem;
    display: flex;
    justify-content: center;
}

.fish-svg {
    overflow: visible;
}

.fish-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: fishDraw 1.2s ease-out 0.4s forwards;
}

@keyframes fishDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #9B8B7B;
    letter-spacing: 0.08em;
}

.subtitle-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(6px);
}

.subtitle-word:nth-child(1) {
    animation: wordFadeIn 400ms ease-out 1.8s forwards;
}

.subtitle-word:nth-child(2) {
    animation: wordFadeIn 400ms ease-out 2.0s forwards;
}

.subtitle-word:nth-child(3) {
    animation: wordFadeIn 400ms ease-out 2.2s forwards;
}

@keyframes wordFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Classification Index (Section 2) --- */
.classification {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.section-header {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #5B4A3F;
    text-align: center;
    margin-bottom: 2.5rem;
}

.category-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.category-card {
    background-color: #FFF8F0;
    border: 1px solid #E8DDD2;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(91, 74, 63, 0.06);
    transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(16px);
}

.category-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease-out,
                transform 400ms ease-out;
}

.category-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(91, 74, 63, 0.1);
}

.category-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF8F0;
    border: 1px solid #E8DDD2;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card.visible .category-icon {
    transform: scale(1);
    transition-delay: 200ms;
}

.category-icon svg {
    width: 32px;
    height: 32px;
}

.category-name {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #5B4A3F;
    flex: 1;
}

.category-count {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #9B8B7B;
    background-color: #E8DDD2;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* --- Specimen Grid (Section 3) --- */
.specimens {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.specimen-category {
    margin-bottom: 3.5rem;
}

.specimen-category-header {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #5B4A3F;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.inline-fish {
    flex-shrink: 0;
    opacity: 0.6;
}

.specimen-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.specimen-card {
    width: 240px;
    background-color: #FFFFFF;
    border: 1px solid #E8DDD2;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(91, 74, 63, 0.06);
    transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(8px);
}

.specimen-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.specimen-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(91, 74, 63, 0.1);
}

.specimen-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.specimen-name {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #5B4A3F;
    margin-bottom: 0.25rem;
}

.specimen-desc {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    color: #9B8B7B;
    line-height: 1.6;
}

/* --- Colophon (Footer) --- */
.colophon {
    background-color: #FFF8F0;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    border-top: 1px solid #E8DDD2;
}

.colophon-title {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #C4A6D4;
    margin-bottom: 1.5rem;
}

.colophon-fish {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.fish-flipped {
    transform: scaleX(-1);
}

.colophon-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    color: #9B8B7B;
    letter-spacing: 0.04em;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .classification {
        padding: 2rem 1rem 3rem;
    }

    .specimens {
        padding: 0 1rem 3rem;
    }

    .category-card {
        padding: 1.25rem 1.25rem;
    }

    .specimen-card {
        width: 100%;
        max-width: 280px;
    }

    .specimen-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Accent color utility classes --- */
.accent-peach {
    color: #F0C4A8;
}

.accent-sage {
    color: #A8C4A6;
}

/* --- Decorative divider between sections --- */
.specimens::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #F0C4A8, #A8C4A6);
    margin: 0 auto 3rem;
    border-radius: 1px;
}

/* --- Scroll animation base states handled by JS --- */
.category-card,
.specimen-card {
    will-change: transform, opacity;
}
