/* ==========================================================================
   Artwork Quiz — "Which artwork speaks to you?"
   Editorial styling, RTL-first. JS-driven; no-JS shows a gallery link.
   ========================================================================== */

.artwork-quiz {
    --aq-ink: #1a1a1a;
    --aq-muted: #6b6b6b;
    --aq-hairline: #e5e2dd;
    box-sizing: border-box;
    width: 100%;
    background-color: #faf9f7;
    padding: clamp(30px, 6vw, 72px) 20px;
}
.artwork-quiz * { box-sizing: border-box; }

.aq-card {
    max-width: 560px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--aq-hairline);
    padding: clamp(24px, 5vw, 44px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.aq-screen { animation: aq-fade 0.35s ease both; }
.aq-screen[hidden] { display: none; }

@keyframes aq-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Titles / text */
.aq-title,
.aq-question__text,
.aq-result__heading {
    font-family: 'Frank Ruhl Libre', 'David Libre', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    color: var(--aq-ink);
}

.aq-title { font-size: 26px; margin: 0 0 12px; line-height: 1.3; }
.aq-intro__text { margin: 0 0 26px; color: var(--aq-muted); font-size: 16px; line-height: 1.7; }

.aq-question__text { font-size: 22px; margin: 0 0 24px; line-height: 1.35; }

/* Buttons */
.aq-btn {
    display: inline-block;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.aq-btn--primary {
    background: var(--aq-ink);
    color: #ffffff;
    border: 1px solid var(--aq-ink);
    text-transform: uppercase;
}
.aq-btn--primary:hover { background: #000000; color: #ffffff; }

.aq-btn--ghost {
    background: transparent;
    color: var(--aq-ink);
    border: 1px solid var(--aq-ink);
}
.aq-btn--ghost:hover { background: var(--aq-ink); color: #ffffff; }

/* Answers (stacked ghost) */
.aq-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: start;
}

.aq-answer {
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    color: var(--aq-ink);
    border: 1px solid var(--aq-hairline);
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    text-align: start;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.aq-answer:hover { border-color: var(--aq-ink); background: var(--aq-ink); color: #ffffff; }

/* Progress dots */
.aq-progress {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 22px;
}
.aq-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aq-hairline);
    transition: background-color 0.25s ease;
}
.aq-dot.is-done { background: var(--aq-ink); }

/* Result */
.aq-result__heading { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; color: var(--aq-muted); }

.aq-result__img {
    display: block;
    width: 100%;
    max-height: 46vh;
    object-fit: contain;
    margin: 0 auto 16px;
    background: #f5f3f0;
}

.aq-result__title {
    font-family: 'Frank Ruhl Libre', 'David Libre', Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--aq-ink);
    margin: 0 0 4px;
}

.aq-result__price { font-size: 16px; font-weight: 600; color: var(--aq-ink); margin: 0 0 20px; }

.aq-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.aq-empty {
    padding: 20px;
    color: var(--aq-muted);
    text-align: center;
    border: 1px dashed var(--aq-hairline);
}

@media (prefers-reduced-motion: reduce) {
    .aq-screen { animation: none; }
}
