:root {
    color-scheme: light;
    --background: #f4f6f8;
    --surface: #ffffff;
    --text: #1b2430;
    --muted: #667085;
    --border: #dfe4ea;
    --primary: #176b56;
    --primary-hover: #105140;
    --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

* {
    box-sizing: border-box;
}

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

.container {
    width: min(100% - 2rem, 960px);
    margin-inline: auto;
}

.site-header {
    padding: 3.5rem 0 2.75rem;
    background: linear-gradient(135deg, #123b34, #176b56);
    color: #fff;
}

.eyebrow {
    margin: 0 0 0.4rem;
    color: #bce2d8;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.12;
}

.intro {
    max-width: 640px;
    margin-bottom: 0;
    color: #d7eee8;
    font-size: 1.05rem;
}

main {
    padding-block: 2rem 3rem;
}

.file-section {
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid var(--border);
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.file-count {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.875rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.4rem;
}

.file-item + .file-item {
    border-top: 1px solid var(--border);
}

.file-info {
    min-width: 0;
}

.file-info h3 {
    overflow-wrap: anywhere;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.file-info p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.download-button {
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.download-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.download-button:focus-visible {
    outline: 3px solid rgba(23, 107, 86, 0.3);
    outline-offset: 3px;
}

.empty-state {
    margin-bottom: 0;
    padding: 1.4rem;
    color: var(--muted);
}

.site-footer {
    padding: 1.5rem 0 2rem;
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 560px) {
    .site-header {
        padding-block: 2.5rem 2rem;
    }

    .file-item {
        align-items: stretch;
        flex-direction: column;
        gap: 0.8rem;
    }

    .download-button {
        align-self: flex-start;
    }
}
