/* Catppuccin Latte Color Palette */
:root {
    --base: #eff1f5;
    --mantle: #e6e9ef;
    --crust: #dce0e8;
    --text: #4c4f69;
    --subtext1: #5c5f77;
    --subtext0: #6c6f85;
    --surface0: #ccd0da;
    --surface1: #bcc0cc;
    --surface2: #acb0be;
    --overlay0: #7c7f93;
    --blue: #1e66f5;
    --lavender: #7287fd;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--base);
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
.nav {
    background-color: var(--mantle);
    border-bottom: 1px solid var(--surface0);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--subtext1);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

/* Main Content */
.main {
    min-height: calc(100vh - 80px);
    padding: 3rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.subtitle {
    font-size: 1rem;
    color: var(--subtext1);
    font-weight: 400;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Pedal Card */
.pedal-card {
    background-color: var(--mantle);
    border: 1px solid var(--surface0);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.pedal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 79, 105, 0.1);
}

.pedal-images {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--crust);
}

.pedal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s;
}

.pedal-image.guts {
    opacity: 0;
}

.pedal-card:hover .pedal-image.front {
    opacity: 0;
}

.pedal-card:hover .pedal-image.guts {
    opacity: 1;
}

.pedal-info {
    padding: 1rem;
}

.pedal-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.pedal-based-on {
    font-size: 0.85rem;
    color: var(--subtext1);
    font-weight: 400;
}

/* Content Pages */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text);
}

.content-page p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.content-page a {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.content-page a:hover {
    border-bottom-color: var(--blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 1rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .content-page h1 {
        font-size: 1.5rem;
    }
}

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