/* Brutal/Brutalist Classless CSS Framework - Optimized */

:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #ff0000;
    --bg: #ffffff;
    --text: #000000;
    --border: #000000;
    --border-thick: 5px;
    --max-width: 1200px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
    line-height: 1.4;
    color: var(--text);
    background-color: var(--bg);
}

.selector-container {
    background-color: var(--secondary);
    border: var(--border-thick) solid var(--primary);
    color: var(--text);
}

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

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

.selector-container select {
    background-color: var(--secondary);
    color: var(--text);
    border: var(--border-thick) solid var(--primary);
}

.selector-container select:focus {
    outline: none;
    box-shadow: 0 0 10px var(--accent);
}

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

.status small,
.status em {
    color: var(--secondary);
}

.status strong {
    color: var(--secondary);
}

.status a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.status a:hover {
    background-color: var(--accent);
    color: var(--secondary);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 900;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    border: var(--border-thick) solid var(--primary);
    padding: 1rem;
    background-color: var(--primary);
    color: var(--secondary);
    transform: rotate(-1deg);
}

h1 {
    font-size: 3rem;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: 2.5rem;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2);
}

h3 {
    font-size: 2rem;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

h4 {
    font-size: 1.75rem;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

h5 {
    font-size: 1.5rem;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

h6 {
    font-size: 1.25rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 2px;
    transition: all 0.1s;
}

a:hover {
    background-color: var(--accent);
    color: var(--secondary);
    border-bottom-color: var(--accent);
    padding: 2px 4px;
}

/* Link to themes overview - visible on dark background */
div[style*="text-align: center"] a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

div[style*="text-align: center"] a:hover {
    background-color: var(--accent);
    color: var(--secondary);
}

strong, b {
    font-weight: 900;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0 4px;
}

em, i {
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 8px;
}

small {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}

/* Lists */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 3rem;
    border-left: var(--border-thick) solid var(--primary);
}

li {
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Forms */
select, button {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: bold;
}

select {
    width: 100%;
    padding: 1rem;
    border: var(--border-thick) solid var(--primary);
    background-color: var(--secondary);
    color: var(--text);
    margin: 1rem 0;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

select:focus {
    outline: none;
    box-shadow: 8px 8px 0 var(--accent);
    transform: translate(-2px, -2px);
}

button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--secondary);
    border: var(--border-thick) solid var(--primary);
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1rem 1rem 1rem 0;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s;
    transform: rotate(-1deg);
    border-radius: 0;
}

button:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: rotate(-1deg) translate(-2px, -2px);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
}

button:active {
    transform: rotate(-1deg) translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

    h1 {
        font-size: 2rem;
        box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
    }

    h2 {
        font-size: 1.75rem;
        box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
    }

    h3 {
        font-size: 1.5rem;
        box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
    }
}

@media print {
    * {
        box-shadow: none !important;
        transform: none !important;
    }
}
