/* Elegant Classic Classless CSS Framework - Optimized */

:root {
    --primary: #2c3e50;
    --primary-light: #34495e;
    --accent: #8b6f47;
    --accent-light: #a58a6a;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #fdfbf7;
    --bg-secondary: #f8f6f2;
    --border: #d4cfc5;
    --max-width: 900px;
}

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

html {
    font-size: 18px;
}

body {
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--bg);
}

.selector-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
}

.selector-container h2 {
    color: var(--primary);
    border-bottom: none;
    padding-bottom: 0;
}

.selector-container label {
    color: var(--text);
}

.selector-container select {
    background-color: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.selector-container select:focus {
    border-color: var(--primary);
    outline: none;
}

.status {
    background-color: var(--bg-secondary);
    border-left-color: var(--accent);
    color: var(--text);
}

.demo-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Didot', 'Bodoni MT', 'Cochin', 'Baskerville', 'Goudy Old Style', 'Garamond', serif;
    line-height: 1.3;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent);
    margin: 1rem auto;
}

h2 {
    font-size: 2.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1.75rem;
    font-style: italic;
}

h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

a:visited {
    color: var(--primary-light);
}

strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

small {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Lists */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 3rem;
}

li {
    margin: 0.75rem 0;
}

/* Forms */
select, button {
    font-family: inherit;
    font-size: 1rem;
}

select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    transition: border-color 0.3s, box-shadow 0.3s;
    margin: 0.75rem 0;
    border-radius: 2px;
}

select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(139, 111, 71, 0.1);
}

button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary);
    color: var(--bg);
    border: 1px solid var(--primary);
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin: 1rem 1rem 1rem 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

button:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Utilities */
[hidden] {
    display: none !important;
}

/* Selection */
::selection {
    background-color: var(--accent-light);
    color: var(--bg);
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    body {
        padding: 2rem 1rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
}
