/* recycle.studio - Styles */

/* Typography Specification: Cormorant 600/700, Work Sans 400/500, Space Grotesk 500 */

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

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAF6F0;
    color: #6B4F3A;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.65;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant', serif;
    line-height: 1.2;
    color: #8B5E3C;
}

/* Hero Section */
.hero {
    background-color: #FAF6F0;
    padding: 6rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 700;
    color: #8B5E3C;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: #6B4F3A;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.65;
}

.featured-showcase {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    background-color: #F0E8DA;
    padding: 2rem;
    border-radius: 24px;
}

.featured-thumb {
    width: 160px;
    height: 120px;
    background: linear-gradient(135deg, #D4B896 0%, #8B5E3C 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.featured-info {
    flex: 1;
}

.featured-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8B5E3C;
    margin-bottom: 0.5rem;
}

.featured-by {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #C4714E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terracotta-divider {
    height: 2px;
    background-color: #C4714E;
    margin-top: 1.5rem;
}

/* Section Container */
.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: #8B5E3C;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
    background-color: #FAF6F0;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background-color: #F0E8DA;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.project-card.tilt-neg {
    transform: rotate(-1deg);
}

.project-card.tilt-pos {
    transform: rotate(1deg);
}

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

.card-short {
    grid-row: span 1;
}

.project-thumb {
    width: 100%;
    background: linear-gradient(135deg, #D4B896 0%, #C4714E 100%);
    border-radius: 4px;
}

.project-thumb.tall {
    height: 240px;
}

.project-thumb.short {
    height: 120px;
}

.project-meta {
    padding: 1rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8B5E3C;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.material-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1.5px solid;
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.material-tag.wood {
    border-color: #D4B896;
    color: #8B5E3C;
    background-color: rgba(212, 184, 150, 0.1);
}

.material-tag.fabric {
    border-color: #C4714E;
    color: #C4714E;
    background-color: rgba(196, 113, 78, 0.1);
}

.material-tag.glass {
    border-color: #3D7C5F;
    color: #3D7C5F;
    background-color: rgba(61, 124, 95, 0.1);
}

.material-tag.metal {
    border-color: #8B5E3C;
    color: #8B5E3C;
    background-color: rgba(139, 94, 60, 0.1);
}

.material-tag.textile {
    border-color: #6B4F3A;
    color: #6B4F3A;
    background-color: rgba(107, 79, 58, 0.1);
}

.material-tag.plastic {
    border-color: #2E2E2E;
    color: #2E2E2E;
    background-color: rgba(46, 46, 46, 0.05);
}

.maker-credit {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    color: #6B4F3A;
    font-weight: 400;
}

/* Materials Section */
.materials-section {
    padding: 4rem 0;
    background-color: #F0E8DA;
}

.materials-nav {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.material-anchor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.material-anchor:hover {
    transform: scale(1.05);
}

.material-dot {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.material-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8B5E3C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Workbench Divider */
.workbench-divider {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #C4714E 0px,
        #C4714E 12px,
        transparent 12px,
        transparent 24px
    );
    margin: 3rem 0;
}

/* Tutorials Section */
.tutorials-section {
    padding: 4rem 0;
    background-color: #FAF6F0;
}

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

.tutorial-card {
    display: flex;
    gap: 1.5rem;
    background-color: #F0E8DA;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-2px);
}

.tutorial-number {
    font-family: 'Cormorant', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #D4B896;
    min-width: 50px;
    line-height: 1;
}

.tutorial-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tutorial-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8B5E3C;
    margin-bottom: 0.5rem;
}

.tutorial-details {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6B4F3A;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Footer Section */
.footer-section {
    background-color: #2E2E2E;
    color: #FAF6F0;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 2px solid #C4714E;
}

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

.footer-cta {
    font-size: 1.6rem;
    font-weight: 700;
    color: #C4714E;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #F0E8DA;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .featured-showcase {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 4rem 1.5rem 2rem;
    }

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

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .project-thumb.tall,
    .project-thumb.short {
        height: 120px;
    }

    .materials-nav {
        justify-content: center;
    }

    .material-dot {
        width: 64px;
        height: 64px;
    }

    .tutorial-grid {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: 1.3rem;
    }
}

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

.hero,
.projects-section,
.materials-section,
.tutorials-section,
.footer-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.projects-section {
    animation-delay: 0.1s;
}

.materials-section {
    animation-delay: 0.2s;
}

.tutorials-section {
    animation-delay: 0.3s;
}

.footer-section {
    animation-delay: 0.4s;
}
