:root {
    --ink: #1F1710;
    --parchment: #F6F1E4;
    --flesh: #7C8F3E;
    --pit: #8B5A2B;
    --bruise: #B4432E;
    --cream-text: #EDE6D6;
    --font-display: "Fraunces", serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    background-color: var(--parchment);
}

.header {
    background-color: var(--ink);
    height: 288px;
    padding: 16px 0 0 0;
    position: relative;
}

.language-toggle {
    position: absolute;
    top: 16px;
    right: 24px;
    display: flex;
    align-items: center;
}

.language-toggle label {
    color: var(--cream-text);
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    margin-right: 12px;
}

.language-toggle input[type="radio"] {
    margin-right: 4px;
    cursor: pointer;
    accent-color: var(--flesh);
}

.header-mark {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.header-title {
    color: var(--cream-text);
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
}

.header-subtitle {
    color: var(--flesh);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 10px auto 20px auto;
}

.header-link {
    color: var(--flesh);
    text-decoration: none;
    font-weight: bold;
}

.header-link:hover {
    color: var(--pit);
    text-decoration: underline;
}

.header-description {
    color: var(--cream-text);
    margin: 4px auto;
    text-align: center;
    max-width: 384px;
}

.wrapper {
    margin-right: auto;
    margin-left: auto;
    max-width: 1024px;
    padding-right: 10px;
    padding-left: 10px;
    margin-top: 32px;
}

.card {
    margin-bottom: 24px;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.18);
}

.menu {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 10px;
    margin: 0 auto;
    background-color: var(--parchment);
}

.menu > div {
    flex: 1 1 220px;
    padding: 0 32px;
    border-left: 1px solid var(--pit);
}

.menu > div:first-child {
    border-left: none;
}

.Select-control {
    width: 100%;
    height: 48px;
}

@media (max-width: 768px) {
    .menu {
        flex-direction: column;
    }

    .menu > div {
        flex: none;
        border-left: none;
        width: 100%;
    }
}

.Select--single>.Select-control .Select-value,
.Select-placeholder {
    line-height: 48px;
}

.Select--multi .Select-value-label {
    line-height: 32px;
}

.menu-title {
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--pit);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--pit);
    color: var(--cream-text);
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: bold;
    font-style: italic;
    line-height: 1;
    cursor: help;
}

.export-section {
    margin: 24px auto 0 auto;
    max-width: 1024px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.download-button {
    background-color: var(--pit);
    color: var(--cream-text);
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.18);
}

.download-button:disabled {
    background-color: rgba(139, 90, 43, 0.35);
    cursor: not-allowed;
}

.download-status {
    color: rgba(31, 23, 16, 0.6);
    font-style: italic;
    font-size: 13px;
}

.summary-panel {
    margin: 24px auto 0 auto;
    max-width: 1024px;
    padding: 0 10px;
}

.summary-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 16px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.18);
    padding: 20px;
}

.summary-stat {
    text-align: center;
    min-width: 160px;
}

.summary-stat-label {
    color: rgba(31, 23, 16, 0.6);
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.summary-stat-value {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: bold;
}

.summary-stat-up {
    color: var(--flesh);
}

.summary-stat-down {
    color: var(--bruise);
}

.summary-empty {
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.18);
    padding: 20px;
    text-align: center;
    color: rgba(31, 23, 16, 0.6);
    font-style: italic;
}

.footer {
    background-color: var(--ink);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-text {
    color: var(--cream-text);
    margin: 0;
    font-size: 14px;
}

.footer-link {
    color: var(--flesh);
    text-decoration: none;
    font-weight: bold;
}

.footer-link:hover {
    color: var(--pit);
    text-decoration: underline;
}