/* Minimal styling for the Odyssey translation preference experiment. */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 1rem;
    background: #faf8f4;
    color: #222;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 60rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    body {
        padding-top: 3rem;
    }

    .container {
        max-width: 80rem;
    }

    .card {
        padding: 1.5rem;
    }

    .passage {
        font-size: 1.25rem;
    }
}

h1 {
    font-size: 1.4rem;
    font-weight: 600;
}

.progress {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Two comparison cards side by side; stacked on mobile. */
.cards {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.card {
    flex: 1;
    background: #fff;
    border: 1px solid #e0dcd2;
    border-radius: 8px;
    padding: 1.25rem;
}

/* Identical typography for both cards; readable serif for passage text. */
.passage {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
}

.card-label {
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.6rem;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

button {
    font-size: 1rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid #2c5f2e;
    border-radius: 6px;
    background: #2c5f2e;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background: #234d25;
}

button.secondary {
    background: #fff;
    color: #2c5f2e;
}

button.secondary:hover {
    background: #eef4ee;
}

form label {
    display: block;
    margin: 0.9rem 0;
}

form select {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
    padding: 0.4rem;
    min-width: 16rem;
}

label.consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.result-hero {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0dcd2;
}

.favorite-label {
    color: #555;
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
}

.favorite {
    font-size: 2.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.15;
}

@media (min-width: 640px) {
    .favorite {
        font-size: 3rem;
    }
}

.rankings {
    margin-top: 2rem;
}

@media (min-width: 800px) {
    .rankings {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.ranking h2 {
    margin-top: 0;
}

.ranking-note {
    color: #666;
    font-size: 0.95rem;
    margin: -0.5rem 0 1rem;
}

.share {
    font-size: 1.1rem;
    font-weight: 600;
    background: #eef4ee;
    border: 1px solid #cfe0cf;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
}

.results-list {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1.5rem;
}

.results-list li {
    margin: 0.35rem 0;
}

.share-actions {
    margin-top: 2rem;
    text-align: center;
}

.share-actions button {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.85rem 1.2rem;
}

@media (min-width: 640px) {
    .share-actions button {
        width: auto;
    }
}

.back-link {
    display: block;
    margin-top: 1rem;
    color: #777;
    font-size: 0.85rem;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0 1rem;
}

th, td {
    text-align: left;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #e0dcd2;
}

.note {
    color: #666;
    font-size: 0.9rem;
}

/* Mobile: stack the cards vertically and reduce padding. */
@media (max-width: 640px) {
    body {
        padding: 0.5rem;
    }

    .card {
        padding: 0.75rem;
    }

    .cards {
        flex-direction: column;
        gap: 0.5rem;
    }

    .actions {
        flex-direction: column;
        margin-bottom: 4rem;
    }

    .actions button {
        width: 100%;
    }
}
