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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #222;
    background: #e8e6e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Hero Section */
.hero {
    background: #d4cfc4;
    color: #222;
    padding: 45px 30px 35px;
    text-align: center;
    border-bottom: 2px solid #4477aa;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    color: #000;
}

.subtitle {
    font-size: 0.9375rem;
    margin-bottom: 8px;
    font-weight: 400;
    color: #444;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle-small {
    font-size: 0.875rem;
    margin-bottom: 10px;
    font-weight: 400;
    color: #555;
}

.subtitle-small a {
    color: #4477aa;
    text-decoration: none;
    border-bottom: 1px solid #4477aa;
}

.subtitle-small a:hover {
    color: #2a5580;
    border-bottom-color: #2a5580;
}

.byline {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

.stats {
    display: flex;
    gap: 80px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #b8b2a7;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    color: #000;
}

.stat-label {
    font-size: 0.875rem;
    margin-top: 8px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content */
main {
    padding: 30px 30px 40px;
}

/* Search Bar */
.search-container {
    margin-bottom: 30px;
    text-align: center;
}

#searchInput {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    font-size: 0.9375rem;
    border: 1px solid #b8b2a7;
    border-left: 3px solid #4477aa;
    background: #fff;
    color: #333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#searchInput:focus {
    outline: none;
    border-color: #4477aa;
    border-left-color: #4477aa;
}

#searchInput::placeholder {
    color: #999;
}

/* Change Cards Grid */
#changes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 25px;
}

.change-card {
    background: #fff;
    border: 1px solid #b8b2a7;
    border-left: 3px solid #4477aa;
    padding: 25px;
    position: relative;
}

.date-marker {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.75px;
    font-weight: 500;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e6e0;
}

.change-card h3 {
    font-size: 1.125rem;
    color: #000;
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.4;
}

.agency {
    color: #666;
    font-weight: 400;
    font-size: 0.75rem;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description {
    color: #444;
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Timeline - Vertical Stack */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0 0;
    border-top: 1px solid #ccc;
}

.timeline-box {
    background: #f9f8f6;
    border: 1px solid #b8b2a7;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-box:hover {
    background: #fff;
}

.source-section {
    border-bottom: 1px solid #d4cfc4;
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.source-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
    letter-spacing: 0.75px;
    font-weight: 500;
}

.source-title {
    color: #222;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 6px;
}

.source-title:hover {
    color: #4477aa;
}

.source-meta {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.link-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.link-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 3px;
    letter-spacing: 0.75px;
    font-weight: 500;
}

.link-date {
    font-size: 0.8125rem;
    color: #444;
    margin-bottom: 4px;
    font-weight: 400;
}

.link-note {
    font-size: 0.8125rem;
    color: #c44;
    margin-bottom: 6px;
    line-height: 1.4;
}

.archive-link {
    display: inline-block;
    color: #4477aa;
    background: transparent;
    text-decoration: none;
    font-size: 0.8125rem;
    border: 1px solid #4477aa;
    padding: 6px 12px;
    text-align: center;
    transition: all 0.2s;
    font-weight: 400;
}

.archive-link:hover {
    background: #4477aa;
    color: #fff;
}

/* Footer */
footer {
    background: #d4cfc4;
    color: #555;
    text-align: center;
    padding: 35px 30px;
    margin-top: 40px;
    border-top: 2px solid #4477aa;
}

footer a {
    color: #4477aa;
    text-decoration: none;
    border-bottom: 1px solid #4477aa;
}

footer a:hover {
    color: #2a5580;
    border-bottom-color: #2a5580;
}

footer p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-sub {
    margin-top: 10px;
    font-size: 0.875rem;
    color: #666;
}

/* Responsive */
@media (max-width: 1100px) {
    #changes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 40px 20px 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .stats {
        gap: 50px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    main {
        padding: 25px 20px 30px;
    }

    .change-card {
        padding: 20px;
    }

    #searchInput {
        font-size: 0.875rem;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 35px 20px 25px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.8125rem;
    }

    .stats {
        flex-direction: column;
        gap: 25px;
    }

    .change-card {
        padding: 18px;
    }
}