/* Custom Fonts - Optimized for cross-domain compatibility */
@font-face {
    font-family: 'Vinque';
    src: url('../fonts/Vinque-Regular.woff2') format('woff2'),
         url('../fonts/Vinque Rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Linux Libertine';
    src: url('../fonts/LinLibertine-Regular.woff2') format('woff2'),
         url('../fonts/LinLibertine_R.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Linux Libertine';
    src: url('../fonts/LinLibertine-Bold.woff2') format('woff2'),
         url('../fonts/LinLibertine_RB.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Linux Libertine';
    src: url('../fonts/LinLibertine-Italic.woff2') format('woff2'),
         url('../fonts/LinLibertine_RI.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Linux Libertine';
    src: url('../fonts/LinLibertine-BoldItalic.woff2') format('woff2'),
         url('../fonts/LinLibertine_RBI.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

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

body {
    font-family: 'Linux Libertine', Georgia, serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
}

/* Typography hierarchy */
h1 {
    font-family: 'Vinque', serif;
    font-size: 30px;
    font-weight: normal;
    line-height: 1.2;
}

h2 {
    font-family: 'Vinque', serif;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.3;
}

h3 {
    font-family: 'Linux Libertine', Georgia, serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
}

p {
    font-family: 'Linux Libertine', Georgia, serif;
    font-size: 14px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main content area */
main {
    margin-left: 250px;
    flex: 1;
}

/* Sidebar styles */
header {
    background-color: #fff;
    border-right: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    max-width: none;
    margin: 0;
}

.logo {
    text-decoration: none;
    color: #333;
    margin-bottom: 15px;
}

.logo h1 {
    font-family: 'Vinque', serif;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.main-nav a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #333;
}

/* Hero section */
.hero {
    padding: 80px 0;
    text-align: center;
    background-color: #fafafa;
}

.hero h2 {
    font-family: 'Vinque', serif;
    font-size: 30px;
    font-weight: normal;
    margin-bottom: 20px;
    color: #333;
}

.hero p {
    font-family: 'Linux Libertine', Georgia, serif;
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio styles */
.portfolio {
    padding: 60px 0;
}

.portfolio h2 {
    font-family: 'Vinque', serif;
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 40px;
}

.category-nav {
    text-align: center;
    margin-bottom: 40px;
}

.category-nav ul {
    list-style: none;
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.category-link:hover,
.category-link.active {
    color: #333;
    border-color: #333;
}

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

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Shop styles */
.shop {
    padding: 60px 0;
}

.shop h2 {
    font-family: 'Vinque', serif;
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 40px;
}

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

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

.price {
    font-size: 20px;
    font-weight: 300;
    color: #333;
    margin-bottom: 15px;
}

.add-to-cart {
    font-family: 'Linux Libertine', Georgia, serif;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #555;
}

/* Bio styles */
.bio {
    padding: 60px 0;
}

.bio h2 {
    font-family: 'Vinque', serif;
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 40px;
}

.bio-text {
    font-family: 'Linux Libertine', Georgia, serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.bio-text p {
    margin-bottom: 15px;
}

/* Contact styles */
.contact {
    padding: 60px 0;
}

.contact h2 {
    font-family: 'Vinque', serif;
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 40px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
}

.contact-info p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.submit-btn {
    font-family: 'Linux Libertine', Georgia, serif;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #555;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.form-message.success {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-message.error {
    background-color: #ffeaea;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    main {
        margin-left: 0;
    }

    header .container {
        padding: 20px;
    }

    .main-nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .main-nav ul {
        gap: 12px;
    }

    .category-nav ul {
        gap: 10px;
    }
    
    .category-link {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .portfolio,
    .shop,
    .contact {
        padding: 40px 0;
    }
    
    .gallery,
    .products-grid {
        grid-template-columns: 1fr;
    }
}