:root { --font-size: 100%; --ink: #233044; --paper: #fffdf7; --panel: #fff; --edge: #65717d; --accent: #7a3e17; --soft: #f8eadc; --focus: #075b9b; font-family: system-ui, sans-serif; font-size: var(--font-size); }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
    body.contrast { --ink: #fff; --paper: #000; --panel: #000; --edge: #fff; --accent: #ffeb66; --soft: #000; --focus: #80d8ff; }
    .skip { position: absolute; left: -10000px; }
    .skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: .5rem; background: var(--panel); }
    header, main, footer { max-width: 70rem; margin-inline: auto; padding: 1rem; }
    header { padding-top: 1.5rem; }
    h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0; }
    h2 { font-size: 1.4rem; margin: .3rem 0 .8rem; }
    h3 { margin-bottom: .4rem; }
    .eyebrow { color: var(--accent); font-weight: 800; margin: 0 0 .4rem; }
    .tool-nav { display: flex; flex-wrap: wrap; gap: .8rem; margin: .3rem 0 1rem; }
    .intro { max-width: 70ch; }
    .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(16rem, .7fr); gap: 1rem; }
    @media (max-width: 48rem) { .grid { grid-template-columns: 1fr; } }
    .panel { border: 2px solid var(--edge); border-radius: 1rem; padding: 1rem; background: var(--panel); min-width: 0; }
    label { display: block; font-weight: 700; margin-bottom: .3rem; }
    select, button { font: inherit; color: var(--ink); background: var(--panel); border: 2px solid var(--edge); border-radius: .65rem; min-height: 2.75rem; padding: .5rem .7rem; }
    select { width: 100%; margin-bottom: .75rem; }
    button { cursor: pointer; }
    button:hover, button[aria-pressed="true"] { background: var(--soft); }
    button:disabled { opacity: .48; cursor: default; }
    button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
    .buttons { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: .8rem; }
    .settings { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
    .settings label { margin: 0; }
    .settings select { width: auto; min-width: 9rem; margin: 0; }
    .tile { min-width: 3.4rem; font-size: 1.45rem; font-weight: 800; }
    .primary { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 800; }
    body.contrast .primary { color: #000; }
    .word { font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: .07em; font-weight: 800; margin: .2rem 0; }
    .selected { min-height: 4rem; border: 2px dashed var(--edge); border-radius: .7rem; padding: .5rem; }
    .selected ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .2rem 0; padding: 0; }
    .selected li { border: 2px solid var(--accent); border-radius: .5rem; min-width: 2.7rem; padding: .25rem .5rem; font-weight: 800; text-align: center; }
    .story { background: var(--soft); border-radius: .7rem; padding: .8rem; }
    .story p { margin: .3rem 0; }
    .feedback { min-height: 3rem; border-left: .4rem solid var(--accent); background: var(--soft); padding: .8rem; }
    .small { font-size: .95rem; }
    a { color: var(--accent); }
    body.contrast a { color: #ffeb66; }
    @media print { :root { --font-size: 100%; } body, body.contrast { --ink: #000; --paper: #fff; --panel: #fff; --edge: #000; --accent: #000; --soft: #fff; color: #000; background: #fff; } a, body.contrast a { color: #000; } .grid { display: block; } .panel { border-color: #000; break-inside: avoid; margin-bottom: .7rem; } .controls, .buttons, footer, .skip, .feedback { display: none !important; } .story { border: 1px solid #000; background: #fff; } }
.resource-heading-context{display:block;margin-top:.8rem;font-size:.8rem;line-height:1.5;font-weight:650;letter-spacing:.02em;color:#4c625a}
