/* Bauhaus - Design principles and geometric forms */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

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

:root {
    --red: #e53935;
    --yellow: #fdd835;
    --blue: #1976d2;
    --black: #1a1a1a;
    --white: #fafafa;
    --gray: #9e9e9e;
}

body {
    min-height: 100vh;
    background: var(--white);
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
    color: var(--black);
}

.canvas {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 4px solid var(--black);
}

.header h1 {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-left: 0.3em;
}

.year {
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    margin-top: 1rem;
    color: var(--gray);
}

/* Shapes Section */
.shapes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 8vw, 6rem);
    padding: 4rem 0;
}

.shape {
    width: clamp(60px, 15vw, 120px);
    height: clamp(60px, 15vw, 120px);
}

.circle {
    background: var(--blue);
    border-radius: 50%;
}

.triangle {
    width: 0;
    height: 0;
    border-left: clamp(30px, 7.5vw, 60px) solid transparent;
    border-right: clamp(30px, 7.5vw, 60px) solid transparent;
    border-bottom: clamp(60px, 15vw, 120px) solid var(--yellow);
}

.square {
    background: var(--red);
}

/* Principles */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
}

.principle {
    text-align: center;
    padding: 2rem 1rem;
}

.icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
}

.icon-circle {
    background: var(--blue);
    border-radius: 50%;
}

.icon-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid var(--yellow);
}

.icon-square {
    background: var(--red);
}

.principle h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.principle p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
}

/* Quote Section */
.quote-section {
    padding: 4rem 2rem;
    background: var(--black);
    color: var(--white);
    margin: 3rem -2rem;
}

blockquote {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

cite {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-style: normal;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
}

/* Grid Display */
.grid-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 3rem 0;
}

.grid-item {
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.grid-item.red { background: var(--red); }
.grid-item.yellow { background: var(--yellow); }
.grid-item.blue { background: var(--blue); }
.grid-item.black { background: var(--black); }

@media (hover: hover) {
    .grid-item:hover {
        transform: scale(1.05);
        z-index: 1;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 4px solid var(--black);
}

footer p {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--black);
    border-radius: 50%;
    display: inline-block;
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .shapes .circle {
        animation: rotate 20s linear infinite;
    }
}

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

    .quote-section {
        margin: 2rem -1rem;
        padding: 3rem 1.5rem;
    }

    .principles {
        gap: 1rem;
    }

    .principle {
        padding: 1.5rem 0.5rem;
    }
}
