@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html {
    color-scheme: light dark;
}

body {
    margin: 0;
    background: #D9DCDB;
    color: #1E1E1C;
    font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

header {
    background: #2E4A3F;
    color: #FFFFFF;
    padding: 12px max(5vw, 16px);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px max(5vw, 16px);
}

h1 {
    margin: 0 0 32px;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

section {
    background: #FFFFFF;
    border-radius: 4px;
    padding: 20px;
}

h2 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

p {
    margin: 0;
    color: #545856;
}

section + section {
    margin-top: 20px;
}

section > * + *,
form > * + *,
fieldset > * + * {
    margin-top: 12px;
}

main > :not(h1) + * {
    margin-top: 20px;
}

h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    overflow-wrap: anywhere;
}

hr {
    margin: 12px 0 0;
    border: 0;
    border-top: 1px solid #C4C8C7;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    padding: 0;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}

h2 label {
    font: inherit;
}

dl {
    display: grid;
    gap: 4px 16px;
    margin: 0;
}

dt {
    color: #545856;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

dd {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

dd > * + * {
    margin-top: 6px;
}

@media (min-width: 560px) {
    dl {
        grid-template-columns: max-content 1fr;
    }

    dd {
        margin-bottom: 0;
    }
}

header a {
    color: inherit;
}

header [aria-current="page"] {
    font-weight: 600;
}

p:has(> .action) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid #2E4A3F;
    border-radius: 4px;
    background: #2E4A3F;
    color: #FFFFFF;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.action:hover {
    background: #243B32;
}

.action[aria-disabled="true"] {
    cursor: progress;
}

.action.surface {
    border-color: #B5BAB8;
    background: #FFFFFF;
    color: #1E1E1C;
}

.action.surface:hover {
    background: #ECEEED;
}

.action.rust {
    border-color: #B4452F;
    background: #B4452F;
}

.action:focus-visible,
input:focus-visible,
a:focus-visible,
dd:focus-visible {
    outline: 2px solid #B4452F;
    outline-offset: 2px;
}

label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

label + input {
    margin-top: 6px;
}

input:not([type="checkbox"]):not([type="radio"]) {
    display: block;
    width: 100%;
    max-width: 480px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #B5BAB8;
    border-radius: 4px;
    background: #FFFFFF;
    color: #1E1E1C;
    font: inherit;
    font-size: 16px;
}

.note {
    font-size: 15px;
}

.problem {
    color: #9A3A27;
}

.list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 0;
    border-top: 1px solid #C4C8C7;
}

.list > li:first-child {
    border-top: 0;
}

.list > li > .action {
    margin-left: auto;
}

.list > li > div {
    flex: 1 1 320px;
    min-width: 0;
}

.list > li > div > * + * {
    margin-top: 6px;
}

.list > li > div > p:has(> .marker) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.list > li > [role="alert"],
.list > li > p {
    flex-basis: 100%;
}

.list > li > div > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list > li > div > ul > li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

.list > li > div > ul > li + li {
    margin-top: 4px;
}

@media (max-width: 760px) {
    .list > li > .action {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }
}

.marker {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #ECEEED;
    color: #1E1E1C;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #2E4A3F;
}

.check input:focus-visible {
    outline: 2px solid #B4452F;
    outline-offset: 2px;
}

.line {
    border-top: 6px solid #B5BAB8;
}

.split > * + * {
    margin-top: 20px;
}

@media (min-width: 1000px) {
    .split {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        align-items: start;
        gap: 20px;
    }

    .split > * + * {
        margin-top: 0;
    }
}

.split > form > section + section,
.split > div > section + section {
    margin-top: 20px;
}

.not-visible {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #0D0F0F;
        color: #D6D2C9;
    }

    header {
        background: #16231E;
        color: #C9C5BC;
    }

    section {
        background: #2A2926;
    }

    p {
        color: #9B978E;
    }

    .action {
        border-color: #3E6455;
        background: #3E6455;
        color: #D6D2C9;
    }

    .action.surface {
        border-color: #3A3936;
        background: #232626;
        color: #D6D2C9;
    }

    input:not([type="checkbox"]):not([type="radio"]) {
        border-color: #3A3936;
        background: #2A2926;
        color: #D6D2C9;
    }

    .action.surface:hover {
        background: #2A2926;
    }

    dt {
        color: #9B978E;
    }

    hr {
        border-top-color: #3A3936;
    }

    .marker {
        background: #3A3936;
        color: #D6D2C9;
    }

    .check input {
        accent-color: #D6D2C9;
    }

    .line {
        border-top-color: #3A3936;
    }

    .action.rust {
        border-color: #C9664C;
        background: #C9664C;
        color: #0D0F0F;
    }

    .problem {
        color: #DB7A60;
    }

    .list > li {
        border-top-color: #3A3936;
    }
}

.blank {
    display: inline-block;
    width: 3.4em;
    height: 0.9em;
    border-radius: 2px;
    background: #545856;
    vertical-align: middle;
}

mark.term {
    padding: 0 0.15em;
    border-radius: 2px;
    background: #FFE69D;
    color: #1E1E1C;
}

.quiz-question {
    max-width: 980px;
    box-sizing: border-box;
    padding: 20px max(3vw, 16px) 28px;
    background: #2E4A3F;
    color: #FFFFFF;
}

.quiz-question.paint-green {
    background: #2E4A3F;
}

.quiz-question.paint-slate {
    background: #33465C;
}

.quiz-question.paint-plum {
    background: #4A3B52;
}

.quiz-question.paint-oxblood {
    background: #5B3A3A;
}

.quiz-question.paint-teal {
    background: #2B4D52;
}

.quiz-question.paint-ochre {
    background: #5E4B2E;
}

.quiz-question.paint-moss {
    background: #44502E;
}

.quiz-question.paint-clay {
    background: #6B4130;
}

.quiz-question > * + * {
    margin-top: 16px;
}

.quiz-question :focus-visible {
    outline: 3px solid #FFD24D;
    outline-offset: 2px;
}

.quiz-question .board :focus-visible {
    outline: 2px solid #B4452F;
}

.quiz-question .on-paint {
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    font-weight: 500;
}

.position {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.position p {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.position progress {
    flex: 1 1 160px;
    max-width: 320px;
    height: 6px;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    appearance: none;
}

.position progress::-webkit-progress-bar {
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
}

.position progress::-webkit-progress-value {
    border-radius: 3px;
    background: #FFFFFF;
}

.position progress::-moz-progress-bar {
    border-radius: 3px;
    background: #FFFFFF;
}

.label,
.quiz-question .board {
    padding: 28px;
    border-radius: 4px;
    background: #FFFFFF;
    color: #1E1E1C;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 8px 24px -16px rgba(0, 0, 0, 0.45);
}

.quiz-question .board {
    padding: 16px 18px;
}

.label > * + *,
.quiz-question .board > * + * {
    margin-top: 12px;
}

.label .kind {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.label h2 {
    font-size: 23px;
}

.prompt {
    color: #1E1E1C;
    font-size: 19px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.prompt.one-word {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 600;
    line-height: 1.2;
}

.prompt code {
    font-size: 15px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.choices {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quiz-question > .choices {
    margin-top: 16px;
}

@media (min-width: 760px) {
    .choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.choices > li {
    display: flex;
}

.choice {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #B5BAB8;
    border-radius: 4px;
    background: #FFFFFF;
    color: #1E1E1C;
    font: inherit;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: anywhere;
}

button.choice {
    cursor: pointer;
}

button.choice:hover,
button.choice.picked {
    outline: 2px solid #1E1E1C;
    outline-offset: -2px;
}

button.choice[aria-disabled="true"] {
    cursor: default;
}

button.choice:focus-visible {
    outline: 3px solid #FFD24D;
    outline-offset: 2px;
}

.choice > .number {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #ECEEED;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.choice > .number + span {
    flex: 1 1 12ch;
    min-width: 0;
}

.choice.other {
    color: #545856;
}

.choice.correct {
    box-shadow: 0 0 0 3px #1FB566, 0 0 28px rgba(31, 181, 102, 0.65);
}

.choice.wrong {
    box-shadow: 0 0 0 3px #D7372B, 0 0 28px rgba(215, 55, 43, 0.65);
}

section.answer {
    max-width: 980px;
    box-sizing: border-box;
    border-top: 6px solid #1FB566;
}

section.answer.wrong {
    border-top-color: #D7372B;
}

section.answer > h2 {
    font-size: 23px;
}

section.answer legend {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

section.answer p[role="alert"]:has(> .action) {
    align-items: center;
}

textarea {
    display: block;
    width: 100%;
    max-width: 640px;
    min-height: 44px;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #B5BAB8;
    border-radius: 4px;
    background: #FFFFFF;
    color: #1E1E1C;
    font: inherit;
    font-size: 16px;
    resize: vertical;
}

textarea:focus-visible {
    outline: 2px solid #B4452F;
    outline-offset: 2px;
}

.headline {
    color: #1E1E1C;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
}

@media (prefers-color-scheme: dark) {
    .blank {
        background: #9B978E;
    }

    mark.term {
        background: #98845B;
        color: #0D0F0F;
    }

    .quiz-question,
    .quiz-question.paint-green {
        background: #16231E;
        color: #C9C5BC;
    }

    .quiz-question.paint-slate {
        background: #161D26;
    }

    .quiz-question.paint-plum {
        background: #1E1822;
    }

    .quiz-question.paint-oxblood {
        background: #251818;
    }

    .quiz-question.paint-teal {
        background: #13232A;
    }

    .quiz-question.paint-ochre {
        background: #241D12;
    }

    .quiz-question.paint-moss {
        background: #1D2214;
    }

    .quiz-question.paint-clay {
        background: #2A1A13;
    }

    .quiz-question :focus-visible {
        outline-color: #F2CF86;
    }

    .quiz-question .board :focus-visible {
        outline-color: #DB7A60;
    }

    .quiz-question .on-paint {
        color: rgba(201, 197, 188, 0.7);
    }

    .position p {
        color: #C9C5BC;
    }

    .position progress {
        background: rgba(201, 197, 188, 0.22);
        color: #C9C5BC;
    }

    .position progress::-webkit-progress-bar {
        background: rgba(201, 197, 188, 0.22);
    }

    .position progress::-webkit-progress-value {
        background: #C9C5BC;
    }

    .position progress::-moz-progress-bar {
        background: #C9C5BC;
    }

    .label,
    .quiz-question .board {
        background: #2A2926;
        color: #D6D2C9;
    }

    .prompt,
    .headline {
        color: #D6D2C9;
    }

    .choice {
        border-color: #3A3936;
        background: #2A2926;
        color: #D6D2C9;
    }

    button.choice:hover,
    button.choice.picked {
        outline-color: #D6D2C9;
    }

    button.choice:focus-visible {
        outline-color: #F2CF86;
    }

    .choice > .number {
        background: #3A3936;
    }

    .choice.other {
        color: #9B978E;
    }

    .choice.correct {
        box-shadow: 0 0 0 3px #57C98A, 0 0 28px rgba(87, 201, 138, 0.65);
    }

    .choice.wrong {
        box-shadow: 0 0 0 3px #E2533F, 0 0 28px rgba(226, 83, 63, 0.65);
    }

    section.answer {
        border-top-color: #57C98A;
    }

    section.answer.wrong {
        border-top-color: #E2533F;
    }

    textarea {
        border-color: #3A3936;
        background: #2A2926;
        color: #D6D2C9;
    }
}
