:root {
  color-scheme: light;
  --ink: #272534;
  --paper: #f7f6f0;
  --violet: #6942cb;
  --lime: #daf574;
  --copper: #b24a24;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 78rem;
  margin: auto;
  padding: 1.3rem 5%;
  border-bottom: 1px solid #d8d5ce;
}
.mast > a:last-child { font-size: .9rem; }
.brand { display: inline-flex; align-items: center; font-size: 2rem; font-weight: 700; letter-spacing: -.09em; text-decoration: none; }
.brand span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-right: .45rem;
  border-radius: 50%;
  color: var(--lime);
  background: var(--ink);
  font-size: 1.45rem;
  letter-spacing: 0;
}
.brand b { color: var(--violet); }
main { max-width: 78rem; margin: auto; padding: clamp(2rem, 8vw, 7.5rem) 5% 4rem; }
.question { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.eyebrow { color: var(--violet); font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; margin: .3rem 0 1.1rem; }
h1 { font-size: clamp(3.2rem, 6.3vw, 5.6rem); letter-spacing: -.07em; line-height: .99; margin: 0; max-width: 9ch; }
h1 em { font-style: normal; color: var(--violet); background: linear-gradient(transparent 80%, var(--lime) 80% 93%, transparent 93%); }
.lede { line-height: 1.55; font-size: 1.125rem; max-width: 32ch; margin: 1.6rem 0; }
.moves { display: grid; gap: .7rem; margin: 0; }
.moves div { display: flex; gap: .7rem; align-items: center; }
.key { border-radius: 50%; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.a { background: #e1d6ff; color: #4f29aa; }
.b { background: #f8d8c8; color: #883815; }
dd { margin: 0; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.activity { background: white; border: 1px solid #d7d4ce; border-radius: 1.15rem; box-shadow: 0 .45rem 0 #e6e4da; padding: clamp(.9rem, 2vw, 1.4rem); min-width: 0; }
figure { margin: 0; background: #f3f1fa; border-radius: .65rem; overflow: hidden; }
figure svg { display: block; width: 100%; height: auto; }
.path-a, .path-b { fill: none; stroke-width: 1.3; }
.path-a { stroke: var(--violet); }
.path-b { stroke: var(--copper); }
.fill-a { fill: var(--violet); }
.fill-b { fill: var(--copper); }
.label { fill: var(--ink); font-size: 6px; font-weight: 750; }
.axis-label { fill: #524e62; font-size: 14px; }
figcaption { padding: .55rem .8rem; font-size: .875rem; color: #524e62; }
button { font: inherit; font-weight: 650; cursor: pointer; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1rem; }
.options button, .actions button { min-height: 2.9rem; border: 1px solid #b6b1c1; border-radius: .5rem; background: white; color: var(--ink); }
.options button:hover, .actions button:hover { background: #f1ecfe; border-color: var(--violet); }
#reveal h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.12; letter-spacing: -.045em; margin: 1.25rem 0 .5rem; }
#reveal > p { line-height: 1.5; margin: .45rem 0 1rem; }
#feedback:focus:not(:focus-visible) { outline: none; }
.experiment { background: #f7f6f1; border-radius: .6rem; padding: .9rem 1rem; }
.experiment label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 650; }
.experiment output { white-space: nowrap; font-variant-numeric: tabular-nums; color: #5331a8; }
.experiment input { accent-color: var(--violet); width: 100%; margin: .8rem 0; min-height: 1.6rem; }
.experiment p { margin: 0 0 .5rem; }
.experiment code { display: block; font-size: .875rem; line-height: 1.45; color: #523595; overflow-wrap: anywhere; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.actions button { padding: .55rem .85rem; font-size: .95rem; }
.actions button:first-child { background: var(--ink); color: white; }
.actions button:first-child:hover { background: #5034a0; }
#reveal > #share-status:empty { display: none; }
#share-status { overflow-wrap: anywhere; }
.move-distance { display: block; margin-top: .15rem; font-size: .95rem; font-weight: 700; color: #51416d; }
.key { flex-shrink: 0; }
.creator-question h1 { max-width: 12ch; }
.source-credit { color: #595365; font-size: .9rem; line-height: 1.55; }
.source-credit a { color: #5331a8; }
.prompt-code, .live-css { white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-code { padding: .85rem 1rem; margin: 1rem 0; background: #edeaf5; border-radius: .5rem; color: #513094; font-size: 1rem; }
.live-css { margin: .65rem 0 0; }
.experiment .formula { font-variant-numeric: tabular-nums; line-height: 1.45; }
.creator-question #measurement { font-weight: 650; }
.creator-question .initial-answer { margin: 1rem 0 -.85rem; color: #595365; font-size: .875rem; }
.creator-question .options button { min-width: 0; padding: .55rem; }
#load-status:empty { display: none; }
.more-warmups { border-top: 1px solid #d8d5ce; padding-top: 1.25rem; margin-top: clamp(2rem, 5vw, 4.5rem); }
.more-warmups h2 { margin: 0 0 .85rem; font-size: 1.15rem; }
.more-warmups div { display: flex; flex-wrap: wrap; column-gap: 1.5rem; row-gap: .7rem; }
.more-warmups a { color: #5331a8; line-height: 1.5; }
@media (max-width: 740px) {
  .question { grid-template-columns: 1fr; gap: 1.25rem; }
  main { max-width: 36rem; padding-top: 1.75rem; }
  .mast { padding-block: .85rem; }
  .eyebrow { margin-bottom: .6rem; }
  h1 { font-size: clamp(2.6rem, 10vw, 3.5rem); max-width: 14ch; }
  .lede { margin: .8rem 0; font-size: 1rem; }
  .moves { gap: .4rem; }
  .activity { padding: .75rem; }
  .creator-question h1 { max-width: 17ch; }
  .source-credit { margin: .6rem 0 0; }
}
