:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --ink: #282a25;
  --muted: #606159;
  --line: #cbc9bd;
  --sans: "instrument-sans-variable", system-ui, sans-serif;
  --mono: "config-mono-vf", ui-monospace, monospace;
  --gutter: calc(1.1rem + 3vw);
  font-family: var(--sans);
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #295d9a; outline-offset: 5px; }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: 1rem; background: white; z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; margin-inline: var(--gutter); padding-block: 1rem; border-bottom: 1px solid var(--line); }
.identity { font-size: 1.05rem; font-weight: 700; text-decoration: none; padding-block: .5rem; }
.study-label, .back-link, .eyebrow, .signature, .screen-label, .device-name, .device-status, legend, .device-footer, .toy-notes h3, .repo-link, .inspection, .colour-comparison figcaption { font-family: var(--mono); font-size: .75rem; line-height: 1.6; font-weight: 400; }
.study-label { color: var(--muted); }
.back-link { padding-block: .5rem; }
main { width: min(100%, 88rem); margin-inline: auto; }
.landing { padding: calc(3.5rem + 2vw) var(--gutter) 2.5rem; }
.eyebrow { text-transform: uppercase; color: var(--muted); }
h1 { font-size: calc(2.5rem + 4vw); font-weight: 650; line-height: 1.06; margin-top: 1.4rem; }
.introduction { font-size: calc(1.05rem + .35vw); line-height: 1.55; max-width: 43ch; margin-top: 1.7rem; }
.signature { margin-top: 1.1rem; color: var(--muted); }
.toy-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.7rem; border-block: 1px solid var(--line); }
.toy-index a { position: relative; padding: 1.2rem 2.3rem 1.2rem 0; font-size: 1.05rem; font-weight: 600; text-decoration: none; transition: background-color 160ms; }
.toy-index a + a { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.toy-index small { display: block; font: .7rem/1.7 var(--mono); color: var(--muted); margin-bottom: .25rem; }
.toy-index b { position: absolute; right: 1rem; bottom: 1.2rem; font-weight: 400; }
.toy-index a:hover { background: #e9e6da; }
.toy { padding: calc(3.5rem + 2vw) var(--gutter) calc(3.5rem + 2vw); border-bottom: 1px solid var(--line); }
.toy-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .7rem 2rem; margin-bottom: 2rem; }
.toy-heading .eyebrow { grid-column: 1 / -1; }
.toy-heading h2 { font-size: calc(2rem + 2.2vw); font-weight: 650; line-height: 1.05; }
.tagline { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.device { --key: #a9c3df; position: relative; max-width: 64rem; margin-inline: auto; padding: calc(1rem + .8vw); border: 1px solid #74766b; border-radius: 2.2rem 2.6rem 2.1rem 2.3rem; background: linear-gradient(145deg, #e2e2d9, #c8cdc1); box-shadow: inset 0 2px 0 #ffffffe0, inset 0 -5px 0 #929c8a60, 0 5px 0 #8e95887a, 0 16px 24px -15px #333a3250; }
.device-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .2rem .3rem 1.15rem; }
.device-name { font-size: 1rem; text-transform: uppercase; font-weight: 550; }
.device-status { display: flex; align-items: center; gap: .6rem; color: #414b3b; }
.device-status::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #698958; box-shadow: inset 0 1px 1px #ffffff80, 0 0 0 2px #0000000d; }
[data-busy="true"] .device-status::before { background: #ab782b; animation: signal 1.4s ease-in-out infinite; }
.screen { padding: calc(1.3rem + 1vw); border: 1px solid #707663; border-radius: .9rem; background: linear-gradient(140deg, #e5ead6, #edf0df); box-shadow: inset 0 3px 5px #49514325, 0 1px 0 #ffffffa0; min-inline-size: 0; }
.screen-label { color: #5b6250; text-transform: uppercase; margin-bottom: 1rem; }
.answer { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font: 1.3rem/1.65 var(--mono); }
.probsie .screen { min-height: 12rem; }
.probsie .answer { max-width: 44ch; font-size: calc(1.2rem + .5vw); }
form, fieldset { min-inline-size: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: .8rem; color: #4f554a; }
.probsie form { margin-top: 1.5rem; }
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.choice { position: relative; min-height: 4.1rem; padding: .9rem .6rem; border: 1px solid #707168; border-radius: .7rem; background: linear-gradient(#fffef8, #e9e8dd); box-shadow: inset 0 2px 0 #fff, 0 4px 0 #979b8e, 0 5px 2px #3c423433; font: 1.15rem/1.4 var(--mono); transition: transform 130ms ease, box-shadow 130ms ease, background-color 130ms ease; }
.choice:hover:not(:disabled) { background: #fcfcf7; transform: translateY(-2px); box-shadow: inset 0 2px 0 #fff, 0 6px 0 #979b8e, 0 7px 3px #3c423433; }
.choice:active:not(:disabled), .choice[data-selected="true"] { background: var(--key); box-shadow: inset 0 1px 1px #ffffffb0, 0 1px 0 #69705f; transform: translateY(3px); }
.choice:disabled { cursor: default; opacity: .65; }
.choice[data-selected="true"]:disabled { opacity: 1; }
.device-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-top: 1.2rem; color: #505648; }
button[type="reset"] { min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid #82867a; border-radius: .45rem; background: #f5f4eb; font: .75rem/1.5 var(--mono); box-shadow: 0 2px 0 #a5a99a; }
button[type="reset"]:hover { background: white; }
button[type="reset"]:active { transform: translateY(1px); box-shadow: none; }
button[type="reset"]:disabled { opacity: .5; }
.feedback { color: #842e39; font-size: .9rem; line-height: 1.6; margin-top: .8rem; }
.feedback:empty { margin: 0; }
.toy-notes { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2rem 3.5rem; max-width: 64rem; margin: 2.3rem auto 0; }
.toy-notes h3 { color: var(--muted); text-transform: uppercase; margin-bottom: .65rem; }
.toy-notes p { font-size: 1rem; line-height: 1.7; max-width: 54ch; }
.repo-link { grid-column: 1 / -1; width: fit-content; padding-block: .5rem; }
.inspection { max-width: 64rem; margin: .5rem auto 0; color: var(--muted); }
.inspection summary { width: fit-content; cursor: pointer; min-height: 2.75rem; padding-block: .6rem; }
.inspection p { padding-block: .5rem; overflow-wrap: anywhere; }
.scorey .device { --key: #f3cc63; background: linear-gradient(135deg, #f2ead7, #e4ddc9); border-radius: 3.5rem 3.5rem 1.9rem 1.9rem; }
.scorey .device-header { padding-inline: .5rem; }
.scorey .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scorey .choice { min-height: 4.7rem; font-size: calc(1.2rem + .4vw); }
.scorey .screen { min-height: 14rem; margin-top: 1.7rem; }
.scorey .answer { font-size: 1.05rem; max-width: 68ch; }
.round-loader { min-height: 1rem; margin-top: 1.4rem; }
.round-loader::after { content: '•••'; font: 1.25rem/1 var(--mono); animation: signal 1.1s ease-in-out infinite; }
.huey .device { --key: #e9c9bf; background: linear-gradient(140deg, #efe6de, #ded7cd); }
.colour-workspace { display: grid; grid-template-columns: minmax(12rem, .65fr) minmax(0, 1.35fr); gap: 1.5rem; }
.huey .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .65rem; }
.huey .choice { display: flex; flex-direction: column; align-items: center; gap: .6rem; min-height: 5.1rem; padding: .65rem .3rem; font-size: .7rem; }
.huey .choice::before { content: ''; display: block; width: 2rem; height: 2rem; background: var(--colour); border: 1px solid #00000030; box-shadow: inset 0 2px 0 #ffffff30; border-radius: .35rem; }
.huey .screen { background: #f9f7f0; }
.huey .answer { font: 1.1rem/1.7 var(--sans); margin-top: 1.3rem; }
.colour-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.colour-comparison canvas { display: block; width: 100%; height: 7rem; border: 1px solid #aaa89b; border-radius: .5rem; background: #eeebe1; }
.colour-comparison figcaption { margin-top: .5rem; color: var(--muted); }
.reasoning-status, .reasoning-summary { font-size: .8rem; line-height: 1.6; margin-top: 1rem; color: var(--muted); font-style: italic; }
.reasoning-summary summary { cursor: pointer; padding-block: .5rem; font-family: var(--mono); font-size: .75rem; }
.reasoning-text { white-space: pre-wrap; margin-block: .5rem; }
.research-note { padding: 4rem var(--gutter); max-width: 55rem; }
.research-note h2 { font-size: calc(1.7rem + 1vw); font-weight: 600; line-height: 1.15; margin-block: 1rem; }
.research-note > p:not(.eyebrow) { font-size: 1.1rem; line-height: 1.7; }
.research-note a { display: inline-block; margin-top: 1rem; padding-block: .5rem; font-family: var(--mono); font-size: .8rem; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 2rem var(--gutter); border-top: 1px solid var(--line); }
.site-footer p { font-size: 1.5rem; font-weight: 650; flex: 1 1 auto; }
.site-footer a { font-family: var(--mono); font-size: .8rem; padding-block: .6rem; }
.swatch-be454f { --colour: #be454f; }
.swatch-f99471 { --colour: #f99471; }
.swatch-ffd02e { --colour: #ffd02e; }
.swatch-008658 { --colour: #008658; }
.swatch-30658e { --colour: #30658e; }
.swatch-a767a2 { --colour: #a767a2; }
.swatch-d28fb0 { --colour: #d28fb0; }
.swatch-a46f44 { --colour: #a46f44; }
.swatch-dccdbc { --colour: #dccdbc; }
@keyframes signal { 50% { opacity: .35; } }
@media (max-width: 50rem) {
  .study-label { display: none; }
  .toy-heading { grid-template-columns: 1fr; }
  .tagline { margin-top: .3rem; }
  .tagline br { display: none; }
  .colour-workspace { grid-template-columns: 1fr; }
  .huey .choices { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .huey .choice { min-height: 4.7rem; }
  .toy-notes { gap: 1.2rem 2rem; }
}
@media (max-width: 35rem) {
  .landing { padding-top: 3rem; }
  h1 { font-size: calc(2rem + 4vw); max-width: 9ch; }
  .toy-index { grid-template-columns: 1fr; margin-top: 2rem; }
  .toy-index a + a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .toy-index a { padding-block: .9rem; }
  .toy { padding-top: 2.8rem; padding-bottom: 2.8rem; }
  .toy-heading { margin-bottom: 1.5rem; }
  .toy-heading h2 { font-size: calc(1.8rem + 2vw); }
  .device { padding: 1rem; border-radius: 1.5rem; }
  .device-header { gap: .3rem; }
  .device-name { font-size: .8rem; }
  .device-status { font-size: .65rem; }
  .screen { padding: 1.2rem; }
  .probsie .screen { min-height: 13rem; }
  .probsie .answer { font-size: 1.05rem; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .choice { min-height: 3.5rem; font-size: 1rem; }
  .scorey .device { border-radius: 2rem 2rem 1.5rem 1.5rem; }
  .scorey .choices { gap: .5rem; }
  .scorey .choice { min-height: 3.5rem; font-size: .8rem; padding-inline: .3rem; }
  .scorey .answer { font-size: .9rem; }
  .huey .choices { grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr)); }
  .huey .choice { flex-direction: column; justify-content: center; min-height: 4.4rem; gap: .35rem; }
  .huey .choice::before { width: 1rem; height: 1rem; flex: none; }
  .colour-comparison { gap: .6rem; }
  .colour-comparison canvas { height: 5rem; }
  .huey .answer { font-size: 1rem; }
  .toy-notes { grid-template-columns: 1fr; margin-top: 2rem; }
  .device-footer { font-size: .65rem; }
  .device-footer p { flex: 1 1 10rem; }
  .site-footer { gap: 1rem; }
  .site-footer p { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.site-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font: .8rem/1.6 var(--mono); }
.site-nav a { padding-block: .5rem; }

.release-version { max-width: 64rem; margin: 1.2rem auto 0; font: .75rem/1.6 var(--mono); color: var(--muted); }

@media (max-width: 25rem) {
  .scorey .choices { grid-template-columns: 1fr; }
}
