:root {
    /* Color Palette defined in the plan */
    --primary-color: #0d1b2a;
    --secondary-color: #014F86;
    --accent-bg: #A9D6E5;
    --text-color: #212529;
    --card-bg: #ffffff;
    --bg-color: #f0f4f8;
    
    /* Typography defined in the plan */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- Header Styling (Using scheme colors) --- */
header {
    background-color: var(--accent-bg);
    color: var(--primary-color);
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

header h1 {
    font-family: var(--heading-font);
    margin: 0;
    font-size: 2.5rem;
}

header h2 {
    font-family: var(--heading-font);
    margin: 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 400;
}

/* --- Main Layout --- */
main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- Cards for Sections --- */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 5px solid var(--secondary-color);
}

h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.highlight-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Scenarios List --- */
.scenarios-list li {
    margin-bottom: 0.8rem;
}

/* --- Color Palette Styling --- */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.color-swatch {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.swatch-box {
    height: 80px;
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.swatch-info {
    padding: 1rem;
    font-size: 0.9rem;
}

.swatch-info .hex {
    display: block;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.1rem;
}

.swatch-info .name {
    display: block;
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.swatch-info .usage {
    margin: 0;
    font-size: 0.85rem;
}

/* --- Typography Styling --- */
.typography-example {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .typography-example {
        grid-template-columns: 1fr 1fr;
    }
}

.font-group h4 {
    margin-top: 0;
    color: var(--secondary-color);
}

.font-spec-header {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.font-spec-body {
    font-family: var(--body-font);
    font-size: 1rem;
}

.usage-note {
    font-size: 0.9rem;
    color: #555;
    background-color: #f9f9f9;
    padding: 0.5rem;
    border-left: 3px solid var(--secondary-color);
}

/* --- Wireframe Styling --- */
.wireframe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    text-align: center;
}

.wireframe-box {
    flex: 1 1 300px;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
}

.wireframe-box img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: #ffffff;
    margin-top: 3rem;
}