/* Maximalist Classless CSS Framework */

:root {
    --primary: #8b0000;
    --primary-light: #dc143c;
    --secondary: #ffd700;
    --accent-purple: #6f4ba3;
    --accent-teal: #008080;
    --text: #1a1a1a;
    --text-secondary: #4a4a4a;
    --bg: #fff8e7;
    --bg-secondary: #fffaf0;
    --border: #8b0000;
    --max-width: 900px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.9;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b0000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.selector-container {
    background-color: var(--bg-secondary);
    border: 5px double var(--primary);
    color: var(--text);
    border-radius: 0;
    box-shadow:
        0 0 0 8px var(--secondary),
        0 0 0 13px var(--primary),
        0 10px 30px rgba(0, 0, 0, 0.15);
}

.selector-container h2 {
    color: var(--primary);
    border-bottom: 4px solid var(--secondary);
    padding-bottom: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.selector-container h2::before {
    content: '✦ ';
    color: var(--secondary);
}

.selector-container h2::after {
    content: ' ✦';
    color: var(--secondary);
}

.selector-container label {
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.selector-container select {
    background-color: var(--bg-secondary);
    color: var(--text);
    border: 3px solid var(--secondary);
    border-radius: 0;
    font-weight: 600;
}

.selector-container select:focus {
    border-color: var(--accent-purple);
    outline: none;
    background-color: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.status {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.05), rgba(255, 215, 0, 0.05));
    border-left: 5px solid var(--secondary);
    color: var(--text);
    border-radius: 0;
}

.demo-content {
    background-color: var(--bg-secondary);
    border: 5px double var(--primary);
    padding: 2rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    border-radius: 0;
    box-shadow:
        0 0 0 8px var(--secondary),
        0 0 0 13px var(--primary),
        0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.demo-content::before {
    content: '◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.demo-content::after {
    content: '◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆ ◇ ◆';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.75rem 0 1rem;
    color: var(--primary);
}

h1 {
    font-size: 2.8rem;
    margin-top: 0;
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
    padding: 1rem 0;
    text-align: center;
}

h1::before { content: '❖ '; }
h1::after { content: ' ❖'; }

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-teal);
}

h3::before { content: '❦ '; }

h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--secondary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-teal);
    border-bottom-color: var(--accent-teal);
    text-shadow: 0 0 10px rgba(0, 128, 128, 0.2);
}

strong, b {
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(120deg, transparent 0%, rgba(255, 215, 0, 0.3) 100%);
    padding: 2px 6px;
}

em, i {
    font-style: italic;
    color: var(--accent-purple);
    font-weight: 600;
}

small {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

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

ul li::marker {
    color: var(--secondary);
    font-size: 1.3em;
}

li {
    margin: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: white;
    border: 3px solid var(--secondary);
    cursor: pointer;
    margin: 1.25rem 0.75rem 1.25rem 0;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
    border-color: var(--accent-teal);
}

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

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

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .selector-container,
    .demo-content {
        box-shadow: 0 0 0 3px var(--secondary), 0 0 0 6px var(--primary);
    }

    .demo-content::before,
    .demo-content::after {
        display: none;
    }
}
