/* Colors */
:root {
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-border: #e5e5e5;
    --color-link: #0066cc;
}

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

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

body {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Voter Registration Banner */
.voter-banner {
    position: sticky;
    top: 0;
    background: var(--color-text);
    color: var(--color-bg);
    text-align: center;
    padding: 0.75rem 1rem;
    margin: 0 -1rem;
}

.voter-banner a {
    color: var(--color-bg);
    text-decoration: underline;
}

.voter-banner a:hover {
    text-decoration: none;
}

/* Header */
header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.disclaimer {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.about h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Facts Section */
.facts {
    padding: 2rem 0;
}

.fact {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.fact:last-child {
    border-bottom: none;
}

.fact time {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.fact p {
    margin-bottom: 0.75rem;
}

.fact a {
    color: var(--color-link);
    text-decoration: none;
    font-size: 0.9rem;
}

.fact a:hover {
    text-decoration: underline;
}

/* Load More Button */
.load-more {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--color-bg);
    color: var(--color-link);
    border: 1px solid var(--color-border);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}

.load-more:hover {
    border-color: var(--color-link);
}

.load-more:focus {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}

.load-more[hidden] {
    display: none;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: var(--color-link);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Accessibility */
a:focus {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}

.voter-banner a:focus {
    outline-color: var(--color-bg);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

    h1 {
        font-size: 1.75rem;
    }

    header {
        padding: 2rem 0 1.5rem;
    }
}
