:root {
    color-scheme: light;
    --ink: #192934;
    --muted: #4e6269;
    --teal: #0b665b;
    --paper: #f5f5ef;
    font-family: system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .7; }
:focus-visible { outline: 3px solid #a74427; outline-offset: 3px; }
.top, main, footer { width: min(100% - 2.5rem, 66rem); margin: 0 auto; }
.top { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #cdd6d0; }
.brand { font-weight: 750; letter-spacing: -.025em; display: flex; align-items: center; gap: .6rem; }
.mark { display: grid; place-items: center; background: var(--teal); color: white; border-radius: .65rem; width: 2rem; height: 2rem; }
.tag { color: var(--teal); font-size: .8rem; font-weight: 700; text-align: right; }
.gate, .hero { padding: clamp(2rem, 6vw, 4.5rem) 0 1.6rem; }
.gate { max-width: 32rem; margin: 0 auto; }
.eyebrow { color: var(--teal); font-size: .75rem; letter-spacing: .13em; font-weight: 750; }
h1 { font: 400 clamp(2.2rem, 5.4vw, 4.8rem)/1.04 Georgia, serif; letter-spacing: -.055em; margin: .8rem 0 1.1rem; text-wrap: balance; }
h2 { font: 400 1.8rem/1.15 Georgia, serif; letter-spacing: -.035em; margin: .4rem 0; }
p { line-height: 1.55; }
.intro { max-width: 41rem; color: var(--muted); font-size: 1.08rem; }
.fields, .card { background: #fff; border: 1px solid #dae2dc; border-radius: 1rem; padding: clamp(1.2rem, 4vw, 2rem); }
.fields { display: grid; gap: .55rem; margin-top: 1.6rem; }
.fields label { font-weight: 650; font-size: .92rem; }
.fields input { min-height: 2.8rem; width: 100%; border: 1px solid #81958f; border-radius: .5rem; padding: .5rem .7rem; margin-bottom: .5rem; }
.primary, .subtle { border: 0; padding: .65rem 1rem; min-height: 2.75rem; border-radius: .55rem; font-weight: 700; }
.primary { background: var(--teal); color: #fff; }
.primary:hover:not(:disabled) { background: #084b43; }
.primary.signal { background: #a74427; }
.subtle { background: #e6eee8; color: #185a50; }
.alert { background: #f9e8e3; color: #792c16; padding: .7rem 1rem; border-radius: .55rem; }
.exercises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.card p:not(.eyebrow) { color: var(--muted); }
.card { position: relative; }
.index { position: absolute; right: 1.5rem; top: 1.4rem; color: #456e66; font: 1.15rem Georgia, serif; }
.words { font-weight: 750; }
.result:empty, .words:empty { display: none; }
.result { margin-bottom: 0; }
fieldset { border: 0; padding: .7rem 0; margin: .7rem 0; }
#memory-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
#memory-choices label { display: flex; align-items: center; gap: .45rem; min-height: 1.8rem; }
.note { margin: 1.25rem 0 2rem; background: #e5eee8; border-radius: .8rem; padding: 1.2rem 1.4rem; }
.note p { margin: .3rem 0 0; }
footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #cdd6d0; padding: 1.25rem 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 42rem) { .exercises { grid-template-columns: 1fr; } .hero h1 br { display: none; } }
