.hl {
  position: absolute;
  inset: 0;
  background: #d9a56c;
  color: #112848;
  font-family: "Familjen Grotesk Variable", sans-serif;
  -webkit-font-smoothing: antialiased;
  --hl-blue: #2c5fa5;
  --hl-ink: #112848;
  --hl-wool: #f6f1e7;
  --hl-calm: cubic-bezier(0.32, 0.04, 0.18, 1);
}
.hl *,
.hl *::before,
.hl *::after {
  box-sizing: border-box;
}
.hl-photo {
  position: absolute;
  inset: 0;
  width: 540px;
  height: 540px;
  display: block;
}

/* the hob's keys: lit from under the glass, quiet while it's locked */
.hl-strip {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 160px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff4e2;
}
.hl-key {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transition: opacity 700ms var(--hl-calm), color 700ms var(--hl-calm), filter 700ms var(--hl-calm);
  filter: drop-shadow(0 0 5px #ffe9c466);
}
.hl-key svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hl-zones {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 34px;
  transition: opacity 700ms var(--hl-calm);
  filter: drop-shadow(0 0 5px #ffe9c466);
}
.hl-figure {
  width: 18px;
  height: 29px;
  fill: currentColor;
}
.hl[data-locked] .hl-key:not(.hl-lockkey),
.hl[data-locked] .hl-zones {
  opacity: 0.2;
  filter: none;
}
/* the key that stays lit is the lock, in the blue of the switch */
.hl-lockkey .hl-padlock {
  --hl-lock-fill: currentColor;
}
.hl[data-locked] .hl-lockkey {
  color: #7fb2ff;
  filter: drop-shadow(0 0 7px #4d8dffcc);
}

/* padlock */
.hl-padlock {
  display: block;
  overflow: visible;
}
.hl-shackle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 70 100;
  transform: translateY(-3.4px);
  transition: stroke-dasharray 280ms var(--hl-calm), transform 280ms var(--hl-calm);
}
.hl-body {
  fill: currentColor;
  stroke: none;
}
.hl[data-locked] .hl-shackle {
  stroke-dasharray: 100 100;
  transform: none;
  transition-delay: 220ms;
}

/* the two settings sit straight on the worktop */
.hl-main,
.hl-row {
  position: absolute;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hl-main {
  top: 242px;
  height: 92px;
}
.hl-row {
  top: 430px;
  height: 60px;
}
.hl-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 1px;
  background: #3a210a40;
  box-shadow: 0 1px 0 #fff0d84d;
}
.hl-text {
  display: flex;
  flex-direction: column;
}
.hl-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.028em;
  margin-left: -1.5px;
}
.hl-rowtitle {
  font-size: 23px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.01em;
  margin-left: -1px;
}
.hl-note {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--hl-ink);
}
.hl-main .hl-note {
  position: absolute;
  left: 0;
  top: 106px;
  white-space: nowrap;
}
.hl-row .hl-note {
  margin-top: 2px;
}

/* switch: a slot let into the worktop, lit from the window at the top left */
.hl-switch {
  all: unset;
  position: relative;
  flex: none;
  width: 164px;
  height: 92px;
  border-radius: 46px;
  /* off: the slot's floor is a pale blue-grey; the wall nearest the window throws its shadow onto it */
  background: linear-gradient(155deg, #b4c0cc 0%, #cfd8e0 42%, #dde4ea 100%);
  box-shadow:
    inset 3px 4px 7px #1a283c70,
    inset 0 0 0 1px #2a1d1047,
    inset -1px -1.5px 0 #ffffff8c,
    1px 1.5px 0 #fff2dc99,
    -0.5px -1px 0 #3a210a40;
  cursor: pointer;
}
/* on: the slot fills with blue enamel */
.hl-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, #1f4a8a 0%, #2c5fa5 42%, #3a6fb8 100%);
  box-shadow:
    inset 3px 4px 8px #06143099,
    inset 0 0 0 1px #0d234766,
    inset -1px -1.5px 0 #9cc0f559;
  opacity: 0;
  transition: opacity 360ms var(--hl-calm), filter 200ms;
}
.hl-switch[data-checked]::before {
  opacity: 1;
}
.hl-switch:hover {
  background: linear-gradient(155deg, #aab7c5 0%, #c6d0da 42%, #d5dde5 100%);
}
.hl-switch:hover::before {
  filter: brightness(0.93);
}
.hl-switch:focus-visible {
  outline: 3px solid var(--hl-ink);
  outline-offset: 4px;
}
/* thumb: a wool-white knob, bright where it faces the window, shaded and casting away from it */
.hl-thumb {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 31% 25%, #ffffff 0%, #fbf8f1 34%, #eee8db 72%, #ded6c5 100%);
  box-shadow:
    0 0 0 0.5px #5a46284d,
    2px 3px 3px #140f0540,
    7px 11px 16px -3px #140f0566,
    14px 20px 26px -12px #140f0559,
    inset 2px 2.5px 2px #ffffff,
    inset -3px -4px 6px #7d684638;
  color: #5d6c7e;
  translate: 0 0;
  transition: translate 360ms var(--hl-calm), color 360ms var(--hl-calm), scale 200ms var(--hl-calm);
}
/* its top is dished a little, and the padlock is printed in the dish */
.hl-thumb::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 76%, #fffdf8 0%, #f4efe4 55%, #e9e2d4 100%);
  box-shadow:
    inset 1.5px 2px 3px #6e5a3c47,
    inset -1px -1px 1px #ffffff,
    0.5px 0.5px 0 #ffffffb3;
}
.hl-thumb[data-checked] {
  translate: 72px 0;
  color: var(--hl-blue);
}
.hl-switch:active .hl-thumb {
  scale: 0.96;
}
.hl-thumb .hl-padlock {
  position: relative;
  width: 32px;
  height: 32px;
  margin-top: 2px;
}
.hl-thumb .hl-shackle {
  stroke-width: 2.4;
}
.hl-strip .hl-shackle {
  stroke-width: 1.9;
}
.hl-thumb[data-unchecked] .hl-shackle {
  stroke-dasharray: 70 100;
  transform: translateY(-3.4px);
  transition-delay: 0ms;
}

.hl-small {
  width: 76px;
  height: 44px;
  border-radius: 22px;
  box-shadow:
    inset 2px 3px 5px #1a283c70,
    inset 0 0 0 1px #2a1d1047,
    inset -1px -1px 0 #ffffff8c,
    1px 1px 0 #fff2dc99,
    -0.5px -1px 0 #3a210a40;
}
.hl-small::before {
  box-shadow:
    inset 2px 3px 5px #06143099,
    inset 0 0 0 1px #0d234766,
    inset -1px -1px 0 #9cc0f559;
}
.hl-small .hl-thumb {
  left: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  box-shadow:
    0 0 0 0.5px #5a46284d,
    1px 2px 2px #140f0540,
    4px 6px 9px -2px #140f0566,
    inset 1.5px 2px 1.5px #ffffff,
    inset -2px -2.5px 4px #7d684638;
}
.hl-small .hl-thumb::before {
  inset: 6px;
}
.hl-small .hl-thumb[data-checked] {
  translate: 32px 0;
}
