body {
    margin: 0;
    background-color: #f8f9fa;
    color: #111111;
}

.history-page {
    max-width: 44rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.history-header {
    text-align: center;
    margin-bottom: 3rem;
}

.history-header h1 {
    margin: 0 0 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.history-intro {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #666666;
}

.history-count {
    margin: 0.75rem 0 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999999;
}

.history-admin-link {
    margin-left: 0.75rem;
    color: #bbbbbb;
    text-decoration: none;
    letter-spacing: 0.08em;
}

.history-admin-link:hover {
    color: #666666;
    text-decoration: underline;
}

.history-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.5rem;
    border-left: 2px solid #e2e5e9;
}

.history-entry {
    position: relative;
    margin: 0 0 1.75rem;
    padding-left: 1.5rem;
}

.history-entry::before {
    content: '';
    position: absolute;
    left: -1.56rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #111111;
    box-shadow: 0 0 0 4px #f8f9fa;
}

.history-entry:first-child::before {
    width: 12px;
    height: 12px;
    left: -1.63rem;
    top: 0.35rem;
    box-shadow: 0 0 0 4px #f8f9fa, 0 0 0 6px rgba(17, 17, 17, 0.12);
}

.history-date {
    display: block;
    margin-bottom: 0.35rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #666666;
}

.history-text {
    margin: 0;
    padding: 1rem 1.15rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: #222222;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(17, 17, 17, 0.04);
}

.history-entry:first-child .history-text {
    border-color: #d5d9de;
    box-shadow:
        0 1px 3px rgba(17, 17, 17, 0.06),
        0 8px 24px rgba(17, 17, 17, 0.05);
}

@media (max-width: 600px) {
    .history-page {
        padding: 1.75rem 1rem 3rem;
    }

    .history-timeline {
        padding-left: 1.25rem;
    }

    .history-entry {
        padding-left: 1.15rem;
    }

    .history-text {
        font-size: 0.9rem;
        padding: 0.9rem 1rem;
    }
}

/* ---------------------------------------------------------------------------
   Archive navigation: a search box and a decade rail, so 285 moments spanning
   nine decades are something you can land in rather than only scroll through.
   --------------------------------------------------------------------------- */

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

.history-tools {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 0 2.5rem;
}

.history-search {
    position: relative;
}

.history-search__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d9dde2;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
}

.history-search__input::placeholder {
    color: #9aa3ad;
}

.history-search__input:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.history-search__status {
    margin: 0.5rem 0 0;
    min-height: 1em;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9aa3ad;
}

.history-decades {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.history-decades__link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #e2e5e9;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    transition: border-color 0.15s ease;
}

.history-decades__link:hover {
    border-color: #111111;
}

.history-decades__link:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.history-decades__count {
    color: #9aa3ad;
    font-size: 0.66rem;
}

.history-decade-marker {
    position: relative;
    list-style: none;
    margin: 2.5rem 0 1.5rem;
    padding-left: 1.5rem;
    scroll-margin-top: 5rem;
}

.history-decade-marker:first-child {
    margin-top: 0;
}

.history-decade-marker::before {
    content: '';
    position: absolute;
    left: -1.72rem;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #111111;
    box-shadow: 0 0 0 4px #f8f9fa;
}

.history-decade-marker__label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111111;
}

.history-photo {
    list-style: none;
    margin: 0 0 1.75rem;
    padding-left: 1.5rem;
}

.history-photo__figure {
    margin: 0;
}

.history-photo__figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e2e5e9;
    background: #ffffff;
}

.history-photo__figure figcaption {
    margin-top: 0.5rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: #9aa3ad;
}

.history-empty {
    margin: 0 0 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #666666;
}
