/* namu.systems - Goblincore Field Researcher's Specimen Database */
/* Colors: #D4A84C Amber Spore, #EDE8F2 Lichen Lavender, #8FA88E Moss Sage, #C4B8D4 Twilight Mycelium, #F5F2ED Mycelium Cream, #3A4A3E Forest Floor, #1E221E Loam Dark */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    color: #1E221E;
    background-color: #F5F2ED;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Cover ===== */
#cover {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.cover-content {
    max-width: 500px;
    width: 50%;
    min-width: 320px;
    text-align: center;
}

.cover-title {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #1E221E;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.cover-photo {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
}

.photo-placeholder {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.cover-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    color: #3A4A3E;
    letter-spacing: 0.05em;
    min-height: 1.5em;
    margin-bottom: 1.5rem;
}

.cover-date {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8FA88E;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
}

/* ===== Specimens Section ===== */
#specimens {
    padding: 4rem 2rem;
}

/* ===== Specimen Entry ===== */
.specimen-entry {
    max-width: 500px;
    width: 50%;
    min-width: 320px;
    margin: 0 auto 6rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.specimen-entry.revealed {
    opacity: 1;
    transform: translateY(0);
}

.specimen-number {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D4A84C;
    margin-bottom: 1rem;
}

.specimen-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: #1E221E;
    margin-bottom: 0.3rem;
}

.specimen-latin {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.9rem;
    color: #8FA88E;
    margin-bottom: 1.5rem;
}

.specimen-photo {
    margin-bottom: 1.5rem;
}

.specimen-photo svg {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.specimen-text {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    color: #1E221E;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

/* ===== Floating Annotations ===== */
.floating-annotation {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: #C4B8D4;
    position: absolute;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.anno-right {
    right: -120px;
}

.anno-left {
    left: -120px;
}

.specimen-entry.revealed .floating-annotation {
    opacity: 0.7;
}

/* ===== Metadata ===== */
.specimen-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
    background: rgba(237, 232, 242, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(196, 184, 212, 0.3);
}

.meta-item {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    color: #3A4A3E;
}

.meta-key {
    font-weight: 500;
    color: #D4A84C;
    margin-right: 0.5rem;
}

/* ===== Spore Divider ===== */
.divider-spore {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.spore {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D4A84C;
    opacity: 0.4;
}

/* ===== Footer ===== */
#field-close {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, #F5F2ED 0%, #EDE8F2 100%);
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-note {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.95rem;
    color: #3A4A3E;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.footer-domain {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #1E221E;
    margin-bottom: 0.3rem;
}

.footer-hangul {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: #8FA88E;
    opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .floating-annotation {
        position: static;
        margin-bottom: 0.5rem;
        opacity: 0.7;
    }

    .specimen-entry.revealed .floating-annotation {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .cover-content,
    .specimen-entry {
        width: 90%;
        min-width: unset;
    }

    #cover,
    #specimens {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .cover-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
}
