/* ============================================================
   parallengine.com - Flat-Design Digital Herbarium
   ============================================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background-color: #EDE4D3;
    color: #2A2520;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   Color Palette (Exact values from DESIGN.md)
   ============================================================ */

:root {
    --color-botanical-green: #5C7A5C;
    --color-cream: #EDE4D3;
    --color-herbarium-gold: #B8983E;
    --color-gold-accent: #C4A86A;
    --color-gold-muted: #9C8550;
    --color-bookplate-black: #2A2520;
    --color-taupe: #7A7268;
    --color-off-white: #F5F0E8;
}

/* ============================================================
   Typography
   ============================================================ */

/* Display / Domain Name - Playfair Display */
.domain-name {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: -0.02em;
    color: #2A2520;
    line-height: 1;
}

/* Section Titles - Playfair Display */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: -0.01em;
    color: #2A2520;
    margin-bottom: 2rem;
}

/* Body Text - Lora */
body, p, li, a {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1.1rem;
}

/* Headings - Lora with weight variation */
h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* Accent text - IBM Plex Mono for technical/scholarly feel */
.monospace-accent {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================================
   Layout: Stacked Sections
   ============================================================ */

.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.section-wrapper {
    max-width: 1200px;
    width: 100%;
}

/* Section I: Title Page */
.section-title {
    background-color: #EDE4D3;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 6rem;
}

.header {
    width: 100%;
    margin-bottom: 4rem;
}

.decorative-rule {
    width: 100%;
    height: 2px;
    background-color: #2A2520;
    margin-top: 1rem;
}

.title-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0.5rem 0;
    color: #2A2520;
}

.subtitle-sub {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    margin-top: 1rem;
    color: #7A7268;
}

/* Section II: Botanical Gallery */
.section-botanical {
    background-color: #F5F0E8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.specimen-card {
    background-color: #EDE4D3;
    border: 2px solid #2A2520;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.specimen-card:hover {
    transform: translateY(-8px);
}

.specimen-illustration {
    width: 100%;
    max-width: 200px;
    height: 250px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.botanical-svg {
    width: 100%;
    height: 100%;
    stroke: #2A2520;
}

.specimen-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2A2520;
    margin-bottom: 0.5rem;
}

.specimen-text {
    font-size: 1rem;
    color: #7A7268;
    line-height: 1.5;
}

/* Section III: Historical Context */
.section-history {
    background-color: #EDE4D3;
}

.history-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.history-block {
    border-left: 4px solid #5C7A5C;
    padding-left: 2rem;
}

.history-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2A2520;
    margin-bottom: 1rem;
}

.history-block p {
    color: #7A7268;
    line-height: 1.7;
    font-size: 1rem;
}

/* Section IV: Interactive Tilt Gallery */
.section-tilt {
    background-color: #F5F0E8;
}

.section-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #7A7268;
    text-align: center;
    margin-bottom: 3rem;
}

.tilt-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tilt-card {
    background-color: #EDE4D3;
    border: 2px solid #2A2520;
    padding: 2.5rem 2rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.tilt-card:hover {
    box-shadow: 0 8px 16px rgba(42, 37, 32, 0.1);
}

.card-content {
    text-align: center;
}

.card-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2A2520;
    margin-bottom: 1rem;
}

.card-content p {
    color: #7A7268;
    font-size: 0.95rem;
}

/* Section V: Closing Folio */
.section-closing {
    background-color: #EDE4D3;
    padding: 6rem 2rem;
}

.closing-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.closing-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: #2A2520;
}

.closing-text {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: #5C7A5C;
    margin-bottom: 1rem;
    font-weight: 500;
}

.closing-credit {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #7A7268;
    margin-bottom: 3rem;
    font-style: italic;
}

.closing-footer {
    border-top: 2px solid #2A2520;
    padding-top: 2rem;
    margin-top: 2rem;
}

.closing-footer p {
    font-size: 0.9rem;
    color: #7A7268;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tilt-gallery {
        grid-template-columns: 1fr;
    }

    .domain-name {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .history-content {
        grid-template-columns: 1fr;
    }

    .closing-title {
        font-size: 2rem;
    }
}

/* ============================================================
   Animation and Transition
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specimen-card, .history-block, .tilt-card {
    animation: fadeInUp 0.6s ease forwards;
}

.specimen-card:nth-child(2) {
    animation-delay: 0.1s;
}

.specimen-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Smooth transitions */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #5C7A5C;
}

/* ============================================================
   Flat Design: No Shadows, No Gradients
   ============================================================ */

/* All elements maintain flat, matte surfaces */
.specimen-card, .tilt-card {
    box-shadow: none;
    background: flat color only
}

/* Ensure all strokes are crisp */
svg {
    shape-rendering: crispEdges;
}
