/* lungless.dev — Specimen Collection */

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

:root {
    --vellum-cream: #f5f0e8;
    --warm-linen: #ede6d8;
    --specimen-black: #2a2320;
    --salamander-burgundy: #6b2137;
    --lichen-sage: #7a8c72;
    --parchment-edge: #d4c5b3;
    --amber-glow: #c9943e;
}

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

body {
    background-color: var(--vellum-cream);
    color: var(--specimen-black);
    font-family: 'Lora', serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--warm-linen);
}
::-webkit-scrollbar-thumb {
    background: var(--parchment-edge);
}

/* Grid Layout */
.specimen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--vellum-cream);
    border: 1px solid var(--parchment-edge);
    padding: 28px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                clip-path 0.25s ease;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 0 100%);
    border-color: var(--salamander-burgundy);
}

/* Card variants */
.card-title {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: var(--salamander-burgundy);
    border-color: var(--salamander-burgundy);
}

.card-title .site-title {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--vellum-cream);
    transform: skewX(-4deg);
    margin-bottom: 16px;
}

.card-title .subtitle {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--lichen-sage);
}

.card-title .title-illustration {
    width: 320px;
    max-width: 80%;
    height: 80px;
    margin: 20px auto;
    display: block;
}

.card-title:hover {
    border-color: var(--amber-glow);
}

.card-wide {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

/* Card label */
.card-label {
    display: inline-block;
    font-family: 'Inconsolata', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--salamander-burgundy);
    color: var(--vellum-cream);
    padding: 2px 10px;
    transform: skewX(-8deg);
    margin-bottom: 12px;
}

/* Concept cards */
.card-concept h2 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--specimen-black);
    margin-bottom: 12px;
}

.card-concept p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--specimen-black);
    margin-bottom: 10px;
}

.card-concept .card-illustration {
    width: 100%;
    height: 60px;
    margin-top: 12px;
}

/* Illustration cards */
.card-illustration {
    padding: 20px;
    background: var(--warm-linen);
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-illustration {
    width: 100%;
    height: auto;
    max-height: 200px;
}

/* Data cards */
.card-data {
    background: var(--warm-linen);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.data-number {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 3rem;
    color: var(--salamander-burgundy);
    line-height: 1;
}

.data-unit {
    font-family: 'Inconsolata', monospace;
    font-size: 0.85rem;
    color: var(--lichen-sage);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.data-label {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--specimen-black);
    margin-top: 8px;
}

/* Quote card */
.card-quote {
    background: var(--vellum-cream);
    display: flex;
    align-items: center;
    padding: 40px;
}

.card-quote blockquote p {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--specimen-black);
    margin-bottom: 12px;
}

.card-quote cite {
    font-family: 'Inconsolata', monospace;
    font-size: 0.8rem;
    color: var(--lichen-sage);
    font-style: normal;
}

/* Breathing row */
.breathing-row {
    grid-column: 1 / -1;
    height: 40px;
}

/* SVG draw animation */
.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.draw-path.drawn {
    stroke-dashoffset: 0;
}

.draw-path-slow {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2.5s ease-in-out;
}

.draw-path-slow.drawn {
    stroke-dashoffset: 0;
}

/* Field Notes Column */
.field-notes {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100vh;
    background: var(--warm-linen);
    border-left: 1px solid var(--parchment-edge);
    padding: 30px 16px;
    overflow-y: auto;
    display: none;
}

.field-notes-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--salamander-burgundy);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.marginalia {
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--specimen-black);
    margin-bottom: 16px;
    opacity: 0.8;
}

.field-notes-illustration {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
}

/* Desktop: show field notes */
@media (min-width: 1024px) {
    .field-notes {
        display: block;
    }
    .specimen-grid {
        margin-right: 200px;
    }
}

/* Tablet */
@media (max-width: 1023px) {
    .specimen-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .specimen-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 14px;
    }
    .card-wide {
        grid-column: span 1;
    }
    .card-tall {
        grid-row: span 1;
    }
    .card-title .site-title {
        font-size: 2.5rem;
    }
    .card-quote blockquote p {
        font-size: 1.1rem;
    }
}
