:root {
    --bg-canvas: #0b0b0d;
    --bg-surface: #121215;
    --bg-surface-hover: #1a1a1f;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-primary: #dc2626;
    --accent-secondary: #991b1b;
    --border-subtle: #374151;
    --silver-detail: #d1d5db;
    --font-serif: Charter, Georgia, serif;
    --font-sans: system-ui, -apple-system, sans-serif;
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-serif);
    margin: 0;
    padding: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.page-frame {
    border: 1px solid var(--border-subtle);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 2rem);
    background: var(--bg-canvas);
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    margin-top: 0;
    color: var(--text-primary);
    font-weight: normal;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-primary);
    text-underline-offset: 4px;
}

a:hover {
    color: var(--accent-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.small-caps {
    font-family: var(--font-sans);
    font-variant: small-caps;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    font-weight: 600;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
    position: static;
}

.brand-name {
    text-decoration: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    border: 1px solid transparent;
}

.brand-name:hover {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s var(--ease-kinetic);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero */
.hero-band {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.bento-card {
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 2rem;
    transition: background 0.3s var(--ease-kinetic);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    background: var(--bg-surface-hover);
}

.span-2 {
    grid-column: span 2;
}

.span-full {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .span-2 {
        grid-column: span 1;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background: var(--bg-surface);
        padding: 2rem;
        border: 1px solid var(--border-subtle);
        z-index: 50;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .site-header {
        position: relative;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent-primary);
    color: #fff !important;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--accent-primary);
    box-shadow: 4px 4px 0 var(--silver-detail);
    transition: all 0.2s var(--ease-kinetic);
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--silver-detail);
}

/* Forms */
.brutalist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.75rem;
    font-family: var(--font-sans);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Utils */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--ease-kinetic);
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}
.text-center { text-align: center; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }

/* Table */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-subtle);
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}
th {
    background: var(--bg-surface);
    font-family: var(--font-sans);
    font-weight: 600;
}

/* Footer */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
}
.site-footer .bento-card {
    padding: 1.5rem;
}
.legal-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.legal-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
}
.legal-links a:hover {
    color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
