:root {
  --spacing: 1em;

  color-scheme: light dark;
  font-size: 18px;
}

@media (prefers-color-scheme: dark) {
  img {
    filter: invert(100%);
  }
}

/* League Gothic variable normal latin */
@font-face {
  font-family: 'League Gothic';
  font-style: normal;
  font-display: swap;
  font-stretch: 75 100;
  src: url(LeagueGothic.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;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  margin-block: 0.25lh;
}

body {
  background: canvas;
  font-family: sans-serif;
  line-height: 1.5;
  margin: 0;
}

header menu {
  list-style: none;
  display: flex;
  gap: 1em;
  justify-content: space-evenly;
  padding-left: 0;

  & [aria-current] {
    font-weight: bold;
    font-style: italic;
  }
}

h1 {
  margin-block: 0;
}

p {
  margin-block: 0.5lh;
}

header, main, footer {
  padding-inline: 0.5em;
}

h1,h2,h3,h4,h5,h6, label {
  font-family: 'League Gothic';
}

header {
  background: canvas;
  border-bottom: thin solid;
}

textarea {
  display: block;
  width: 100%;
}

label {
  text-wrap: balance;
  text-align: end;
  display: inline-block;
  font-size: 1.2rem;
}

input, select {
  margin-inline: 0.5em 1em;
}

input[type="number"] {
  width: 3em;
  text-align: end;
}

footer {
  margin-top: 20svh;
}

canvas {
  border: thin solid blue;
  max-width: 100%;
  image-rendering: pixelated;
}

#solutions > li {
  margin-block : 1em 0;
}

body:not(.go) :is(#progress, #solutions-section) {
  visibility: hidden;
}

#progress {
  display: inline-flex;
  margin-left: 1em;
  flex-grow: 1;
  gap: 0.5em;
  position: sticky;
  top: 0;
  background: Canvas;
  width: calc(100svw - 2em);
  
  & progress {
      flex-grow: 1;
      width: 3em;
  }
}

#solutions ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  list-style: none;
  padding-left: 0;

  & li {
    display: grid;
    margin: 1em;
  }
}

svg {
  background: color-mix(in oklab, Canvas, hsl(240,50%,90%) 50%);
}

svg text {
  user-select: none;
  font-family: 'League Gothic';
}

body.graph {
  & svg {
    display: block;
    width: calc(100svw - 4em);
    margin-inline: auto;
    
    & circle {
      fill: orange;
      &.solution {
        fill: yellow;
      }
    }
  }
}

@media (prefers-color-scheme: dark) {
  body.graph svg circle {
    fill: darkorange;
    &.solution {
      fill: darkgoldenrod;
    }
  }
}