/* ===== Reset and Base Styles ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAF7F2;
    color: #3A3530;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    line-height: 1.72;
    overflow-x: hidden;
}

/* ===== Dashboard Container ===== */

main#dashboard {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* ===== Panel Base Styles ===== */

.panel {
    border-radius: 8px;
    padding: 32px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Text Panels */
.text-panel {
    background-color: #F5F0E8;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
}

.text-panel:nth-child(even) {
    background-color: #E8E0D4;
}

/* Shape Panels */
.shape-panel {
    background-color: #FAF7F2;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Quote Panels */
.quote-panel {
    background-color: #D4B896;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 32px;
}

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

.site-title {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #A07850;
    margin-bottom: 16px;
    letter-spacing: 0;
    line-height: 1.2;
}

.site-subtitle {
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: #3A3530;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

.panel-headline {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #3A3530;
    margin-bottom: 16px;
    line-height: 1.3;
}

.panel-body {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: #3A3530;
    line-height: 1.72;
}

.panel-quote {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #3A3530;
    line-height: 1.4;
}

/* ===== Shapes ===== */

.shape {
    position: absolute;
    border: none;
    box-shadow: none;
}

.circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 10px), calc(-50% + 8px));
}

.rectangle {
    width: 120px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 8px), calc(-50% + 10px));
}

.triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 8px), calc(-50% + 12px));
}

/* ===== Scroll Indicator ===== */

#scroll-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 6px;
    height: 6px;
    background-color: #C4956A;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 300ms ease;
    z-index: 100;
    pointer-events: none;
}

#scroll-indicator.visible {
    opacity: 0.3;
}

/* ===== Typewriter Effect ===== */

[data-typewriter="true"] {
    overflow: hidden;
    display: inline-block;
    border-right: 2px solid #3A3530;
}

[data-typewriter="true"].typing-complete {
    border-right: none;
}

/* ===== Hover Effects ===== */

.text-panel {
    transition: all 300ms ease;
}

.text-panel:hover {
    background-color: #E8E0D4;
    transform: translateY(-2px);
}

.text-panel:nth-child(even):hover {
    background-color: #F5F0E8;
}

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

@media (max-width: 768px) {
    main#dashboard {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
        padding: 20px;
    }

    .panel {
        min-height: 180px;
        padding: 24px;
    }

    .circle {
        width: 100px;
        height: 100px;
    }

    .rectangle {
        width: 90px;
        height: 120px;
    }

    .triangle {
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 100px solid;
    }
}

@media (max-width: 480px) {
    main#dashboard {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 8px;
    }

    .panel {
        min-height: 150px;
        padding: 20px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .panel-headline {
        font-size: 1.1rem;
    }

    .panel-body {
        font-size: 0.95rem;
    }

    .panel-quote {
        font-size: 1.1rem;
    }

    .circle {
        width: 80px;
        height: 80px;
    }

    .rectangle {
        width: 70px;
        height: 100px;
    }

    .triangle {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 80px solid;
    }
}

/* ===== Print Styles ===== */

@media print {
    #scroll-indicator,
    #flowing-curves-svg {
        display: none;
    }
}
