/* ==========================================================
   CLAUDIA'S STUDIO
   Main Stylesheet
   ========================================================== */



/* ==========================================================
   1. Colour Palette
   ========================================================== */

:root{

    --paper:#EDE0D4;
    --cream:#E6CCB2;
    --sand:#DDB892;
    --tan:#B08968;
    --wood:#9C6644;
    --dark:#7F5539;

}



/* ==========================================================
   2. Global Styles
   ========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    background:var(--paper);
    font-family:Quicksand,sans-serif;
    color:var(--dark);
    position:relative;

}

.container{

    width:90%;
    max-width:1200px;
    margin:auto;

}



/* ==========================================================
   3. Typography
   ========================================================== */

h2{

    font-family:"Cormorant Garamond",serif;
    font-size:2.5rem;
    margin-bottom:25px;

}



/* ==========================================================
   4. Header
   ========================================================== */

header{

    padding:70px 20px;
    text-align:center;

}

header h1{

    font-family:"Cormorant Garamond",serif;
    font-size:4rem;
    letter-spacing:2px;

}

header p{

    margin-top:15px;
    font-size:1.2rem;
    color:var(--wood);

}



/* ==========================================================
   5. Navigation
   ========================================================== */

nav{

    background:var(--dark);
    position:sticky;
    top:0;
    z-index:100;

}

nav ul{

    display:flex;
    justify-content:center;
    list-style:none;

}

nav li{

    padding:18px 35px;

}

nav a{

    text-decoration:none;
    color:var(--paper);
    font-weight:600;
    transition:.3s;

}

nav a:hover{

    color:var(--cream);

}



/* ==========================================================
   6. Cards & Sections
   ========================================================== */

section{

    margin:70px 0;

}

.card{

    background:#f7f1eb;
    padding:35px;
    border-radius:18px;
    box-shadow:0 12px 25px rgba(0,0,0,.08);

}



/* ==========================================================
   7. Home Page
   ========================================================== */

.about{

    display:grid;
    grid-template-columns:300px 1fr;
    gap:40px;
    align-items:center;

}

.about img{

    width:100%;
    border-radius:16px;
    object-fit:cover;

}



/* Recent projects */

.gallery{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;

}

.post{

    background:white;
    border-radius:15px;
    overflow:hidden;
    transition:.3s;
    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.post:hover{

    transform:translateY(-6px);

}

.post img{

    width:100%;
    height:220px;
    object-fit:cover;

}

.post-content{

    padding:20px;

}

.post h3{

    font-family:"Cormorant Garamond",serif;
    font-size:1.8rem;
    margin-bottom:10px;

}

.post p{

    line-height:1.7;

}



/* ==========================================================
   8. Gallery Page
   ========================================================== */

.gallery-note{

    max-width:700px;
    margin:40px auto 50px;
    padding:18px 24px;

    background:#f7f1eb;

    border-left:5px solid var(--tan);

    border-radius:12px;

    color:var(--wood);

    font-style:italic;

    text-align:center;

    box-shadow:0 8px 20px rgba(0,0,0,.06);

}

.gallery-entry{

    display:grid;
    grid-template-columns:350px 1fr;

    gap:40px;

    align-items:center;

    margin:60px auto;

    max-width:1000px;

    background:#f7f1eb;

    padding:30px;

    border-radius:18px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.gallery-entry img{

    width:100%;

    border-radius:16px;

    object-fit:cover;

    cursor:pointer;

    transition:.35s;

}

.gallery-entry img:hover{

    transform:scale(1.03);

}

.gallery-text{

    display:flex;
    flex-direction:column;
    justify-content:center;

}

.gallery-text h3{

    font-family:"Cormorant Garamond",serif;
    font-size:2rem;
    margin-bottom:15px;

}

.gallery-text p{

    line-height:1.8;

}



/* Click to reveal description */

.info{

    display:none;

}

.info.open{

    display:flex;
    flex-direction:column;

}



/* ================================
   CROCHET PATTERNS
================================ */

.crochet-patterns {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
}

.crochet-post {
    background: #f7f1eb;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    text-align: center;
}

.crochet-post h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 25px;
}

.crochet-post img {
    display: block;
    width: 100%;
    max-width: 750px;
    max-height: 600px;
    object-fit: contain;
    margin: 0 auto 30px auto;
    border-radius: 14px;
}

.crochet-description {
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

.crochet-description p {
    line-height: 1.8;
    margin-bottom: 15px;
}



/* ==========================================================
   9. Projects Page
   ========================================================== */

.projects-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;

}

.project-card{

    background:#f7f1eb;

    padding:30px;

    border-radius:18px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.project-card:hover{

    transform:translateY(-6px);

}

.project-card h3{

    font-family:"Cormorant Garamond",serif;
    font-size:2rem;

    margin-bottom:15px;

}

.project-card p{

    line-height:1.8;

    margin-bottom:20px;

}

.project-card a{

    text-decoration:none;

    color:var(--wood);

    font-weight:600;

}

.project-card a:hover{

    color:var(--tan);

}



/* ==========================================================
   10. Buttons
   ========================================================== */

button{

    margin-top:15px;

    padding:10px 18px;

    background:var(--tan);

    border:none;

    border-radius:8px;

    color:white;

    cursor:pointer;

    font-family:inherit;

}

button:hover{

    background:var(--wood);

}



/* ==========================================================
   11. Footer
   ========================================================== */

footer{

    margin-top:80px;

    padding:50px;

    text-align:center;

    background:var(--dark);

    color:var(--paper);

}



/* ==========================================================
   12. Falling Leaves
   ========================================================== */

#leafCanvas{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    pointer-events:none;

    z-index:0;

}

header,
nav,
.container,
.gallery-entry,
footer{

    position:relative;

    z-index:10;

}



/* ==========================================================
   13. Responsive Design
   ========================================================== */

@media(max-width:800px){

    .about{

        grid-template-columns:1fr;

    }

    .gallery-entry{

        grid-template-columns:1fr;

    }

    header h1{

        font-size:3rem;

    }

}

/* ================================
   CROCHET PATTERN POSTS
================================ */

.crochet-patterns {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.crochet-post {
    background: #f7f1eb;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    
    text-align: center;
}

.crochet-post h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 25px;
}

.crochet-post img {
    display: block;
    width: 100%;
    max-width: 750px;
    max-height: 600px;
    object-fit: contain;
    margin: 0 auto 30px auto;
    border-radius: 14px;
}

.crochet-description {
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

.crochet-description p {
    line-height: 1.8;
    margin-bottom: 15px;
}