:root { color-scheme: light; --ink: #1f302b; --muted: #586b63; --paper: #f7f7f0; --line: #d6ded3; --accent: #23664d; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, sans-serif; line-height: 1.65; }
header, main { width: min(100% - 2rem, 48rem); margin-inline: auto; }
header { padding-block: 1.3rem; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; }
header span, .description { color: var(--muted); }
a { color: var(--accent); text-underline-offset: .2em; }
main { padding-block: 2rem 4rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; letter-spacing: -.035em; margin: .5rem 0 1rem; }
h2 { font-size: 1rem; margin-top: 2rem; font-weight: 600; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; }
progress { width: 100%; height: .6rem; accent-color: var(--accent); margin-bottom: 1.5rem; }
.card { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 2rem); box-shadow: 0 6px 25px #20302506; overflow-wrap: anywhere; }
.instructions { color: var(--muted); margin-top: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 1.3rem; font-weight: 600; padding: 0; margin-bottom: 1rem; width: 100%; }
.question-context, .example-sentence, .question-text { display: block; }
.question-context { margin-bottom: .5rem; font-size: 1rem; font-weight: 400; }
.example-sentence { font-style: italic; font-weight: 400; margin-bottom: .6rem; }
.question-text { margin-top: .9rem; }
.option { display: flex; align-items: baseline; gap: .8rem; padding: .8rem 1rem; margin-block: .6rem; border: 1px solid var(--line); border-radius: .6rem; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: #eef5ef; }
input[type=radio] { accent-color: var(--accent); flex-shrink: 0; }
input[type=text] { max-width: 100%; width: 10rem; font: inherit; padding: .5rem .6rem; margin: .3rem; border: 1px solid #83988b; border-radius: .4rem; background: #fcfdf9; color: var(--ink); }
input[type=text].blank-incorrect { border: 2px solid #a43c2b; background: #fff0ed; color: #9b2b1d; }
.sentence { font-size: 1.2rem; }
.character-palette { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.character-palette button { flex: 0 0 auto; min-width: 44px; min-height: 44px; margin: 0; padding: .4rem .65rem; font-size: 1.1rem; }
button { border: 1px solid var(--accent); border-radius: .5rem; padding: .7rem 1.1rem; background: var(--accent); color: white; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; margin: .5rem .5rem 0 0; }
button.secondary { background: white; color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #ab5c12; outline-offset: 4px; }
h2:focus { outline: none; }
.feedback:not(:empty) { margin-block: 1rem; padding: 1rem; background: #f7f7f0; border-left: 4px solid #8b6917; border-radius: .3rem; }
.feedback.correct { border-color: #23664d; }
.feedback.incorrect { border-color: #a43c2b; }
.feedback p:last-child { margin-bottom: 0; }
.answer { font-weight: 650; }
.french-term { color: #a34717; font-weight: 750; }
details { margin-top: 1.5rem; color: var(--muted); }
summary { cursor: pointer; }
.score { font-size: 2rem; font-weight: 700; }
.error { color: #9b2b1d; }
@media (max-width: 400px) { .actions button { width: 100%; } }
