:root {
    color-scheme: light;
    --ink: #281820;
    --accent: #681d38;
    --paper: #fffdfa;
    --cream: #fbf5e9;
    --border: #ded1be;
    font: 1rem/1.7 Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; }
header { background: var(--paper); border-bottom: 1px solid var(--border); }
.shell { margin-inline: auto; padding: 1.1rem; max-width: 66rem; }
.header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .75rem; }
.brand { font-weight: bold; }
.notice { border-inline-start: .25rem solid #986618; background: #fff0d2; padding: .65rem 1rem; margin: .5rem 0 1.5rem; }
h1, h2 { line-height: 1.45; color: var(--accent); }
h1 { font-size: clamp(1.65rem, 4vw, 2.4rem); }
article, .lab { max-width: 46rem; }
.lab { margin-top: 1.5rem; padding: .25rem 1.2rem 1.25rem; background: var(--paper); border: 1px solid var(--border); border-radius: .85rem; }
.course { font-size: .95rem; color: #5b3d49; }
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .85rem; padding: 0; margin-block: 1.25rem; list-style: none; }
.catalog a { display: grid; align-content: center; gap: .25rem; height: 100%; min-height: 6rem; padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--border); border-radius: .85rem; text-decoration: none; }
.catalog a:hover strong { text-decoration: underline; }
button { background: var(--accent); color: white; border: 1px solid var(--accent); border-radius: .55rem; font: inherit; cursor: pointer; min-height: 2.75rem; padding: .35rem .85rem; text-align: start; }
:focus-visible { outline: .2rem solid #925900; outline-offset: .22rem; }
.choices, .progress { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.progress { margin-block: 1rem; border-radius: .6rem; padding: .65rem .9rem; background: #f1e5ec; }
.badge, .complete { color: #5e3c03; font-size: .9rem; }
.badge { border-radius: 1rem; padding: .1rem .6rem; background: #ffedc5; }
.feedback { border-inline-start: .25rem solid var(--accent); background: #f1e5ec; padding: .65rem; }
.forget { margin-top: 2rem; }
.forget button { color: var(--accent); background: transparent; }

@media (prefers-reduced-motion: no-preference) {
    .awarded { animation: reward .55s ease-out; }
    @keyframes reward { from { background-color: #ffe4a5; } to { background-color: #f1e5ec; } }
}
