*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #0066cc;
    text-decoration: underline;
}

a:hover {
    color: #004499;
}

/* Header */

.site-header {
    background: #1a1a1a;
    color: #fff;
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 3.5rem;
}

.site-header__logo {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.site-header__logo:hover {
    color: #ccc;
}

/* Nav */

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Main */

.site-main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* Static page */

.static-page__title {
    margin-top: 0;
    font-size: 1.75rem;
    line-height: 1.3;
    color: #1a1a1a;
}

.static-page__content {
    max-width: 72ch;
}

.static-page__content p:first-child {
    margin-top: 0;
}

/* Flash messages */

.flash-messages {
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 0 1.25rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.flash--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash--warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flash--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer */

.site-footer {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.875rem;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.site-footer p {
    margin: 0;
}
