/* Style Guide Specific Styles */

.style-guide-main {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.style-guide-main h1 {
    font-family: var(--font-family-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.sg-section {
    margin-bottom: 4rem;
}

.sg-section h2 {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Color Grid */
.sg-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
}

.sg-color-swatch .swatch {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.sg-color-swatch p {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.sg-color-swatch code {
    font-family: monospace;
    background-color: var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--secondary-text-color);
}

/* Typography Specimen */
.sg-type-specimen {
    margin-bottom: 2rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.sg-font-label {
    font-family: var(--font-family-main);
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.sg-type-specimen h1, 
.sg-type-specimen h2, 
.sg-type-specimen h3 {
    margin-bottom: 1rem;
}

/* UI Elements */
.sg-element-container {
    margin-bottom: 3rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.sg-element-container h3 {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Make sure the elements in the style guide are not interactive where it doesn't make sense */
.sg-element-container .site-header {
    position: static;
    width: auto;
}

.sg-element-container .project-card {
    max-width: 400px;
}
