/* 540 frame. One axis for the rail, the thumb's travel and the ticks: x 54..486, 18 hours at 24 px. */
.fc {
  --fg: #fff7e6;
  position: relative;
  width: 540px;
  height: 540px;
  overflow: hidden;
  background: var(--ground);
  color: var(--fg);
  font-family: "Familjen Grotesk Variable", sans-serif;
  font-variant-numeric: tabular-nums;
  user-select: none;
  transition: color 160ms linear;
}

.fc[data-ink="dark"] { --fg: #2a1038; }

.fc * { box-sizing: border-box; }

.fc-head {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 40px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.fc-cond { font-weight: 500; }

.fc-temp {
  position: absolute;
  left: 12px;
  top: 59px;
  display: flex;
  font-size: 225px;
  line-height: 225px;
  font-weight: 700;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.fc-digit { display: inline-block; width: 0.545em; text-align: center; }
.fc-point { display: inline-block; width: 0.22em; text-align: center; }
.fc-deg { display: inline-block; margin-left: -0.02em; }

.fc-slider { position: absolute; left: 54px; top: 294px; width: 432px; display: block; }

.fc-control { position: relative; display: flex; align-items: center; height: 60px; }

/* the rail: its round ends are centred on 06:00 and 24:00 */
.fc-control::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 20px;
  height: 20px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--fg) 24%, transparent);
}

.fc-track { position: relative; width: 432px; height: 20px; }

/* daylight, sunrise to sunset */
.fc-daylight {
  position: absolute;
  top: 0;
  bottom: 0;
  background: color-mix(in oklab, var(--fg) 46%, transparent);
}

.fc-thumb {
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 56px;
  border-radius: 28px;
  background: var(--fg);
  color: var(--ground);
  box-shadow: 0 2px 6px -2px #1a0a2a66;
  transition: scale 140ms ease, box-shadow 140ms ease;
}

.fc-thumb[data-dragging] { scale: 1.06; box-shadow: 0 5px 12px -4px #1a0a2a80; }
.fc[data-keyboard] .fc-thumb:has(:focus-visible) { box-shadow: 0 0 0 3px var(--ground), 0 0 0 6px var(--fg); }

.fc-time { font-size: 24px; line-height: 24px; font-weight: 700; letter-spacing: -0.02em; }

.fc-scale { position: absolute; left: 54px; top: 368px; width: 432px; height: 80px; }

.fc-hour { position: absolute; top: 0; width: 0; display: flex; flex-direction: column; align-items: center; }

.fc-hour i { width: 2px; height: 8px; border-radius: 1px; background: var(--fg); opacity: 0.5; }
.fc-hour:has(b) i { height: 14px; opacity: 1; }

.fc-hour b {
  position: absolute;
  top: 24px;
  padding-left: 0.3em; /* centre the figures, not the degree sign */
  font-size: 24px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.8;
}

.fc-hour em {
  position: absolute;
  top: 52px;
  font-size: 14px;
  line-height: 16px;
  font-style: normal;
  font-weight: 600;
  opacity: 0.8;
}

.fc-hour[data-now] b { opacity: 1; font-weight: 700; }
.fc-hour[data-now] em { opacity: 1; }

.fc-sun {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fc-sun span { display: flex; align-items: center; gap: 8px; }
.fc-sun svg { width: 24px; height: 24px; stroke-width: 2.2; }
