:root {
    color-scheme: light dark;
    --ink: #20322d;
    --muted: #64736d;
    --line: #dce4df;
    --paper: #ffffff;
    --canvas: #f5f7f5;
    --accent: #176b55;
    --accent-soft: #e8f3ee;
    --table-heading: #f9fbf9;
    --focus: #e1a74c;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --ink: #e4eee9;
        --muted: #a4b3ac;
        --line: #34443d;
        --paper: #1d2823;
        --canvas: #111814;
        --accent: #78d7af;
        --accent-soft: #253b31;
        --table-heading: #202b26;
        --focus: #f0bf67;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

main {
    width: min(100% - 40px, 960px);
    margin: 0 auto;
    padding: 72px 0 56px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 2.75rem;
    line-height: 1.1;
}

.intro {
    max-width: 580px;
    margin: 14px 0 36px;
    color: var(--muted);
    font-size: 1.05rem;
}

.archive {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.archive-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
}

.archive-filter[hidden] {
    display: none;
}

.archive-filter label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.archive-filter input {
    width: min(100%, 320px);
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.archive-filter input:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

#archive-count {
    color: var(--muted);
    font-size: 0.85rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

th {
    background: var(--table-heading);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td:first-child {
    width: 27%;
    font-weight: 650;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

a {
    color: var(--accent);
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.map-link {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    text-decoration: none;
}

.map-link:hover,
.map-link:focus-visible {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.download {
    white-space: nowrap;
}

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    main {
        width: min(100% - 28px, 520px);
        padding-top: 44px;
    }

    h1 {
        font-size: 2.25rem;
    }

    .intro {
        margin-bottom: 26px;
    }

    thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tbody tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    tbody tr:last-child {
        border-bottom: 0;
    }

    td,
    td:first-child {
        width: 100%;
        padding: 4px 0;
        border: 0;
    }

    td:first-child {
        margin-bottom: 8px;
    }

    td:last-child {
        margin-top: 8px;
    }
}